RAVE
projection_pipeline.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2009 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of RAVE.
5
6RAVE is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11RAVE is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with RAVE. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
26#ifndef PROJECTION_PIPELINE_H
27#define PROJECTION_PIPELINE_H
28#include "rave_object.h"
29#include "projection.h"
30
35
40
48
56
66
77
85
92int ProjectionPipeline_initFromDef(ProjectionPipeline_t *pipeline, const char* first, const char *second);
93
100
107
117int ProjectionPipeline_fwd(ProjectionPipeline_t* pipeline, double inu, double inv, double* outu, double* outv);
118
128int ProjectionPipeline_inv(ProjectionPipeline_t* pipeline, double inu, double inv, double* outu, double* outv);
129
130#endif
Wrapper around PROJ.4.
Projection_t * ProjectionPipeline_getFirstProjection(ProjectionPipeline_t *pipeline)
Returns the first projection.
Definition projection_pipeline.c:289
ProjectionPipeline_t * ProjectionPipeline_createDefaultLonLatPipelineFromDef(const char *other)
Creates a default pipeline used for translating between lon/lat and the other projection where other ...
Definition projection_pipeline.c:171
ProjectionPipeline_t * ProjectionPipeline_createDefaultLonLatPipeline(Projection_t *other)
Creates a default pipeline used for translating between lon/lat and the other projection.
Definition projection_pipeline.c:159
ProjectionPipeline_t * ProjectionPipeline_createPipelineFromDef(const char *first, const char *second)
Creates a pipeline from one projection to another.
Definition projection_pipeline.c:147
Projection_t * ProjectionPipeline_getSecondProjection(ProjectionPipeline_t *pipeline)
Returns the second projection.
Definition projection_pipeline.c:295
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.
Definition projection_pipeline.c:334
RaveCoreObjectType ProjectionPipeline_TYPE
Type definition to use when creating a rave object.
Definition projection_pipeline.c:369
ProjectionPipeline_t * ProjectionPipeline_createPipeline(Projection_t *first, Projection_t *second)
Creates a pipeline from one projection to another.
Definition projection_pipeline.c:135
int ProjectionPipeline_init(ProjectionPipeline_t *pipeline, Projection_t *first, Projection_t *second)
Initializes a pipeline with the projections.
Definition projection_pipeline.c:177
int ProjectionPipeline_initFromDef(ProjectionPipeline_t *pipeline, const char *first, const char *second)
Initializes a pipeline with the projection definitions.
Definition projection_pipeline.c:229
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.
Definition projection_pipeline.c:301
Generic implementation of an object that is used within rave.
Represents one projection.
Definition projection_pipeline.c:43
Projection_t * first
First projection.
Definition projection_pipeline.c:46
Projection_t * second
Second projection.
Definition projection_pipeline.c:47
Represents one projection.
Definition projection.c:55
The rave object type definition.
Definition rave_object.h:52