#include <Raster.h>
  
Public Member Functions | |
| Raster & | callOperator (std::complex< double >(*f)(std::complex< double >, std::complex< double >), const Raster &rhs) | 
| It calls a parameter function f to apply in all pixels from two rasters, e.g. pixel = f(lhs, rhs);.   | |
| virtual Raster * | clip (const std::vector< te::gm::Geometry const * > geometries, const std::map< std::string, std::string > &rinfo, const std::string &rType) const | 
| Subsetting operation for clipping the raster.   | |
| te::dt::AbstractData * | clone () const | 
| It returns a clone of this object.   | |
| bool | createMultiResolution (const unsigned int, const te::rst::InterpolationMethod) | 
| Create a sub-sampled multi-resolution pyramid.   | |
| te::common::AccessPolicy | getAccessPolicy () const | 
| Returns the raster access policy.   | |
| te::rst::Band * | getBand (std::size_t i) | 
| Returns the raster i-th band.   | |
| const te::rst::Band * | getBand (std::size_t i) const | 
| Returns the raster i-th band.   | |
| int | getBandDataType (std::size_t i) const | 
| Returns the data type in a particular band (or dimension).   | |
| te::gm::Envelope * | getExtent () | 
| Returns the geographic extension of the raster data.   | |
| const te::gm::Envelope * | getExtent () const | 
| Returns the geographic extension of the raster data.   | |
| te::gm::Envelope * | getExtent (int srid, te::gm::Envelope *roi=0) const | 
| Returns the geographic extension of the raster data, in a given SRS (distinct from its original one).   | |
| Grid * | getGrid () | 
| It returns the raster grid.   | |
| const Grid * | getGrid () const | 
| It returns the raster grid.   | |
| std::map< std::string, std::string > | getInfo () const | 
| It returns additional information about the raster.   | |
| virtual void | getIValue (unsigned int c, unsigned int r, double &value, std::size_t b=0) const | 
| Returns the imaginary attribute value in a complex band of a cell.   | |
| const std::map< std::string, std::string > & | getMetaData () const | 
| Returns the current raster metadata in a form [metadada name, metadata value].   | |
| te::rst::Raster * | getMultiResLevel (const unsigned int) const | 
| Returns the required level of a multi-resolution pyramid or NULL if that level does not exists.   | |
| unsigned int | getMultiResLevelsCount () const | 
| Returns the current number of multi-resolution pyramid levels.   | |
| const std::string & | getName () const | 
| Returns the raster name.   | |
| std::size_t | getNumberOfBands () const | 
| Returns the number of bands (dimension of cells attribute values) in the raster.   | |
| unsigned int | getNumberOfColumns () const | 
| Returns the raster number of columns.   | |
| unsigned int | getNumberOfRows () const | 
| Returns the raster number of rows.   | |
| Grid * | getResampledGrid (int scale) const | 
| Return the raster grid for a specific scale.   | |
| double | getResolutionX () const | 
| Returns the raster horizontal (x-axis) resolution.   | |
| double | getResolutionY () const | 
| Returns the raster vertical (y-axis) resolution.   | |
| int | getSRID () const | 
| Returns the raster spatial reference system identifier.   | |
| int | getTypeCode () const | 
| It returns the data type code associated to the data value.   | |
| virtual void | getValue (unsigned int c, unsigned int r, double &value, std::size_t b=0) const | 
| Returns the attribute value of a band of a cell.   | |
| virtual void | getValue (unsigned int c, unsigned int r, std::complex< double > &value, std::size_t b=0) const | 
| Returns the imaginary attribute value in a complex band of a cell.   | |
| virtual void | getValues (unsigned int c, unsigned int r, std::vector< double > &values) const | 
| Returns the imaginary attribute values in all complex bands of a cell.   | |
| virtual void | getValues (unsigned int c, unsigned int r, std::vector< std::complex< double > > &values) const | 
| Returns the imaginary attribute values in all complex bands of a cell.   | |
| void | open (const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess) | 
| Opens a raster.   | |
| virtual Raster & | operator*= (Raster &rhs) | 
| It returns the raster product (pixel by pixel).   | |
| virtual Raster & | operator*= (std::complex< double > &cvalue) | 
| It returns the product of a constant value to all pixels in the raster.   | |
| virtual Raster & | operator+= (Raster &rhs) | 
| It returns the raster sum (pixel by pixel).   | |
| virtual Raster & | operator+= (std::complex< double > &cvalue) | 
| It returns the sum of a constant value to all pixels in the raster.   | |
| virtual Raster & | operator-= (Raster &rhs) | 
| It returns the raster subtraction (pixel by pixel).   | |
| virtual Raster & | operator-= (std::complex< double > &cvalue) | 
| It returns the difference from all pixels in the raster to a constant value (pixels - constant).   | |
| virtual Raster & | operator/= (Raster &rhs) | 
| It returns the raster division (pixel by pixel).   | |
| virtual Raster & | operator/= (std::complex< double > &cvalue) | 
| It returns the division of all pixels in the raster by a constant value (pixels / constant).   | |
| te::rst::Band & | operator[] (std::size_t i) | 
| Access band in i position.   | |
| const te::rst::Band & | operator[] (std::size_t i) const | 
| Access band in i position.   | |
| Raster (te::rst::Grid *grid, te::common::AccessPolicy p=te::common::RAccess) | |
| Raster (TeRaster *iraster) | |
| virtual void | rasterize (std::vector< te::gm::Geometry * > g, std::vector< double > vp, std::size_t b=0) | 
| Rasterizes a given vector of geometries.   | |
| bool | removeMultiResolution () | 
| Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.   | |
| virtual Raster * | resample (int method, int scale, const std::map< std::string, std::string > &rinfo) const | 
| Resample raster.   | |
| virtual Raster * | resample (int method, unsigned int drow, unsigned int dcolumn, unsigned int height, unsigned int width, unsigned int newheight, unsigned int newwidth, const std::map< std::string, std::string > &rinfo) const | 
| Resample a subset of the raster, given a box.   | |
| void | setAccessPolicy (te::common::AccessPolicy p) | 
| Sets the raster access policy.   | |
| virtual void | setIValue (unsigned int c, unsigned int r, const double value, std::size_t b=0) | 
| Sets the imaginary attribute value in a complex band of a cell.   | |
| void | setMetaData (const std::map< std::string, std::string > &metaData) | 
| Sets the raster metadata.   | |
| void | setName (const std::string name) | 
| Sets the raster name.   | |
| virtual void | setValue (unsigned int c, unsigned int r, const double value, std::size_t b=0) | 
| Sets the attribute value in a band of a cell.   | |
| virtual void | setValue (unsigned int c, unsigned int r, const std::complex< double > &value, std::size_t b=0) | 
| Sets the imaginary attribute value in a complex band of a cell.   | |
| virtual void | setValues (unsigned int c, unsigned int r, const std::vector< double > &values) | 
| Sets the imaginary attribute values in all complex bands of a cell.   | |
| virtual void | setValues (unsigned int c, unsigned int r, const std::vector< std::complex< double > > &values) | 
| Sets the imaginary attribute values in all complex bands of a cell.   | |
| std::string | toString (void) const | 
| It returns the data value in a string notation.   | |
| 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. The output resolution is calculated in order to maintain the same number of pixels as in this raster.   | |
| virtual Raster * | transform (int srid, double llx, double lly, double urx, double ury, const std::map< std::string, std::string > &rinfo, int m=1) const | 
| Reprojects a squared portion of this raster to a distinct SRS. This method reprojects a squared portion of this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in the desired portion of this raster.   | |
| virtual 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=1) const | 
| Reprojects a squared portion of this raster to another SRS with a desired resolution.   | |
| virtual Raster * | trim (const te::gm::Envelope *env, const std::map< std::string, std::string > &rinfo) const | 
| Subsetting operation for trimming (cropping) the raster.   | |
| virtual Raster * | trim (const te::gm::Envelope *env, const std::map< std::string, std::string > &rinfo, const std::string &rType) const | 
| Subsetting operation for trimming (cropping) the raster.   | |
| virtual void | vectorize (std::vector< te::gm::Geometry * > &g, std::size_t b, unsigned int mp=0, std::vector< double > *const polygonsValues=0) | 
| Vectorizes a given raster band, using GDALPolygonize function.   | |
| ~Raster () | |
| Virtual destructor.   | |
Protected Member Functions | |
| double | applyScale (int i, const double &v) const | 
| Scales a value according to a specific resampling scale.   | |
Protected Attributes | |
| Grid * | m_grid | 
| The spatial support for raster data.   | |
| std::map< std::string, std::string > | m_metaData | 
| Raster metadata in a form [metadada name, metadata value].  | |
| std::string | m_name | 
| The raster name.   | |
| te::common::AccessPolicy | m_policy | 
| The access policy, can be te::common::{NoAccess, RAccess, RWAccess, WAccess}.   | |
Private Attributes | |
| Impl * | m_pImpl | 
| terralib4::Raster::Raster | ( | TeRaster * | iraster | ) | 
| terralib4::Raster::Raster | ( | te::rst::Grid * | grid, | 
| te::common::AccessPolicy | p = te::common::RAccess  | 
        ||
| ) | 
      
  | 
  virtual | 
