26 #ifndef __TERRALIB_GEOMETRY_INTERNAL_CELLTILLING_H
27 #define __TERRALIB_GEOMETRY_INTERNAL_CELLTILLING_H
30 #include "../Config.h"
Algorithm to help controlling creating and iterating in a tile.
std::size_t m_numColumns
The number of columns of the tilling.
double m_resolutionY
The resolution of the tilling in the y-axis.
std::size_t getNumRows() const
Returns the number of rows of the tilling.
std::size_t getNumColumns() const
Returns the number of columns of the tilling.
CellTilling(const te::gm::Envelope &envelope, double resolutionX, double resolutionY)
Constructor.
std::size_t getTileRow(const te::gm::Coord2D &coord) const
std::unique_ptr< te::gm::Envelope > m_envelope
The reference envelope.
std::size_t getTileColumn(const te::gm::Coord2D &coord) const
Find the tile row index where the given coordinate is located.
double m_resolutionX
The resolution of the tilling in the x-axis.
te::gm::Envelope getTile(std::size_t column, std::size_t row) const
Returns the tile located in the given row and column.
std::size_t getNumTiles() const
Returns the number of tiles of the tilling.
std::size_t m_numRows
The number of rows of the tilling.
An Envelope defines a 2D rectangular region.
An utility struct for representing 2D coordinates.
#define TEGEOMEXPORT
You can use this macro in order to export/import classes and functions from this module.