26 #ifndef __TERRALIB_POSTGIS_INTERNAL_DATASET_H
27 #define __TERRALIB_POSTGIS_INTERNAL_DATASET_H
30 #include "../dataaccess/dataset/DataSet.h"
48 class GeometryProperty;
73 const std::vector<int>& ptypes,
74 bool timeIsInteger =
true,
84 std::size_t getNumProperties()
const;
86 int getPropertyDataType(std::size_t i)
const;
88 std::string getPropertyName(std::size_t i)
const;
92 std::string getDatasetNameOfProperty(std::size_t i)
const;
96 bool isConnected()
const;
98 std::size_t size()
const;
100 std::auto_ptr<te::gm::Envelope> getExtent(std::size_t i);
106 bool moveBeforeFirst();
112 bool move(std::size_t i);
114 bool isAtBegin()
const;
116 bool isBeforeBegin()
const;
118 bool isAtEnd()
const;
120 bool isAfterEnd()
const;
122 char getChar(std::size_t i)
const;
124 unsigned char getUChar(std::size_t i)
const;
126 boost::int16_t getInt16(std::size_t i)
const;
128 boost::int32_t getInt32(std::size_t i)
const;
130 boost::int64_t getInt64(std::size_t i)
const;
132 bool getBool(std::size_t i)
const;
134 float getFloat(std::size_t i)
const;
136 double getDouble(std::size_t i)
const;
138 std::string getNumeric(std::size_t i)
const;
140 std::string getString(std::size_t i)
const;
142 std::auto_ptr<te::dt::ByteArray> getByteArray(std::size_t i)
const;
144 std::auto_ptr<te::gm::Geometry> getGeometry(std::size_t i)
const;
146 std::auto_ptr<te::rst::Raster> getRaster(std::size_t i)
const;
148 std::auto_ptr<te::dt::DateTime> getDateTime(std::size_t i)
const;
150 std::auto_ptr<te::dt::Array> getArray(std::size_t i)
const;
152 bool isNull(std::size_t i)
const;
183 #endif // __TERRALIB_POSTGIS_INTERNAL_DATASET_H
bool m_timeIsInteger
It indicates if the postgis stores, internally, the time and timestamp as an integer.
CharEncoding
Supported charsets (character encoding).
int m_size
The number of datasets in the collection.
struct pg_result PGresult
PGresult * getPGResult() const
It returns the internal pg result.
te::common::CharEncoding m_ce
The connection character encoding.
std::vector< int > m_ptypes
The list of property types.
#define TEPGISEXPORT
You can use this macro in order to export/import classes and functions from this module.
AccessPolicy
Supported data access policies (can be used as bitfield).
TraverseType
A dataset can be traversed in two ways:
An Envelope defines a 2D rectangular region.
Implementation of a dataset for the PostGIS driver.
Configuration flags for the PostGIS Driver Implementation of TerraLib.
PGresult * m_result
The internal buffer with the result query.
A dataset is the unit of information manipulated by the data access module of TerraLib.
int m_i
The index of the current row.
te::gm::Envelope * m_mbr
The dataset extent.