Virtual destructor.
Reimplemented from te::rst::Raster.
      
  | 
  protectedinherited | 
Scales a value according to a specific resampling scale.
| i | The scale to apply. | 
| v | The value to be scaled. | 
      
  | 
  inherited | 
It calls a parameter function f to apply in all pixels from two rasters, e.g. pixel = f(lhs, rhs);.
| (*f) | a function with the signature complex<double>(*f)(complex<double>, complex<double>), const Raster& rhs) | 
| rhs | The rhs raster to apply the function. | 
      
  | 
  virtualinherited | 
Subsetting operation for clipping the raster.
| geometries | A vector of pointers to valid geometries. | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
| rType | The name of the specific driver to create the raster. | 
      
  | 
  virtual | 
      
  | 
  inlinevirtual | 
Create a sub-sampled multi-resolution pyramid.
| levels | The number of pyramid levels to generate. | 
| interpMethod | The used interpolation method. | 
Implements te::rst::Raster.
      
  | 
  inherited | 
Returns the raster access policy.
      
  | 
  virtual | 
Returns the raster i-th band.
| i | The band index. | 
Implements te::rst::Raster.
      
  | 
  virtual | 
Returns the raster i-th band.
| i | The band index. | 
Implements te::rst::Raster.
      
  | 
  virtual | 
