Go to the documentation of this file.
26 #ifndef __TERRALIB_ATTRIBUTEFILL_CORE_INTERNAL_UTILS_H
27 #define __TERRALIB_ATTRIBUTEFILL_CORE_INTERNAL_UTILS_H
33 #include "../geometry/Coord2D.h"
34 #include "../geometry/Geometry.h"
35 #include "../geometry/Polygon.h"
36 #include "../raster/Grid.h"
37 #include "../raster/Raster.h"
45 namespace attributefill
82 uint32_t &minimumRow, uint32_t &minimumColumn,
83 uint32_t &maximumRow, uint32_t &maximumColumn);
102 const unsigned int &band,
104 const uint32_t &minimumRow,
105 const uint32_t &minimumColumn,
106 const uint32_t &maximumRow,
107 const uint32_t &maximumColumn,
108 std::map<double, int>& values);
127 const unsigned int &band,
129 const uint32_t &minimumRow,
130 const uint32_t &minimumColumn,
131 const uint32_t &maximumRow,
132 const uint32_t &maximumColumn,
133 std::map<double, double> &percentOfEachClassByArea);
152 const unsigned int &band,
154 const uint32_t &minimumRow,
155 const uint32_t &minimumColumn,
156 const uint32_t &maximumRow,
157 const uint32_t &maximumColumn,
158 std::map<double, double> &totalAreaByClass);
163 #endif // __TERRALIB_ATTRIBUTEFILL_CORE_INTERNAL_UTILS_H
TEATTRIBUTEFILLEXPORT void GetMinMaxLineAndColumn(const te::rst::Raster &raster, const te::gm::Polygon &polygon, uint32_t &minimumRow, uint32_t &minimumColumn, uint32_t &maximumRow, uint32_t &maximumColumn)
Gets the minimum and maximum row and column values of the raster based on polygon.
TEATTRIBUTEFILLEXPORT void GetValuesFromBand(const te::rst::Raster &raster, const unsigned int &band, const gm::Polygon &polygon, const uint32_t &minimumRow, const uint32_t &minimumColumn, const uint32_t &maximumRow, const uint32_t &maximumColumn, std::map< double, int > &values)
Gets the pixel values for a specific band that intersects the polygon.
An abstract class for raster data strucutures.
TEATTRIBUTEFILLEXPORT std::pair< uint32_t, uint32_t > GeoToGrid(const te::gm::Coord2D &coord, const rst::Grid &grid)
Convert the coordinate to the grid col/row postion of the pixel .
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A rectified grid is the spatial support for raster data.
#define TEATTRIBUTEFILLEXPORT
You can use this macro in order to export/import classes and functions from this module.
Enumerations of XML module.
An utility struct for representing 2D coordinates.
TEATTRIBUTEFILLEXPORT void GetTotalAreaByClass(const te::rst::Raster &raster, const unsigned int &band, const gm::Polygon &polygon, const uint32_t &minimumRow, const uint32_t &minimumColumn, const uint32_t &maximumRow, const uint32_t &maximumColumn, std::map< double, double > &totalAreaByClass)
Gets the pixel area for a specific band that intersects the polygon.
Proxy configuration file for TerraView (see terraview_config.h).
TEATTRIBUTEFILLEXPORT std::string GetOperationFullName(const int &e)
Gets the full name of the operation as string.
TEATTRIBUTEFILLEXPORT void GetPercentOfEachClassByArea(const te::rst::Raster &raster, const unsigned int &band, const gm::Polygon &polygon, const uint32_t &minimumRow, const uint32_t &minimumColumn, const uint32_t &maximumRow, const uint32_t &maximumColumn, std::map< double, double > &percentOfEachClassByArea)
Gets the pixel percentage for a specific band that intersects the polygon.