27 #include "../dataaccess/dataset/DataSetType.h"
28 #include "../datatype/Enums.h"
29 #include "../geometry/Envelope.h"
30 #include "../raster/RasterProperty.h"
31 #include "../raster/Grid.h"
70 return m_dsType->size();
75 return m_dsType->getProperty(pos)->getType();
80 return m_dsType->getProperty(pos)->getName();
90 assert(i < getNumProperties());
95 return std::auto_ptr<te::rst::Raster>(rs);
100 std::size_t pos = m_dsType->getPropertyPosition(name);
102 return std::auto_ptr<te::rst::Raster>(getRaster(pos));
108 return (m_i < m_size);
120 return (m_size != 0);
126 return (m_size != 0);
132 return (m_size != 0);
137 m_i =
static_cast<int>(i);
138 return (m_i < m_size);
153 return (m_i == (m_size - 1));
158 return (m_i >= m_size);
bool moveBeforeFirst()
It moves the internal pointer to a position before the first item in the collection.
int getPropertyDataType(std::size_t pos) const
It returns the underlying data type of the property at position pos.
This class represents Raster data.
std::auto_ptr< te::rst::Raster > getRaster(std::size_t i) const
Method for retrieving a raster attribute value.
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
DataSet()
Default constructor.
bool isAtBegin() const
It tells if the dataset internal pointer is on the first element of the collection or not...
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
bool move(std::size_t i)
It moves the dataset internal pointer to a given position.
AccessPolicy
Supported data access policies (can be used as bitfield).
bool isBeforeBegin() const
It tells if the dataset internal pointer is in a position before the first element of the collection ...
bool moveFirst()
It moves the internal pointer to the first item in the collection.
te::gm::Envelope * getExtent()
Returns the geographic extension of the grid.
te::rst::Grid * getGrid()
Returns the definition of the raster grid support.
std::size_t getNumProperties() const
It returns the number of properties that composes an item of the dataset.
void setURI(const std::string &uri)
bool moveLast()
It sets the dataset internal pointer to the last item in the collection.
This is a class that represents a GDAL Raster.
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
std::string getPropertyName(std::size_t pos) const
It returns the property name at position pos.
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
bool moveNext()
It moves the internal pointer to the next item of the collection.
bool movePrevious()
It moves the internal pointer to the previous item of the collection.
std::auto_ptr< te::gm::Envelope > getExtent(std::size_t i)
It computes the bounding rectangle for a spatial property of the dataset.
bool isAtEnd() const
It tells if the dataset internal pointer is on the last element of the collection.
An Envelope defines a 2D rectangular region.
std::string getDatasetNameOfProperty(std::size_t pos) const
It returns the underlying dataset name of the property at position pos.
bool isAfterEnd() const
It tells if the dataset internal pointer is on the sentinel position after the last element of the co...