Returns the data type in a particular band (or dimension).
| i | The desired band. | 
Implements te::rst::Raster.
      
  | 
  inherited | 
Returns the geographic extension of the raster data.
Referenced by te::rst::LineIterator< T >::LineIterator(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  inherited | 
Returns the geographic extension of the raster data.
      
  | 
  inherited | 
Returns the geographic extension of the raster data, in a given SRS (distinct from its original one).
| srid | The target SRS id. | 
| roi | Pointer to a region of interest. If NULL the original extenstion will be considered. | 
      
  | 
  inherited | 
It returns the raster grid.
Referenced by te::rst::PolygonIterator< T >::initialize(), te::rst::LineIterator< T >::LineIterator(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  inherited | 
It returns the raster grid.
      
  | 
  virtual | 
It returns additional information about the raster.
The return of thi smethod is driver dependent.
Implements te::rst::Raster.
      
  | 
  virtualinherited | 
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | The attribute value to be assigned. | 
| b | A particular band of the cell attribute. Default value 0. | 
| Exception | Subclasses may throw an exception if the data value can not be read. | 
      
  | 
  inherited | 
Returns the current raster metadata in a form [metadada name, metadata value].
      
  | 
  inlinevirtual | 
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists.
| level | Level of a multi-resolution pyramid. | 
Implements te::rst::Raster.
      
  | 
  inlinevirtual | 
Returns the current number of multi-resolution pyramid levels.
Implements te::rst::Raster.
      
  | 
  inherited | 
Returns the raster name.
      
  | 
  virtual | 
Returns the number of bands (dimension of cells attribute values) in the raster.
Implements te::rst::Raster.
      
  | 
  inherited | 
Returns the raster number of columns.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rst::BandIteratorWithMask< T >::BandIteratorWithMask(), and te::rst::PolygonIterator< T >::initialize().
      
  | 
  inherited | 
Returns the raster number of rows.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rst::BandIteratorWithMask< T >::BandIteratorWithMask(), and te::rst::PolygonIterator< T >::initialize().
      
  | 
  inherited | 
Return the raster grid for a specific scale.
| scale | The desired sacale of interpolation (use - to shrink or + to enlarge). | 
      
  | 
  inherited | 
Returns the raster horizontal (x-axis) resolution.
Referenced by te::rst::LineIterator< T >::LineIterator().
      
  | 
  inherited | 
Returns the raster vertical (y-axis) resolution.
Referenced by te::rst::LineIterator< T >::LineIterator().
      
  | 
  inherited | 
Returns the raster spatial reference system identifier.
Referenced by te::rst::PolygonIterator< T >::initialize(), te::rst::LineIterator< T >::LineIterator(), and te::rst::PointSetIterator< T >::PointSetIterator().
      
  | 
  inlinevirtualinherited | 
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
Definition at line 362 of file Raster.h.
References te::dt::RASTER_TYPE.
      
  | 
  virtualinherited | 
Returns the attribute value of a band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | To return the attribute value. | 
| b | A particular band of the cell attribute. | 
| Exception | Subclasses may throw an exception if the data value can not be read. | 
Referenced by te::rp::ca::RasterInputAdaptor< DataType >::getFeature(), and te::rp::ca::RasterInputOutputAdaptor< DataType >::getFeature().
      
  | 
  virtualinherited | 
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | The complex attribute value to be assigned (real, imaginary). | 
| b | A particular band of the cell attribute. Default value 0. | 
| Exception | Subclasses may throw an exception if the data value can not be read. | 
      
  | 
  virtualinherited | 
Returns the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| values | A vector of attribute values to be assigned (not complex values). | 
| Exception | Subclasses may throw an exception if the data value can not be read. | 
      
  | 
  virtualinherited | 
Returns the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| values | A vector of complex attribute values to be assigned (real, imaginary). | 
| Exception | Subclasses may throw an exception if the data value can not be read. | 
      
  | 
  virtual | 
Opens a raster.
| rinfo | The information needed by each driver to open the raster. | 
| p | Access Policy. | 
Implements te::rst::Raster.
It returns the raster product (pixel by pixel).
| rhs | The raster to be multiplied, right-hand side. | 
      
  | 
  virtualinherited | 
It returns the product of a constant value to all pixels in the raster.
| cvalue | The constant value to be multiplied. | 
It returns the raster sum (pixel by pixel).
| rhs | The raster to be added, right-hand side. | 
      
  | 
  virtualinherited | 
It returns the sum of a constant value to all pixels in the raster.
| cvalue | The constant value to be added. | 
It returns the raster subtraction (pixel by pixel).
| rhs | The raster to be subtracted, right-hand side. | 
      
  | 
  virtualinherited | 
It returns the difference from all pixels in the raster to a constant value (pixels - constant).
| cvalue | The constant value to be subtracted. | 
It returns the raster division (pixel by pixel).
| rhs | The raster to be divided, right-hand side. | 
      
  | 
  virtualinherited | 
It returns the division of all pixels in the raster by a constant value (pixels / constant).
| cvalue | The constant value to be divided. | 
      
  | 
  virtual | 
Access band in i position.
| i | The band index. | 
Implements te::rst::Raster.
      
  | 
  virtual | 
Access band in i position.
| i | The band index. | 
Implements te::rst::Raster.
      
  | 
  virtualinherited | 
Rasterizes a given vector of geometries.
| g | A vector of geometries to be rasterized. | 
| vp | A vector of pixel values for each geometry. Can have the same size of the vector of geometries, or be null. | 
| b | The band index to rasterize. | 
      
  | 
  inlinevirtual | 
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
Implements te::rst::Raster.
      
  | 
  virtualinherited | 
Resample raster.
| method | The method of interpolation. | 
| scale | The scale of interpolation (use - to shrink or + to enlarge). | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
Reimplemented in te::gdal::Raster.
      
  | 
  virtualinherited | 
Resample 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. | 
| newheight | The resampled height of the new raster. | 
| newwidth | The resampled width of the new raster. | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
      
  | 
  inherited | 
Sets the raster access policy.
| p | The new raster access policy. | 
      
  | 
  virtualinherited | 
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | The attribute value to be assigned. | 
| b | A particular band of the cell attribute. Default value 0. | 
| Exception | Subclasses may throw an exception if the data value can not be write. | 
      
  | 
  inherited | 
Sets the raster metadata.
| metaData | The new raster metadata. | 
      
  | 
  inherited | 
Sets the raster name.
| name | The new raster name. | 
      
  | 
  virtualinherited | 
Sets the attribute value in a band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | The attribute value to be assigned. | 
| b | A particular band of the cell attribute. | 
| Exception | Subclasses may throw an exception if the data value can not be write. | 
Referenced by te::rp::ca::RasterOutputAdaptor< DataType >::setFeature(), and te::rp::ca::RasterInputOutputAdaptor< DataType >::setFeature().
      
  | 
  virtualinherited | 
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| value | The complex attribute value to be assigned (real, imaginary). | 
| b | A particular band of the cell attribute. Default value 0. | 
| Exception | Subclasses may throw an exception if the data value can not be write. | 
      
  | 
  virtualinherited | 
Sets the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| values | A vector of attribute values to be assigned (not complex values). | 
| Exception | Subclasses may throw an exception if the data value can not be write. | 
      
  | 
  virtualinherited | 
Sets the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. | 
| r | The row location of the cell. | 
| values | A vector of complex attribute values to be assigned (real, imaginary). | 
| Exception | Subclasses may throw an exception if the data value can not be write. | 
      
  | 
  virtualinherited | 
It returns the data value in a string notation.
Implements te::dt::AbstractData.
      
  | 
  virtualinherited | 
Reprojects this raster to a distinct SRS. This method reprojects this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in this raster.
| srid | The target SRS identifier. | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
| m | The method of interpolation to apply (default 1 = nearest neighbor). | 
      
  | 
  virtualinherited | 
Reprojects a squared portion of this raster to a distinct SRS. This method reprojects a squared portion of this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in the desired portion of this raster.
| srid | The target SRS identifier. | 
| 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). | 
| url | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
| m | The method of interpolation to apply (default 1 = nearest neighbor). | 
      
  | 
  virtualinherited | 
Reprojects a squared portion of this raster to another SRS with a desired resolution.
This method reprojects a squared portion of this raster to another SRS. The number of pixels in the output will be calculated according to the portion being reprojected and the asked resolution.
| srid | The SRS id of the target SRS. | 
| 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). | 
| url | 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). | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
| m | The method of interpolation to apply (default 1 = nearest neighbor). | 
Reimplemented in te::gdal::Raster.
      
  | 
  virtualinherited | 
Subsetting operation for trimming (cropping) the raster.
| env | The envelope (inside original extent) to crop the raster. | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
      
  | 
  virtualinherited | 
Subsetting operation for trimming (cropping) the raster.
| env | The envelope (inside original extent) to crop the raster. | 
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). | 
| rType | The name of the specific driver to create the raster.  | 
      
  | 
  virtualinherited | 
Vectorizes a given raster band, using GDALPolygonize function.
| g | A reference to a vector of geometries. Will be filled with geometries found in band. | 
| b | The band index to vectorize. | 
| polygonsValues | A pointer to a valid vector where the raster pixel values related to each polygon will be stored, or a NULL pointer. | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
The access policy, can be te::common::{NoAccess, RAccess, RWAccess, WAccess}.