te::rst Namespace Reference

Namespace for the Raster module of TerraLib. More...

Classes

class  AbstractBandIterator
 This class implements an abstract iterator to "navigate" over a single band. More...
 
class  AbstractPositionIterator
 This class is the base for implementing ways to navigate over the band with spatial restriction, e.g. through a line, inside a bounding box or polygon, etc. More...
 
class  Band
 A raster band description. More...
 
class  BandIterator
 This class implements an iterator to "navigate" over a single band. More...
 
class  BandIteratorWindow
 It implements and iterator to "navigate" over a single band, optimized by a window structure (e.g. 3x3, 5x5, etc). Examples include filters, moving windows, morphology, etc. More...
 
class  BandIteratorWithMask
 This class implements an iterator to "navigate" over a single band, with a spatial restriction given by a mask. More...
 
class  BandProperty
 A raster band description. More...
 
struct  BandSummary
 A summary of a raster band (most statistics). More...
 
struct  CDouble
 A simple type for use by driver to cast raster data blocks. More...
 
struct  CFloat
 A simple type for use by driver to cast raster data blocks. More...
 
struct  CInt16
 A simple type for use by driver to cast raster data blocks. More...
 
struct  CInt32
 A simple type for use by driver to cast raster data blocks. More...
 
class  ConstBandIterator
 This class implements an iterator to "navigate" over a single band (const). More...
 
class  Grid
 A rectified grid is the spatial support for raster data. More...
 
class  Interpolator
 It interpolates one pixel based on a selected algorithm. Methods currently available are Nearest Neighbor, Bilinear, and Bicubic. More...
 
class  LineIterator
 This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a line. More...
 
class  Module
 This singleton defines the TerraLib Raster module entry. More...
 
class  PointSetIterator
 This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a vector of points. More...
 
class  PolygonIterator
 This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a polygon. More...
 
class  ProxyRaster
 A proxy class for bands of several rasters over the same region. More...
 
class  Raster
 An abstract class for raster data strucutures. More...
 
class  RasterFactory
 This is the abstract factory for Rasters. More...
 
class  RasterIterator
 This class implements and iterator to "navigate" over a raster, with a predefined number of bands. More...
 
class  RasterProperty
 Raster property. More...
 
class  RasterSummaryManager
 A singleton for keeping raster summaries (most statistics). It stores an internal map of raster conn info str and their respective summaries. More...
 
class  RasterSynchronizer
 An access synchronizer to be used in SynchronizedRaster raster instances. More...
 
class  SynchronizedBand
 Syncrhonized raster band. More...
 
class  SynchronizedBandBlocksManager
 Synchronized raster raster band blocks manager. More...
 
class  SynchronizedRaster
 An adapter class to allow concurrent access to raster data by multiple threads. More...
 
class  TileIndexer
 Polygon tile indexing class for optmized geometrical relational tests. More...
 
class  Vectorizer
 It implements the vectorizer, based on TerraLib 4 algorithm. More...
 
class  VectorizerPolygonStructure
 A polygon container node class. More...
 

Typedefs

typedef boost::shared_ptr< BandPropertyBandPropertyPtr
 
typedef void(* GetBufferValueFPtr) (int index, void *buffer, double *value)
 The type of function used to extract data from a buffer. More...
 
typedef boost::shared_ptr< GridGridPtr
 
typedef boost::shared_ptr< ProxyRasterProxyRasterPtr
 
typedef boost::shared_ptr< RasterRasterPtr
 
typedef boost::ptr_vector< BandSummaryRasterSummary
 RasterSummary is just a typedef of a boost::ptr_vector. More...
 
typedef void(* SetBufferValueFPtr) (int index, void *buffer, const double *value)
 The type of function used to extract data from a buffer. More...
 

Enumerations

enum  ColorInterp {
  UndefCInt, GrayIdxCInt, PaletteIdxCInt, RedCInt,
  GreenCInt, BlueCInt, AlphaCInt, HueCInt,
  SatCInt, LigCInt, CyanCInt, MagentaCInt,
  YellowCInt, KeyCInt, YCInt, CbCInt,
  CrCInt
}
 Color model component use. More...
 
enum  InterpolationMethod { UndefInterpMethod = 0, NearestNeighbor = 1, Bilinear = 2, Bicubic = 3 }
 Allowed interpolation methods. More...
 
