26#ifndef __TERRALIB_ATTRIBUTEFILL_CORE_INTERNAL_UTILS_H
27#define __TERRALIB_ATTRIBUTEFILL_CORE_INTERNAL_UTILS_H
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);
An utility struct for representing 2D coordinates.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
A rectified grid is the spatial support for raster data.
An abstract class for raster data strucutures.
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.
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.
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.
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 .
A rectified grid is the spatial support for raster data.
An abstract class for raster data strucutures.
An utility struct for representing 2D coordinates.
Configuration flags for the Attribute Fill module of TerraLib.
#define TEATTRIBUTEFILLEXPORT
You can use this macro in order to export/import classes and functions from this module.