RAVE
projectionregistry.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2010 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------------------------------------------------------------------------*/
27#ifndef PROJECTIONREGISTRY_H
28#define PROJECTIONREGISTRY_H
29#include "projection.h"
30#include "rave_object.h"
31
36
41
48
59
66
74
82
89
95void ProjectionRegistry_removeByName(ProjectionRegistry_t* self, const char* pcsid);
96
103int ProjectionRegistry_write(ProjectionRegistry_t* self, const char* filename);
104
105#endif /* PROJECTIONREGISTRY_H */
Wrapper around PROJ.4.
int ProjectionRegistry_size(ProjectionRegistry_t *self)
Returns the number of projections in this registry.
Definition projectionregistry.c:239
Projection_t * ProjectionRegistry_get(ProjectionRegistry_t *self, int index)
Returns the projection at specified position.
Definition projectionregistry.c:245
int ProjectionRegistry_add(ProjectionRegistry_t *self, Projection_t *proj)
Adds a projection to the registry.
Definition projectionregistry.c:229
ProjectionRegistry_t * ProjectionRegistry_load(const char *filename)
Loads a registry from an xml file.
Definition projectionregistry.c:191
void ProjectionRegistry_remove(ProjectionRegistry_t *self, int index)
Removes the projection at the specified index.
Definition projectionregistry.c:271
void ProjectionRegistry_removeByName(ProjectionRegistry_t *self, const char *pcsid)
Removes the projection with the specified pcs id.
Definition projectionregistry.c:277
Projection_t * ProjectionRegistry_getByName(ProjectionRegistry_t *self, const char *pcsid)
Returns the projection with the specified pcs id.
Definition projectionregistry.c:251
RaveCoreObjectType ProjectionRegistry_TYPE
Type definition to use when creating a rave object.
Definition projectionregistry.c:361
int ProjectionRegistry_write(ProjectionRegistry_t *self, const char *filename)
Writes the current registry to a xml file.
Definition projectionregistry.c:296
Generic implementation of an object that is used within rave.
Represents the registry.
Definition projectionregistry.c:36
Represents one projection.
Definition projection.c:55
The rave object type definition.
Definition rave_object.h:52