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< BandProperty > | BandPropertyPtr |
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< Grid > | GridPtr |
typedef boost::shared_ptr< ProxyRaster > | ProxyRasterPtr |
typedef boost::shared_ptr< Raster > | RasterPtr |
typedef boost::ptr_vector< BandSummary > | RasterSummary |
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 Grid * | GetGrid (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::Raster * | 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. More... | |
TERASTEREXPORT te::rst::Raster * | 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. More... | |
TERASTEREXPORT te::rst::Raster * | 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. 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) |
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 |
typedef boost::shared_ptr<ProxyRaster> te::rst::ProxyRasterPtr |
Definition at line 114 of file ProxyRaster.h.
typedef boost::shared_ptr<Raster> te::rst::RasterPtr |
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.
enum te::rst::ColorInterp |
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. |
Types for the BandSummary.
std::string te::rst::ConvertColorInterpTypeToString | ( | const te::rst::ColorInterp & | ci | ) |
Function used to convert from a Color Interp Enum to a string.
ci | The color interpretation enum |
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.
pi | The pallete interpretation enum |
Definition at line 544 of file Utils.cpp.
References CMYKPalInt, GrayPalInt, HSLPalInt, RGBPalInt, TE_TR, and UndefPalInt.
Referenced by te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().
Copies the pixel values from one raster to another.
rin | The input raster. |
rout | The output raster. |
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().
Copies the pixel values from one band to another.
bin | The input band. |
bout | The output band. |
Definition at line 191 of file Utils.cpp.
References te::rst::ConstBandIterator< T >::begin(), te::rst::ConstBandIterator< T >::end(), te::rst::Band::getBlockSize(), te::rst::AbstractBandIterator< T >::getColumn(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getRaster(), te::rst::AbstractBandIterator< T >::getRow(), te::rst::BandProperty::getType(), te::rst::Band::getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::Band::read(), te::rst::Band::setValue(), and te::rst::Band::write().
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.
method | The method of interpolation. |
drow | The starting row to make a subset of the image. |
dcolumn | The starting column to make a subset of the image. |
height | The height of the subset. |
width | The width of the subset. |
rin | Pointer to valid output raster. |
rout | Pointer 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.
rin | The input raster. |
uri | The output raster URI. |
rType | The name of the specific driver to create the raster. |
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.
rin | The input raster. |
pin | The input polygon, to be used as a delimiter. |
rinfo | The map of raster informations. |
rType | The name of the specific driver to create the raster. |
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.
bin | The input band. |
value | The 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).
rin | The input raster. |
value | The 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.
rinfo | The map of raster informations. |
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::GetDataTypeRanges | ( | const int & | dataType, |
double & | min, | ||
double & | max | ||
) |
Return the values range of a given data type.
dataType | The given data type. |
min | The mininmum value allowed for the given data type. |
min | The maximum value allowed for the given data type. |
Definition at line 334 of file Utils.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, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::R1BIT_TYPE, te::dt::R2BITS_TYPE, te::dt::R4BITS_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, and te::dt::UINT32_TYPE.
Referenced by te::rp::Blender::blendIntoRaster1Thread(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::rp::GetDataTypeRange(), te::rp::RasterAttributes::getGLCM(), te::qt::widgets::ColorTransformWizardPage::getRasterBands(), te::rp::InverseWaveletAtrous(), te::rp::RemapValues(), and te::rp::RemapValuesThread().
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.
rinfo | The map of raster informations. |
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 | ) |
Returns the byte size of a given datatype.
Definition at line 80 of file Utils.cpp.
References sg_pixelSize.
Referenced by te::mem::Band::Band(), te::mem::Raster::create(), te::mem::ExpansibleRaster::ExpansibleRaster(), te::rst::Band::getBlockSize(), te::idl::IdlBand::read(), and te::idl::IdlBand::write().
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.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
Exception | This function might through an exception if the coordinate conversion fails. |
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.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
ury | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
Exception | This function might through an exception if the coordinate conversion fails. |
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.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
ury | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
resx | The output x resolution (in units of the target SRS). |
resx | The output y resolution (in units of the target SRS). |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
Exception | This function might through an exception if the coordinate conversion fails. |
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().
int te::rst::Round | ( | double | val | ) |
Round a double value to a integer value.
val | The double value. |
Definition at line 298 of file Utils.cpp.
Referenced by te::mem::Band::Band(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::map::GetExtentRaster(), te::qt::widgets::Info::getRasterInfo(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), and te::rst::Interpolator::nearestNeighborGetValue().
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.
gb | The get buffer of real values function. |
gbi | The get buffer of imaginary values function. |
sb | The set buffer of real values function. |
sbi | The set buffer of imaginary values function. |
type | The 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().