4 #ifndef FIRE_GEAR_PROJECTION_PROJECTIONSMANAGER_HPP_INCLUDED
5 #define FIRE_GEAR_PROJECTION_PROJECTIONSMANAGER_HPP_INCLUDED
7 #include <boost/filesystem.hpp>
11 #include <ogr_spatialref.h>
16 #include "fire/export.hpp"
18 #include "fire/Object.hpp"
19 #include "fire/gear/projection/ProjectionTextType.hpp"
23 namespace projection {
44 namespace projection {
60 static std::size_t sridsCount;
65 boost::filesystem::path projectionsPath;
70 Json::Value projections;
75 OGRSpatialReference spatialReference;
108 static int getUnknownSrid();
135 void putProjection(
int srid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType,
const std::string& projectionText);
149 int putProjection(fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType,
const std::string& projectionText);
160 void removeProjection(
int srid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType);
174 bool hasProjection(
int srid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType)
const;
188 std::string getProjection(
int srid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType)
const;
202 int getSrid(fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType,
const std::string& projectionText)
const;
207 void updateProjections()
const;
218 fire::gear::projection::Projection* createProjection(
int srid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType = fire::gear::projection::ProjectionTextType::Proj4)
const;
232 fire::gear::projection::Projector* createProjector(
int sourceSrid,
int destinationSrid, fire::gear::projection::ProjectionTextType::ProjectionTextType projectionTextType = fire::gear::projection::ProjectionTextType::Proj4)
const;
Classe per la gestione di un oggetto.
Definition: Object.hpp:29
Classe per la gestione del gestore delle proiezioni.
Definition: ProjectionsManager.hpp:49
Classe per la gestione di un proiettore.
Definition: Projector.hpp:148
static const int UnknownSrid
Identificativo del sistema di riferimento sconosciuto.
Definition: ProjectionsManager.hpp:100
Classe per la gestione di una proiezione.
Definition: Projection.hpp:34