|
RAVE
|
Helper class to support both legacy PROJ.4 projection and > PROJ.4. More...
#include "projection_pipeline.h"#include "rave_debug.h"#include "rave_alloc.h"#include <string.h>#include <math.h>#include <stdio.h>#include <proj.h>Classes | |
| struct | _ProjectionPipeline_t |
| Represents one projection. More... | |
Macros | |
| #define | UV PJ_UV |
Functions | |
| ProjectionPipeline_t * | ProjectionPipeline_createPipeline (Projection_t *first, Projection_t *second) |
| Creates a pipeline from one projection to another. | |
| ProjectionPipeline_t * | ProjectionPipeline_createPipelineFromDef (const char *first, const char *second) |
| Creates a pipeline from one projection to another. | |
| ProjectionPipeline_t * | ProjectionPipeline_createDefaultLonLatPipeline (Projection_t *other) |
| Creates a default pipeline used for translating between lon/lat and the other projection. | |
| ProjectionPipeline_t * | ProjectionPipeline_createDefaultLonLatPipelineFromDef (const char *other) |
| Creates a default pipeline used for translating between lon/lat and the other projection where other is defined as a string. | |
| int | ProjectionPipeline_init (ProjectionPipeline_t *pipeline, Projection_t *first, Projection_t *second) |
| Initializes a pipeline with the projections. | |
| int | ProjectionPipeline_initFromDef (ProjectionPipeline_t *pipeline, const char *first, const char *second) |
| Initializes a pipeline with the projection definitions. | |
| Projection_t * | ProjectionPipeline_getFirstProjection (ProjectionPipeline_t *pipeline) |
| Returns the first projection. | |
| Projection_t * | ProjectionPipeline_getSecondProjection (ProjectionPipeline_t *pipeline) |
| Returns the second projection. | |
| int | ProjectionPipeline_fwd (ProjectionPipeline_t *pipeline, double inu, double inv, double *outu, double *outv) |
| Transforms the coordinates from first projection to second projection using this pipeline. | |
| int | ProjectionPipeline_inv (ProjectionPipeline_t *pipeline, double inu, double inv, double *outu, double *outv) |
| Transforms the coordinates from second projection to first projection using this pipeline. | |
Variables | |
| RaveCoreObjectType | ProjectionPipeline_TYPE |
| Type definition to use when creating a rave object. | |
Helper class to support both legacy PROJ.4 projection and > PROJ.4.
| ProjectionPipeline_t * ProjectionPipeline_createDefaultLonLatPipeline | ( | Projection_t * | other | ) |
Creates a default pipeline used for translating between lon/lat and the other projection.
More or less same as writing: ProjectionPipeline_createPipeline(Projection_createDefaultLonLatProjection(), other)
| [in] | other | - the other projection |
| ProjectionPipeline_t * ProjectionPipeline_createDefaultLonLatPipelineFromDef | ( | const char * | other | ) |
Creates a default pipeline used for translating between lon/lat and the other projection where other is defined as a string.
More or less same as writing: ProjectionPipeline_createPipelineFromDef(Projection_getDefaultLonLatProjDef(), other)
| [in] | other | - the other proj definition |
| ProjectionPipeline_t * ProjectionPipeline_createPipeline | ( | Projection_t * | first, |
| Projection_t * | second ) |
Creates a pipeline from one projection to another.
| [in] | first | - first projection |
| [in] | second | - second projection |
| ProjectionPipeline_t * ProjectionPipeline_createPipelineFromDef | ( | const char * | first, |
| const char * | second ) |
Creates a pipeline from one projection to another.
| [in] | first | - first projection definition |
| [in] | second | - second projection definition |
| int ProjectionPipeline_fwd | ( | ProjectionPipeline_t * | pipeline, |
| double | inu, | ||
| double | inv, | ||
| double * | outu, | ||
| double * | outv ) |
Transforms the coordinates from first projection to second projection using this pipeline.
| [in] | pipeline | - this pipeline |
| [in] | inu | - coordinate |
| [in] | inv | - coordinate |
| [out] | outu | - coordinate |
| [out] | outv | - coordinate |
| Projection_t * ProjectionPipeline_getFirstProjection | ( | ProjectionPipeline_t * | pipeline | ) |
Returns the first projection.
| [in] | pipeline | - self |
| Projection_t * ProjectionPipeline_getSecondProjection | ( | ProjectionPipeline_t * | pipeline | ) |
Returns the second projection.
| [in] | pipeline | - self |
| int ProjectionPipeline_init | ( | ProjectionPipeline_t * | pipeline, |
| Projection_t * | first, | ||
| Projection_t * | second ) |
Initializes a pipeline with the projections.
| [in] | first | - first projection |
| [in] | second | - second projection |
| int ProjectionPipeline_initFromDef | ( | ProjectionPipeline_t * | pipeline, |
| const char * | first, | ||
| const char * | second ) |
Initializes a pipeline with the projection definitions.
| [in] | first | - first projection definition |
| [in] | second | - second projection definition |
| int ProjectionPipeline_inv | ( | ProjectionPipeline_t * | pipeline, |
| double | inu, | ||
| double | inv, | ||
| double * | outu, | ||
| double * | outv ) |
Transforms the coordinates from second projection to first projection using this pipeline.
| [in] | pipeline | - this pipeline |
| [in] | inu | - coordinate |
| [in] | inv | - coordinate |
| [out] | outu | - coordinate |
| [out] | outv | - coordinate |
| RaveCoreObjectType ProjectionPipeline_TYPE |
Type definition to use when creating a rave object.