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" 41 : m_dsType(
std::move(dt)),
74 return m_dsType->getProperty(pos)->getType();
79 return m_dsType->getProperty(pos)->getName();
95 return std::unique_ptr<te::rst::Raster>(rs);
100 std::size_t pos =
m_dsType->getPropertyPosition(name);
102 return std::unique_ptr<te::rst::Raster>(
getRaster(pos));
137 m_i =
static_cast<int>(i);
void setURI(const std::string &uri)
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.
virtual ~DataSet()
Destructor.
int m_size
For GDAL driver this will be constant: 1.
This class represents Raster data.
bool isPositionValid() const
It tells if the dataset internal pointer is on a valid position.
std::unique_ptr< te::rst::Raster > getRaster(std::size_t i) const
Method for retrieving a raster attribute value.
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.
This is a class that represents a GDAL Raster.
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
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.
std::unique_ptr< te::gm::Envelope > getExtent(std::size_t i)
It computes the bounding rectangle for a spatial property of the dataset.
bool moveLast()
It sets the dataset internal pointer to the last item in the collection.
static te::dt::TimeDuration dt(20, 30, 50, 11)
std::size_t getNumProperties() const
It returns the number of properties that composes an item of the dataset.
int m_i
Just to indicate the internal pointer movement.
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::unique_ptr< te::da::DataSetType > m_dsType
It describes the dataset.
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.
te::common::AccessPolicy m_rwRole
Access role.