4 #ifndef FIRE_DATA_VECTORLAYERINFO_HPP_INCLUDED
5 #define FIRE_DATA_VECTORLAYERINFO_HPP_INCLUDED
7 #include <fire/gear/geom/Envelope.hpp>
8 #include <fire/gear/projection/Projection.hpp>
9 #include <fire/gear/projection/ProjectionsManager.hpp>
15 #include "fire/gis/export.hpp"
16 #include "fire/source/vector/VectorLayerType.hpp"
17 #include "fire/source/exception/LayerException.hpp"
18 #include "fire/source/vector/shared/MetadataSh.hpp"
25 class VectorLayerInfoSh;
34 typedef std::vector< gear::geom::Envelope::EnvelopeShp > VctEnvelope;
81 virtual std::string getName()
const = 0;
87 virtual std::string getSchema()
const = 0;
93 virtual VectorLayerType::VectorLayerType getType()
const = 0;
105 virtual int getSrid(
const std::string& geomFld)
const {
108 std::stringstream ss;
109 ss <<
"Invalid metadata for layer " << getSchema() <<
"." << getName();
114 if (fld.existsExtraParam(Field::SRID))
115 return fld.getExtraParam(Field::SRID);
124 virtual size_t getCount()
const = 0;
Definition: EnvelopeSh.hpp:18
static int getUnknownSrid()
Restituisce l'identificativo del sistema di riferimento sconosciuto.
Definition: VectorLayerInfo.hpp:31
Definition: FieldSh.hpp:21
Definition: LayerException.hpp:16
VectorLayerInfo(VectorLayerInfo const &source)
VectorLayerInfo.
Definition: VectorLayerInfo.hpp:42
VectorLayerInfo()
VectorLayerInfo.
Definition: VectorLayerInfo.hpp:53
virtual int getSrid(const std::string &geomFld) const
Definition: VectorLayerInfo.hpp:105
Definition: VectorLayerInfoSh.hpp:23