enum  PaletteInterpretation {
  UndefPalInt, GrayPalInt, RGBPalInt, CMYKPalInt,
  HSLPalInt
}
 Palette interpratation types. More...
 
enum  SummaryTypes {
  SUMMARY_MIN = 1, SUMMARY_MAX = 2, SUMMARY_STD = 4, SUMMARY_MEAN = 8,
  SUMMARY_R_HISTOGRAM = 16, SUMMARY_I_HISTOGRAM = 32, SUMMARY_ALL = 63
}
 Types for the BandSummary. More...
 

Functions

TERASTEREXPORT std::string ConvertColorInterpTypeToString (const te::rst::ColorInterp &ci)
 Function used to convert from a Color Interp Enum to a string. More...
 
TERASTEREXPORT std::string ConvertPalleteInterpTypeToString (const te::rst::PaletteInterpretation &pi)
 Function used to convert from a Pallete Interp Enum to a string. More...
 
TERASTEREXPORT void Copy (const Raster &rin, Raster &rout)
 Copies the pixel values from one raster to another. More...
 
TERASTEREXPORT void Copy (const Band &bin, Band &bout)
 Copies the pixel values from one band to another. More...
 
TERASTEREXPORT void 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 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 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 void DummyGetValue (int index, void *buffer, double *value)
 
TERASTEREXPORT void DummySetValue (int index, void *buffer, const double *value)
 
TERASTEREXPORT void FillBand (te::rst::Band *bin, const std::complex< double > &value)
 Fill a Raster Band with provided value. More...
 
TERASTEREXPORT void FillRaster (te::rst::Raster *rin, const std::complex< double > &value)
 Fill a Raster with provided value (all bands). More...
 
TERASTEREXPORT void Get1bit (int index, void *buffer, double *value)
 
TERASTEREXPORT void Get2bits (int index, void *buffer, double *value)
 
TERASTEREXPORT void Get4bits (int index, void *buffer, double *value)
 
TERASTEREXPORT std::vector< BandProperty * > GetBandProperties (const std::map< std::string, std::string > &rinfo)
 Returns a vector of band properties, based on a given raster info. More...
 
