26 #ifndef __TERRALIB_GPKG_INTERNAL_DATASET_H 27 #define __TERRALIB_GPKG_INTERNAL_DATASET_H 29 #include "../Config.h" 32 #include "../../../../dataaccess/dataset/DataSet.h" 71 DataSet(GDALDataset* dsrc, OGRLayer* layer);
82 std::size_t getNumProperties()
const;
84 int getPropertyDataType(std::size_t pos)
const;
86 std::string getPropertyName(std::size_t pos)
const;
90 std::string getDatasetNameOfProperty(std::size_t pos)
const;
96 std::size_t size()
const;
98 std::auto_ptr<te::gm::Envelope> getExtent(std::size_t i);
104 bool moveBeforeFirst();
110 bool move(std::size_t i);
112 bool isAtBegin()
const;
114 bool isBeforeBegin()
const;
116 bool isAtEnd()
const;
118 bool isAfterEnd()
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::auto_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
142 std::auto_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
144 std::auto_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
146 std::auto_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
148 std::auto_ptr<te::dt::Array> getArray(std::size_t i)
const;
150 bool isNull(std::size_t i)
const;
154 const unsigned char* getWKB()
const;
175 #endif // __TERRALIB_OGR_INTERNAL_DATASET_H Implementation of a DataSet for OGR data provider.
te::common::TraverseType getTraverseType() const
It returns the traverse type associated to the dataset.
te::common::AccessPolicy getAccessPolicy() const
It returns the read and write permission associated to the dataset.
A class that models the description of a dataset.
EncodingType
Supported character encodings.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
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.
#define TERRAMOBILEPLUGINSDLLEXPORT
A dataset is the unit of information manipulated by the data access module of TerraLib.
OGRFeature * m_currentFeature
unsigned char * m_wkbArray
int m_srid
The SRS id associated to this dataset.