Utils.h File Reference

Utility functions for the raster module. More...

#include "Band.h"
#include "BandProperty.h"
#include "Config.h"
#include "Grid.h"
#include "Raster.h"
#include "../common/MathUtils.h"
#include <memory>
#include <map>
#include <vector>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::rst
 Namespace for the Raster module of TerraLib.
 

Functions

TERASTEREXPORT std::string te::rst::ConvertColorInterpTypeToString (const te::rst::ColorInterp &ci)
 Function used to convert from a Color Interp Enum to a string. More...
 
TERASTEREXPORT std::string te::rst::ConvertPalleteInterpTypeToString (const te::rst::PaletteInterpretation &pi)
 Function used to convert from a Pallete Interp Enum to a string. More...
 
TERASTEREXPORT void te::rst::Copy (const Raster &rin, Raster &rout)
 Copies the pixel values from one raster to another. More...
 
TERASTEREXPORT void te::rst::Copy (const Band &bin, Band &bout)
 Copies the pixel values from one band to another. More...
 
TERASTEREXPORT void te::rst::Copy (unsigned int drow, unsigned int dcolumn, unsigned int height, unsigned int width, const Raster &rin, Raster &rout)
 Copy a subset of the raster, given a box. More...
 
TERASTEREXPORT te::rst::RasterPtr te::rst::CreateCopy (const te::rst::Raster &rin, const std::string &uri, const std::string &rType=std::string("GDAL"))
 Create a new raster from existing one. More...
 
TERASTEREXPORT te::rst::RasterPtr te::rst::CropRaster (const te::rst::Raster &rin, const te::gm::Polygon &pin, const std::map< std::string, std::string > &rinfo, const std::string &rType=std::string("GDAL"))
 Creates a raster crop using a polygon delimiter. More...
 
TERASTEREXPORT std::unique_ptr< te::rst::Rasterte::rst::CropRaster (const te::rst::Raster &rin, const std::vector< te::gm::Geometry const * > geometries, const std::map< std::string, std::string > &rinfo, const std::string &rType)
 Creates a raster crop using a polygon delimiter. More...
 
TERASTEREXPORT void te::rst::FillBand (te::rst::Band *bin, const std::complex< double > &value)
 Fill a Raster Band with provided value. More...
 
TERASTEREXPORT void te::rst::FillRaster (te::rst::Raster *rin, const std::complex< double > &value)
 Fill a Raster with provided value (all bands). More...
 
TERASTEREXPORT std::vector< BandProperty * > te::rst::GetBandProperties (const std::map< std::string, std::string > &rinfo)
 Returns a vector of band properties, based on a given raster info. More...
 
TERASTEREXPORT void te::rst::GetDataTypeRanges (const int &dataType, double &min, double &max)
 Return the values range of a given data type. More...
 
TERASTEREXPORT Grid * te::rst::GetGrid (const std::map< std::string, std::string > &rinfo)
 Returns a grid based on a given raster info. More...
 
TERASTEREXPORT int te::rst::GetPixelSize (int datatype)
 Returns the byte size of a given datatype. More...
 
TERASTEREXPORT std::vector< te::gm::Point * > te::rst::GetRandomPointsInRaster (const te::rst::Raster &inputRaster, unsigned int numberOfPoints=1000)
 Creates a vector of random positions (points) inside the raster. More...
 
TERASTEREXPORT int te::rst::Round (double val)
 Round a double value to a integer value. More...
 

Detailed Description

Utility functions for the raster module.

Definition in file Utils.h.