TERASTEREXPORT void GetChar (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCIDouble (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCIFloat (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCIInt16 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCIInt32 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCRDouble (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCRFloat (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCRInt16 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetCRInt32 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetDataTypeRanges (const int &dataType, double &min, double &max)
 Return the values range of a given data type. More...
 
TERASTEREXPORT void GetDouble (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetFloat (int index, void *buffer, double *value)
 
TERASTEREXPORT GridGetGrid (const std::map< std::string, std::string > &rinfo)
 Returns a grid based on a given raster info. More...
 
TERASTEREXPORT void GetInt16 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetInt32 (int index, void *buffer, double *value)
 
TERASTEREXPORT int GetPixelSize (int datatype)
 Returns the byte size of a given datatype. More...
 
TERASTEREXPORT std::vector< te::gm::Point * > GetRandomPointsInRaster (const te::rst::Raster &inputRaster, unsigned int numberOfPoints=1000)
 Creates a vector of random positions (points) inside the raster. More...
 
TERASTEREXPORT void GetUChar (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetUInt16 (int index, void *buffer, double *value)
 
TERASTEREXPORT void GetUInt32 (int index, void *buffer, double *value)
 
TERASTEREXPORT te::rst::RasterReproject (te::rst::Raster const *const rin, int srid, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor)
 Reprojects a raster to another SRS. More...
 
TERASTEREXPORT te::rst::RasterReproject (te::rst::Raster const *const rin, int srid, double llx, double lly, double urx, double ury, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor)
 Reprojects a portion of a raster to another SRS. More...
 
TERASTEREXPORT te::rst::RasterReproject (te::rst::Raster const *const rin, int srid, double llx, double lly, double urx, double ury, double resx, double resy, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor)
 Reprojects a portion of a raster to another SRS and maintaining a given resolution. More...
 
TERASTEREXPORT int Round (double val)
 Round a double value to a integer value. More...
 
TERASTEREXPORT void Set1bit (int index, void *buffer, const double *value)
 
TERASTEREXPORT void Set2bits (int index, void *buffer, const double *value)
 
TERASTEREXPORT void Set4bits (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetBlockFunctions (GetBufferValueFPtr *gb, GetBufferValueFPtr *gbi, SetBufferValueFPtr *sb, SetBufferValueFPtr *sbi, int type)
 Sets the pointers to functions that helps to extract a double or complex value from a specific buffer data type. More...
 
TERASTEREXPORT void SetChar (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCIDouble (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCIFloat (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCIInt16 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCIInt32 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCRDouble (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCRFloat (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCRInt16 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetCRInt32 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetDouble (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetFloat (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetInt16 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetInt32 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetUChar (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetUInt16 (int index, void *buffer, const double *value)
 
TERASTEREXPORT void SetUInt32 (int index, void *buffer, const double *value)
 

Detailed Description

Namespace for the Raster module of TerraLib.

Typedef Documentation

typedef boost::shared_ptr<BandProperty> te::rst::BandPropertyPtr

Definition at line 153 of file BandProperty.h.

typedef void(* te::rst::GetBufferValueFPtr) (int index, void *buffer, double *value)

The type of function used to extract data from a buffer.

Definition at line 37 of file BlockUtils.h.

typedef boost::shared_ptr<Grid> te::rst::GridPtr

Definition at line 333 of file Grid.h.

typedef boost::shared_ptr<ProxyRaster> te::rst::ProxyRasterPtr

Definition at line 114 of file ProxyRaster.h.

typedef boost::shared_ptr<Raster> te::rst::RasterPtr

Definition at line 685 of file Raster.h.

typedef boost::ptr_vector<BandSummary> te::rst::RasterSummary

RasterSummary is just a typedef of a boost::ptr_vector.

It is a vector of BandSummary, one summary for each band in a raster.

Definition at line 44 of file RasterSummary.h.

typedef void(* te::rst::SetBufferValueFPtr) (int index, void *buffer, const double *value)

The type of function used to extract data from a buffer.

Definition at line 40 of file BlockUtils.h.

Enumeration Type Documentation

Color model component use.

Enumerator
UndefCInt 

No color interpretation is associated with the band.

GrayIdxCInt 

Index into a lookup table.

PaletteIdxCInt 

Palette indexes color interpretation.

RedCInt 

Red channel color interpretation.

GreenCInt 

Green channel color interpretation.

BlueCInt 

Blue channel color interpretation.

AlphaCInt 

Alpha channel color interpretation.

HueCInt 

Hue channel color interpretation.

SatCInt 

Saturation color interpretation.

LigCInt 

Lightness color interpretation.

CyanCInt 

Cyan color interpretation.

MagentaCInt 

Magenta color interpretation.

YellowCInt 

Yellow color interpretation.

KeyCInt 

Key (black) color interpretation.

YCInt 

YCbCr Y Band color interpretation.

CbCInt 

YCbCr Cb Band color interpretation.

CrCInt 

YCbCr Cr Band color interpretation.

Definition at line 54 of file Enums.h.

Allowed interpolation methods.

Enumerator
UndefInterpMethod 

Undefined interpolation method.

NearestNeighbor 

Near neighborhood interpolation method.

Bilinear 

Bilinear interpolation method.

Bicubic 

Bicubic interpolation method.

Definition at line 92 of file Enums.h.

Palette interpratation types.

Enumerator
UndefPalInt 

Undefined palette interpretation.

GrayPalInt 

Gray indexed palette interpretation.

RGBPalInt 

RGB indexed palette interpretation.

CMYKPalInt 

CMYK indexed palette interpretation.

HSLPalInt 

HSL indexed palette interpretation.

Definition at line 80 of file Enums.h.

Types for the BandSummary.

Enumerator
SUMMARY_MIN 

Calculate the min value.

SUMMARY_MAX 

Calculate the max value.

SUMMARY_STD 

Calculate the standard deviation value.

SUMMARY_MEAN 

Calculate the mean value.

SUMMARY_R_HISTOGRAM 

Calculate the histogram for the real part.

SUMMARY_I_HISTOGRAM 

Calculate the histogram for the imaginary part.

SUMMARY_ALL 

Calculate all the summary types.

Definition at line 38 of file Enums.h.

Function Documentation

std::string te::rst::ConvertColorInterpTypeToString ( const te::rst::ColorInterp ci)

Function used to convert from a Color Interp Enum to a string.

Parameters
ciThe color interpretation enum
Returns
A string with the color interpreation name.

Definition at line 504 of file Utils.cpp.

References AlphaCInt, BlueCInt, CbCInt, CrCInt, CyanCInt, GrayIdxCInt, GreenCInt, HueCInt, KeyCInt, LigCInt, MagentaCInt, PaletteIdxCInt, RedCInt, SatCInt, TE_TR, UndefCInt, YCInt, and YellowCInt.

Referenced by te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().

std::string te::rst::ConvertPalleteInterpTypeToString ( const te::rst::PaletteInterpretation pi)

Function used to convert from a Pallete Interp Enum to a string.

Parameters
piThe pallete interpretation enum
Returns
A string with the pallete interpreation name.

Definition at line 544 of file Utils.cpp.

References CMYKPalInt, GrayPalInt, HSLPalInt, RGBPalInt, TE_TR, and UndefPalInt.

Referenced by te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().

void te::rst::Copy ( const Raster rin,
Raster rout 
)

Copies the pixel values from one raster to another.

Parameters
rinThe input raster.
routThe output raster.
Warning
Both rasters must have the same properties of grid and number/type of bands.

Definition at line 157 of file Utils.cpp.

References te::common::Copy(), te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::BandProperty::getType(), te::rst::Band::getValue(), te::common::RWAccess, te::rst::Band::setValue(), and te::common::WAccess.

Referenced by te::mem::Raster::create(), and te::mem::Raster::open().

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.

Parameters
methodThe method of interpolation.
See also
te::rst::Interpolator
Parameters
drowThe starting row to make a subset of the image.
dcolumnThe starting column to make a subset of the image.
heightThe height of the subset.
widthThe width of the subset.
rinPointer to valid output raster.
routPointer to valid output raster.

Definition at line 270 of file Utils.cpp.

References te::rst::Grid::geoToGrid(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Raster::getValues(), te::rst::Grid::gridToGeo(), te::da::Round(), te::rst::Raster::setValues(), te::gm::Coord2D::x, and te::gm::Coord2D::y.

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.

Parameters
rinThe input raster.
uriThe output raster URI.
rTypeThe name of the specific driver to create the raster.
Returns
A valid pointer to the created raster or a null (invalid) pointer if an error ocurred.

Definition at line 306 of file Utils.cpp.

References te::common::Copy(), te::rst::Raster::getBand(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rst::Band::getProperty(), and te::rst::RasterFactory::make().

Referenced by te::qt::plugins::terralib4::TL4ConverterWizard::commit().

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.

Parameters
rinThe input raster.
pinThe input polygon, to be used as a delimiter.
rinfoThe map of raster informations.
rTypeThe name of the specific driver to create the raster.
Returns
A valid pointer to the created raster or a null (invalid) pointer if an error ocurred.

Definition at line 431 of file Utils.cpp.

References te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), FillBand(), te::rst::Raster::getBand(), te::rst::PolygonIterator< T >::getColumn(), te::rst::Raster::getGrid(), te::gm::Geometry::getMBR(), te::rst::Raster::getNumberOfBands(), te::rst::Band::getProperty(), te::rst::Raster::getResolutionX(), te::rst::Raster::getResolutionY(), te::rst::PolygonIterator< T >::getRow(), te::rst::Raster::getSRID(), te::sa::Grid, te::rst::Grid::gridToGeo(), te::rst::BandProperty::m_noDataValue, te::rst::RasterFactory::make(), te::gm::Coord2D::x, and te::gm::Coord2D::y.

Referenced by te::rp::RasterAttributes::getGLCM().

void te::rst::DummyGetValue ( int  index,
void *  buffer,
double *  value 
)

Definition at line 82 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::DummySetValue ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 86 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::FillBand ( te::rst::Band bin,
const std::complex< double > &  value 
)

Fill a Raster Band with provided value.

Parameters
binThe input band.
valueThe value to fill all the bands of the Raster.

Definition at line 424 of file Utils.cpp.

References te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getRaster(), and te::rst::Band::setValue().

Referenced by CropRaster(), and FillRaster().

void te::rst::FillRaster ( te::rst::Raster rin,
const std::complex< double > &  value 
)

Fill a Raster with provided value (all bands).

Parameters
rinThe input raster.
valueThe value to fill all the bands of the Raster.

Definition at line 418 of file Utils.cpp.

References FillBand(), te::rst::Raster::getBand(), and te::rst::Raster::getNumberOfBands().

Referenced by te::qt::widgets::ClippingWizard::executeLayerClipping().

void te::rst::Get1bit ( int  index,
void *  buffer,
double *  value 
)

Definition at line 104 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::Get2bits ( int  index,
void *  buffer,
double *  value 
)

Definition at line 97 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::Get4bits ( int  index,
void *  buffer,
double *  value 
)

Definition at line 90 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

std::vector< te::rst::BandProperty * > te::rst::GetBandProperties ( const std::map< std::string, std::string > &  rinfo)

Returns a vector of band properties, based on a given raster info.

Parameters
rinfoThe map of raster informations.
Returns
A vector of band properties.
Note
The caller will take the ownership of the returned pointer.
Warning
The variable rinfo must have the properties NBANDS and BANDSTYPE defined.

Definition at line 85 of file Utils.cpp.

void te::rst::GetChar ( int  index,
void *  buffer,
double *  value 
)

Definition at line 116 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCIDouble ( int  index,
void *  buffer,
double *  value 
)

Definition at line 186 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCIFloat ( int  index,
void *  buffer,
double *  value 
)

Definition at line 176 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCIInt16 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 156 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCIInt32 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 166 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCRDouble ( int  index,
void *  buffer,
double *  value 
)

Definition at line 181 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCRFloat ( int  index,
void *  buffer,
double *  value 
)

Definition at line 171 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCRInt16 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 151 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetCRInt32 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 161 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetDouble ( int  index,
void *  buffer,
double *  value 
)

Definition at line 146 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetFloat ( int  index,
void *  buffer,
double *  value 
)

Definition at line 141 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

te::rst::Grid * te::rst::GetGrid ( const std::map< std::string, std::string > &  rinfo)

Returns a grid based on a given raster info.

Parameters
rinfoThe map of raster informations.
Returns
A grid info.
Note
The caller will take the ownership of the returned pointer.
Warning
The parameter rinfo must have the properties NCOLS and NROWS defined.
Optional properties in parameter rinfo are RESX, RESY, SRID, ULX and ULY.

Definition at line 111 of file Utils.cpp.

References TE_UNKNOWN_SRS.

void te::rst::GetInt16 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 126 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetInt32 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 136 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

int te::rst::GetPixelSize ( int  datatype)
void te::rst::GetUChar ( int  index,
void *  buffer,
double *  value 
)

Definition at line 111 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetUInt16 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 121 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::GetUInt32 ( int  index,
void *  buffer,
double *  value 
)

Definition at line 131 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

te::rst::Raster * te::rst::Reproject ( te::rst::Raster const *const  rin,
int  srid,
const std::map< std::string, std::string > &  routinfo,
int  m = te::rst::NearestNeighbor 
)

Reprojects a raster to another SRS.

Parameters
rinThe input raster file. Do not pass a null pointer.
sridThe target SRID for the reprojection.
routinfoThe basic parameters necessary to create the reprojected raster.
mThe method of interpolation to apply.
See also
te::rst::Interpolator
Returns
A pointer to the raster reprojected if success or a null pointer otherwise.
Exceptions
ExceptionThis function might through an exception if the coordinate conversion fails.
Note
The caller will take the ownership of the returned pointer.

Definition at line 48 of file Reprojection.cpp.

Referenced by Reproject(), te::tools::rastermanager::RasterManager::reproject(), te::gdal::Raster::transform(), and te::rst::Raster::transform().

te::rst::Raster * te::rst::Reproject ( te::rst::Raster const *const  rin,
int  srid,
double  llx,
double  lly,
double  urx,
double  ury,
const std::map< std::string, std::string > &  routinfo,
int  m = te::rst::NearestNeighbor 
)

Reprojects a portion of a raster to another SRS.

Parameters
rinThe input raster file. Do not pass a null pointer.
sridThe target SRID for the reprojection.
llxLower-left X-coordinate of the portion to be reprojected (in the original SRS).
llyLower-left Y-coordinate of the portion to be reprojected (in the original SRS).
urxUpper-Right X-coordinate of the portion to be reprojected (in the original SRS).
uryUpper-Right Y-coordinate of the portion to be reprojected (in the original SRS).
routinfoThe basic parameters necessary to create the reprojected raster.
mThe method of interpolation to apply.
See also
te::rst::Interpolator
Returns
A pointer to the raster reprojected if success or a null pointer otherwise.
Exceptions
ExceptionThis function might through an exception if the coordinate conversion fails.
Note
The caller will take the ownership of the returned pointer.

Definition at line 53 of file Reprojection.cpp.

References Reproject().

te::rst::Raster * te::rst::Reproject ( te::rst::Raster const *const  rin,
int  srid,
double  llx,
double  lly,
double  urx,
double  ury,
double  resx,
double  resy,
const std::map< std::string, std::string > &  routinfo,
int  m = te::rst::NearestNeighbor 
)

Reprojects a portion of a raster to another SRS and maintaining a given resolution.

Parameters
rinThe input raster file. Do not pass a null pointer.
sridThe target SRID for the reprojection.
llxLower-left X-coordinate of the portion to be reprojected (in the original SRS).
llyLower-left Y-coordinate of the portion to be reprojected (in the original SRS).
urxUpper-Right X-coordinate of the portion to be reprojected (in the original SRS).
uryUpper-Right Y-coordinate of the portion to be reprojected (in the original SRS).
resxThe output x resolution (in units of the target SRS).
resxThe output y resolution (in units of the target SRS).
routinfoThe basic parameters necessary to create the reprojected raster.
mThe method of interpolation to apply.
See also
te::rst::Interpolator
Returns
A pointer to the raster reprojected if success or a null pointer otherwise.
Exceptions
ExceptionThis function might through an exception if the coordinate conversion fails.
Note
The caller will take the ownership of the returned pointer.

Definition at line 58 of file Reprojection.cpp.

References te::rst::Raster::getBand(), te::rst::Raster::getExtent(), te::gm::Envelope::getHeight(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Raster::getResolutionX(), te::rst::Raster::getResolutionY(), te::rst::Raster::getSRID(), te::gm::Envelope::getWidth(), te::sa::Grid, InterpolateIn(), te::gm::Envelope::isValid(), te::rst::RasterFactory::make(), te::srs::Converter::setSourceSRID(), and te::srs::Converter::setTargetSRID().

void te::rst::Set1bit ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 191 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::Set2bits ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 199 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::Set4bits ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 207 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetBlockFunctions ( GetBufferValueFPtr gb,
GetBufferValueFPtr gbi,
SetBufferValueFPtr sb,
SetBufferValueFPtr sbi,
int  type 
)

Sets the pointers to functions that helps to extract a double or complex value from a specific buffer data type.

Parameters
gbThe get buffer of real values function.
gbiThe get buffer of imaginary values function.
sbThe set buffer of real values function.
sbiThe set buffer of imaginary values function.
typeThe block data type.

Definition at line 295 of file BlockUtils.cpp.

References te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CHAR_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, te::dt::DOUBLE_TYPE, DummyGetValue(), DummySetValue(), te::dt::FLOAT_TYPE, Get1bit(), Get2bits(), Get4bits(), GetChar(), GetCIDouble(), GetCIFloat(), GetCIInt16(), GetCIInt32(), GetCRDouble(), GetCRFloat(), GetCRInt16(), GetCRInt32(), GetDouble(), GetFloat(), GetInt16(), GetInt32(), GetUChar(), GetUInt16(), GetUInt32(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::R1BIT_TYPE, te::dt::R2BITS_TYPE, te::dt::R4BITS_TYPE, Set1bit(), Set2bits(), Set4bits(), SetChar(), SetCIDouble(), SetCIFloat(), SetCIInt16(), SetCIInt32(), SetCRDouble(), SetCRFloat(), SetCRInt16(), SetCRInt32(), SetDouble(), SetFloat(), SetInt16(), SetInt32(), SetUChar(), SetUInt16(), SetUInt32(), te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, and te::dt::UINT32_TYPE.

Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::mem::Band::Band(), te::gdal::Band::Band(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::mem::CachedBand::CachedBand(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::mem::ExpansibleRaster::dummyFillBlocks(), te::mem::ExpansibleBand::ExpansibleBand(), te::idl::IdlBand::IdlBand(), te::rst::SynchronizedBand::SynchronizedBand(), and te::mem::TiledBand::TiledBand().

void te::rst::SetChar ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 220 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCIDouble ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 290 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCIFloat ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 280 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCIInt16 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 260 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCIInt32 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 270 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCRDouble ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 285 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCRFloat ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 275 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCRInt16 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 255 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetCRInt32 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 265 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetDouble ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 250 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetFloat ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 245 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetInt16 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 230 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetInt32 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 240 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetUChar ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 215 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetUInt16 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 225 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().

void te::rst::SetUInt32 ( int  index,
void *  buffer,
const double *  value 
)

Definition at line 235 of file BlockUtils.cpp.

Referenced by SetBlockFunctions().