26 #ifndef __TERRALIB_OGR_INTERNAL_DATASET_H 27 #define __TERRALIB_OGR_INTERNAL_DATASET_H 32 #include "../dataaccess/dataset/DataSet.h" 71 DataSet(GDALDataset* dsrc, OGRLayer* layer,
bool takeOGRDataSetOwnership,
bool takeOGRLayerOwnership);
82 std::size_t getNumProperties()
const;
84 int getPropertyDataType(std::size_t pos)
const;
86 std::string getPropertyName(std::size_t pos)
const;
88 std::string getDatasetNameOfProperty(std::size_t pos)
const;
94 std::size_t size()
const;
96 std::unique_ptr<te::gm::Envelope> getExtent(std::size_t i);
102 bool moveBeforeFirst();
108 bool move(std::size_t i);
110 bool isAtBegin()
const;
112 bool isBeforeBegin()
const;
114 bool isAtEnd()
const;
116 bool isAfterEnd()
const;
118 bool isPositionValid()
const;
120 char getChar(std::size_t i)
const;
122 unsigned char getUChar(std::size_t i)
const;
124 boost::int16_t getInt16(std::size_t i)
const;
126 boost::int32_t getInt32(std::size_t i)
const;
128 boost::int64_t getInt64(std::size_t i)
const;
130 bool getBool(std::size_t i)
const;
132 float getFloat(std::size_t i)
const;
134 double getDouble(std::size_t i)
const;
136 std::string getNumeric(std::size_t i)
const;
138 std::string getString(std::size_t i)
const;
140 std::unique_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
142 std::unique_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
144 std::unique_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
146 std::unique_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
148 std::unique_ptr<te::dt::Array> getArray(std::size_t i)
const;
150 bool isNull(std::size_t i)
const;
154 const unsigned char* getWKB()
const;
177 #endif // __TERRALIB_OGR_INTERNAL_DATASET_H bool isConnected() const
It returns true if the dataset is connected and false if it is disconnected. A dataset can be connect...
te::da::DataSetType * m_dt
DataSetType.
te::common::TraverseType getTraverseType() const
It returns the traverse type associated to the dataset.
A class that models the description of a dataset.
bool m_takeOGRDataSetOwnership
If TRUE, the ownership of the OGRDataSet will be transfered for the dataSet and so it must delete it ...
#define TEOGREXPORT
You can use this macro in order to export/import classes and functions from this module.
int m_srid
The SRS id associated to this dataset.
Implementation of a DataSet for OGR data provider.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
unsigned char * m_wkbArray
OGRFeature * m_currentFeature
Configuration flags for the OGR Driver Implementation of TerraLib.
bool m_takeOGRLayerOwnership
If TRUE, the ownership of the OGRLayer will be transfered for the dataSet and so it must delete it in...
A dataset is the unit of information manipulated by the data access module of TerraLib.
te::common::AccessPolicy getAccessPolicy() const
It returns the read and write permission associated to the dataset.