39 #ifndef __OPENFLUID_CORE_GEOVECTORVALUE_HPP__
40 #define __OPENFLUID_CORE_GEOVECTORVALUE_HPP__
45 #include <ogrsf_frmts.h>
47 namespace openfluid {
namespace core {
65 void tryToOpenSource();
70 void destroyDataSource();
83 GeoVectorValue(
const std::string& FilePath,
const std::string& FileName);
101 OGRDataSource* data();
109 OGRLayer* layer(
unsigned int LayerIndex = 0);
117 OGRFeatureDefn* layerDef(
unsigned int LayerIndex = 0);
125 bool isLineType(
unsigned int LayerIndex = 0);
133 bool isPolygonType(
unsigned int LayerIndex = 0);
142 bool containsField(
const std::string& FieldName,
unsigned int LayerIndex = 0);
151 int getFieldIndex(
const std::string& FieldName,
unsigned int LayerIndex = 0);
162 bool isFieldOfType(
const std::string& FieldName, OGRFieldType FieldType,
163 unsigned int LayerIndex = 0);
171 bool isPointType(
unsigned int LayerIndex = 0);
179 bool isMultiPolygonType(
unsigned int LayerIndex = 0);
187 bool isMultiLineType(
unsigned int LayerIndex = 0);
195 bool isMultiPointType(
unsigned int LayerIndex = 0);
UnstructuredType
Definition: UnstructuredValue.hpp:53
Definition: GeoVectorValue.hpp:52
Definition: GeoValue.hpp:52
OGRDataSource * mp_Data
Definition: GeoVectorValue.hpp:59
#define OPENFLUID_API
Definition: dllexport.hpp:87