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);
void setURI(const std::string &uri)
This is a class that represents a GDAL Raster.
std::auto_ptr< te::gm::Envelope > getExtent(std::size_t i)
It computes the bounding rectangle for a spatial property of the dataset.
int getPropertyDataType(std::size_t pos) const
It returns the underlying data type of the property at position pos.
bool isAtEnd() const
It tells if the dataset internal pointer is on the last element of the collection.
This class represents Raster data.
DataSet()
Default constructor.
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
std::auto_ptr< te::rst::Raster > getRaster(std::size_t i) const
Method for retrieving a raster attribute value.
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 ...
An Envelope defines a 2D rectangular region.
bool moveLast()
It sets the dataset internal pointer to the last item in the collection.
std::size_t getNumProperties() const
It returns the number of properties that composes an item of the dataset.
bool movePrevious()
It moves the internal pointer to the previous item of the collection.
bool isAtBegin() const
It tells if the dataset internal pointer is on the first element of the collection or not...
std::string getDatasetNameOfProperty(std::size_t pos) const
It returns the underlying dataset name of the property at position pos.
te::rst::Grid * getGrid()
Returns the definition of the raster grid support.
bool moveFirst()
It moves the internal pointer to the first item in the collection.
std::string getPropertyName(std::size_t pos) const
It returns the property name at position pos.
bool move(std::size_t i)
It moves the dataset internal pointer to a given position.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
bool isAfterEnd() const
It tells if the dataset internal pointer is on the sentinel position after the last element of the co...
te::gm::Envelope * getExtent()
Returns the geographic extension of the grid.
bool moveBeforeFirst()
It moves the internal pointer to a position before the first item in the collection.
bool moveNext()
It moves the internal pointer to the next item of the collection.