26 #ifndef __TERRALIB_OGR_INTERNAL_DATASET_H
27 #define __TERRALIB_OGR_INTERNAL_DATASET_H
32 #include "../dataaccess/dataset/DataSet.h"
69 DataSet(OGRDataSource* dsrc, OGRLayer* layer);
80 std::size_t getNumProperties()
const;
82 int getPropertyDataType(std::size_t pos)
const;
84 std::string getPropertyName(std::size_t pos)
const;
86 std::string getDatasetNameOfProperty(std::size_t pos)
const;
92 std::size_t size()
const;
94 std::auto_ptr<te::gm::Envelope> getExtent(std::size_t i);
100 bool moveBeforeFirst();
106 bool move(std::size_t i);
108 bool isAtBegin()
const;
110 bool isBeforeBegin()
const;
112 bool isAtEnd()
const;
114 bool isAfterEnd()
const;
116 char getChar(std::size_t i)
const;
118 unsigned char getUChar(std::size_t i)
const;
120 boost::int16_t getInt16(std::size_t i)
const;
122 boost::int32_t getInt32(std::size_t i)
const;
124 boost::int64_t getInt64(std::size_t i)
const;
126 bool getBool(std::size_t i)
const;
128 float getFloat(std::size_t i)
const;
132 std::string getNumeric(std::size_t i)
const;
134 std::string getString(std::size_t i)
const;
136 std::auto_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
138 std::auto_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
140 std::auto_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
142 std::auto_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
144 std::auto_ptr<te::dt::Array> getArray(std::size_t i)
const;
146 bool isNull(std::size_t i)
const;
150 const unsigned char* getWKB()
const;
170 #endif // __TERRALIB_OGR_INTERNAL_DATASET_H
int m_srid
The SRS id associated to this dataset.
AccessPolicy
Supported data access policies (can be used as bitfield).
#define TEOGREXPORT
You can use this macro in order to export/import classes and functions from this module.
te::common::TraverseType getTraverseType() const
It returns the traverse type associated to the dataset.
bool isConnected() const
It returns true if the dataset is connected and false if it is disconnected. A dataset can be connect...
Configuration flags for the OGR Driver Implementation of TerraLib.
TraverseType
A dataset can be traversed in two ways:
te::da::DataSetType * m_dt
DataSetType.
A class that models the description of a dataset.
unsigned char * m_wkbArray
double getDouble(const std::string &value, std::vector< std::string > &sVector)
OGRFeature * m_currentFeature
Implementation of a DataSet for OGR data provider.
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.