26 #ifndef __TERRALIB_OGR_INTERNAL_DATASET_H 27 #define __TERRALIB_OGR_INTERNAL_DATASET_H 32 #include "../dataaccess/dataset/DataSet.h" 70 DataSet(GDALDataset* dsrc, OGRLayer* layer,
bool takeOGRDataSetOwnership,
bool takeOGRLayerOwnership);
81 std::size_t getNumProperties()
const;
83 int getPropertyDataType(std::size_t pos)
const;
85 std::string getPropertyName(std::size_t pos)
const;
87 std::string getDatasetNameOfProperty(std::size_t pos)
const;
93 std::size_t size()
const;
95 std::unique_ptr<te::gm::Envelope> getExtent(std::size_t i);
101 bool moveBeforeFirst();
107 bool move(std::size_t i);
109 bool isAtBegin()
const;
111 bool isBeforeBegin()
const;
113 bool isAtEnd()
const;
115 bool isAfterEnd()
const;
117 bool isPositionValid()
const;
119 char getChar(std::size_t i)
const;
121 unsigned char getUChar(std::size_t i)
const;
123 boost::int16_t getInt16(std::size_t i)
const;
125 boost::int32_t getInt32(std::size_t i)
const;
127 boost::int64_t getInt64(std::size_t i)
const;
129 bool getBool(std::size_t i)
const;
131 float getFloat(std::size_t i)
const;
133 double getDouble(std::size_t i)
const;
135 std::string getNumeric(std::size_t i)
const;
137 std::string getString(std::size_t i)
const;
139 std::unique_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
141 std::unique_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
143 std::unique_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
145 std::unique_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
147 std::unique_ptr<te::dt::Array> getArray(std::size_t i)
const;
149 bool isNull(std::size_t i)
const;
153 const unsigned char* getWKB()
const;
178 #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.m_.
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.
std::size_t m_fidPropertyPosition
The position of the fid property in the resulting dataSetType.
te::common::AccessPolicy getAccessPolicy() const
It returns the read and write permission associated to the dataset.
std::vector< int > m_vecColumnIndexes
Depending on the way that the Layer was created (get or query), it FID column can be explicit or impl...