Go to the documentation of this file.
26 #ifndef __TERRALIB_GDAL_INTERNAL_RASTER_H
27 #define __TERRALIB_GDAL_INTERNAL_RASTER_H
30 #include "../raster/Raster.h"
39 #include <gdal_priv.h>
103 std::map<std::string, std::string>
getInfo()
const;
131 te::rst::Raster*
transform(
int srid,
double llx,
double lly,
double urx,
double ury,
double resx,
double resy,
const std::map<std::string, std::string>& rinfo,
int m = 0)
const;
139 const std::vector<te::rst::BandProperty*> bands,
140 const std::map<std::string, std::string>& rinfo,
141 void* h,
void (*deleter)(
void*));
160 Raster(
const unsigned int multiResolutionLevel,
const std::string& uRI,
167 void (*m_deleter)(
void*);
174 #endif // __TERRALIB_GDAL_INTERNAL_RASTER_H
std::unique_ptr< ScopedDataSetHandle > ScopedDataSetHandlePtr
A raster band description.
Raster(const unsigned int multiResolutionLevel, const std::string &uRI, const te::common::AccessPolicy &policy)
Constructor.
An abstract class for raster data strucutures.
std::unique_ptr< DataSetUseCounter > m_dsUseCounterPtr
Dataset use counter pointer.
Raster(te::rst::Grid *grid, const std::vector< te::rst::BandProperty * > &bprops, const std::map< std::string, std::string > &optParams, te::common::AccessPolicy p=te::common::RAccess)
Constructor.
std::string m_myURI
This instance URI;.
Raster(const std::string &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Constructor.
unsigned int getMultiResLevelsCount() const
Returns the current number of multi-resolution pyramid levels.
Band implementation for TerraLib 4.x.
const te::rst::Band * getBand(std::size_t i) const
Returns the raster i-th band.
virtual Raster * transform(int srid, const std::map< std::string, std::string > &rinfo, int m=1) const
Reprojects this raster to a distinct SRS. This method reprojects this raster to a distinct SRS....
~Raster()
Virtual destructor.
int getBandDataType(std::size_t i) const
Returns the data type in a particular band (or dimension).
bool removeMultiResolution()
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
A rectified grid is the spatial support for raster data.
#define TEGDALEXPORT
You can use this macro in order to export/import classes and functions from this module.
InterpolationMethod
Allowed interpolation methods.
te::rst::Band & operator[](std::size_t i)
Access band in i position.
bool createMultiResolution(const unsigned int levels, const te::rst::InterpolationMethod interpMethod)
Create a sub-sampled multi-resolution pyramid.
te::rst::Raster * resample(int method, int scale, const std::map< std::string, std::string > &rinfo) const
Resample raster.
Raster(const Raster &rhs)
Constructor.
GDALDataset * getGDALDataset() const
Returns the raster GDAL handler.
ScopedDataSetHandlePtr m_gdatasetHandle
Gdal data set handler.
void create(te::rst::Grid *g, const std::vector< te::rst::BandProperty * > bands, const std::map< std::string, std::string > &rinfo, void *h, void(*deleter)(void *))
This class represents Raster data.
void transform(te::rst::Raster *outRaster)
te::rst::Raster * transform(int srid, double llx, double lly, double urx, double ury, double resx, double resy, const std::map< std::string, std::string > &rinfo, int m=0) const
A base class for values that can be retrieved from the data access module.
std::map< std::string, std::string > getInfo() const
It returns additional information about the raster.
te::rst::Band * getBand(std::size_t i)
Returns the raster i-th band.
Raster & operator=(const Raster &rhs)
const te::rst::Band & operator[](std::size_t i) const
Access band in i position.
std::vector< Band * > m_bands
The vector of available bands in the raster.
std::size_t getNumberOfBands() const
Returns the number of bands (dimension of cells attribute values) in the raster.
Proxy configuration file for TerraView (see terraview_config.h).
void open(const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)
Opens a raster.
te::dt::AbstractData * clone() const
It returns a clone of this object.
AccessPolicy
Supported data access policies (can be used as bitfield).
te::rst::Raster * getMultiResLevel(const unsigned int level) const
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists.