26 #ifndef __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H
27 #define __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H
30 #include "../geometry/Point.h"
31 #include "../geometry/Polygon.h"
32 #include "../geometry/LinearRing.h"
33 #include "../geometry/Coord2D.h"
58 typedef std::vector<std::pair<unsigned int, unsigned int> >
TileSegIndex;
79 unsigned int& firstTile,
unsigned int& lastTile)
const;
88 bool getTileIndex(
const double& y,
unsigned int& tileIndex)
const;
115 bool addRing(
const unsigned int& ri);
124 bool getTile(
const double& y, TileSegIndex** index)
const;
129 return m_referencePolygon;
173 #endif // __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
te::gm::Coord2D m_withinVtx1
te::gm::Coord2D m_withinVtx0
const te::gm::Polygon & m_referencePolygon
Reference polygon.
Polygon tile indexing class for optmized geometrical relational tests.
te::gm::LinearRing const * m_withinRingPtr
An utility struct for representing 2D coordinates.
const te::gm::Polygon & getPolygon() const
Returns the polygon.
A LinearRing is a LineString that is both closed and simple.
A point with x and y coordinate values.
double m_dy
Tile resolution along "y" axis.
TileSegIndex * m_withinTileIndexPtr
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
std::vector< TileSegIndex * > m_tileIndex
Each tile segments index vector.
Configuration flags for the Raster module of TerraLib.
std::vector< std::pair< unsigned int, unsigned int > > TileSegIndex