A concrete class to represent a raster coverage. More...
#include <RasterCoverage.h>
Public Member Functions | |
te::rst::Raster * | getRaster () |
It returns the raster. More... | |
te::dt::DateTime * | getTime () |
It returns the time. More... | |
RasterCoverage () | |
A constructor. More... | |
RasterCoverage (te::rst::Raster *r, te::dt::DateTime *t) | |
A constructor. More... | |
void | set (te::rst::Raster *r, te::dt::DateTime *t) |
It sets the raster and its associated datetime. More... | |
virtual | ~RasterCoverage () |
Virtual destructor. More... | |
Coverage inherited methods | |
Coverage * | clone () const |
It returns a clone of this coverage. More... | |
CoverageType | getType () const |
It returns the coverage type. More... | |
te::gm::Geometry * | getSpatialExtent () const |
It returns the spatial extent of a coverage. More... | |
te::dt::DateTime * | getTime () const |
It returns the time associated to the coverage. More... | |
unsigned int | getNumberOfProperties () const |
It returns the number of properties associated to the coverage. More... | |
const std::vector< int > & | getPropertyTypes () const |
It returns the types of the coverage properties. More... | |
const std::vector< std::string > & | getPropertyNames () const |
It returns the names of the coverage properties. More... | |
void | getValue (const te::gm::Point &l, boost::ptr_vector< te::dt::AbstractData > &result) const |
It returns the values associated to a given location. More... | |
std::auto_ptr< te::dt::AbstractData > | getValue (const te::gm::Point &l, unsigned int p=0) const |
It returns the value of the p-th property associated to a given location. More... | |
void | getValue (const te::gm::Polygon &l, unsigned int p, boost::ptr_vector< te::dt::AbstractData > &result) const |
It returns the values of the p-th property associated to the locations inside a given polygon. More... | |
void | getValue (const te::gm::Polygon &l, boost::ptr_vector< te::dt::AbstractData > &result) const |
It returns values associated to the locations inside a given polygon. More... | |
void | getInt (const te::gm::Point &l, std::vector< int > &result) const |
It returns the values as integers associated to a given location. More... | |
int | getInt (const te::gm::Point &l, unsigned int p=0) const |
It returns the value as integer of the p-th property associated to a given location. More... | |
void | getInt (const te::gm::Polygon &l, unsigned int p, std::vector< int > &result) const |
It returns the values as integers of the p-th property associated to the locations inside a given polygon. More... | |
void | getInt (const te::gm::Polygon &l, std::vector< int > &result) const |
It returns values as integers associated to the locations inside a given polygon. More... | |
void | getDouble (const te::gm::Point &l, std::vector< double > &result) const |
It returns the values as doubles associated to a given location. More... | |
double | getDouble (const te::gm::Point &l, unsigned int p=0) const |
It returns the value as double of the p-th property associated to a given location. More... | |
void | getDouble (const te::gm::Polygon &l, unsigned int p, std::vector< double > &result) const |
It returns the values as doubles of the p-th property associated to the locations inside a given polygon. More... | |
void | getDouble (const te::gm::Polygon &l, std::vector< double > &result) const |
It returns values as doubles associated to the locations inside a given polygon. More... | |
std::auto_ptr< te::rst::Raster > | getRaster () const |
It returns a raster associated to the coverage. More... | |
std::auto_ptr< te::rst::Raster > | getRaster (unsigned int p) const |
It returns a raster associated to the coverage of the i-th property. More... | |
Protected Attributes | |
std::vector< std::string > | m_pnames |
The types of the raster coverage properties. More... | |
std::vector< int > | m_ptypes |
te::rst::RasterPtr | m_raster |
std::auto_ptr< te::gm::Geometry > | m_sextent |
te::dt::DateTimeShrPtr | m_time |
A concrete class to represent a raster coverage.
A raster coverage is a coverage composed of an observation that is represented by a raster.
Definition at line 57 of file RasterCoverage.h.
te::st::RasterCoverage::RasterCoverage | ( | ) |
A constructor.
It constructs an empty raster coverage.
te::st::RasterCoverage::RasterCoverage | ( | te::rst::Raster * | r, |
te::dt::DateTime * | t | ||
) |
A constructor.
It constructs a raster coverage.
r | A raster |
t | The spatial extent |
|
virtual |
Virtual destructor.
|
virtual |
It returns a clone of this coverage.
Implements te::st::Coverage.
|
virtual |
It returns the values as doubles associated to a given location.
This method returns the values of all properties of the coverage.
l | The given location |
result | The returned values associated to a given location |
Implements te::st::Coverage.
|
virtual |
It returns the value as double of the p-th property associated to a given location.
l | The given location |
p | The index of the property that will be considered. |
Implements te::st::Coverage.
|
virtual |
It returns the values as doubles of the p-th property associated to the locations inside a given polygon.
l | The given polygon |
p | The desired property |
result | The returned values of the p-th property associated to the locations inside a given polygon |
Implements te::st::Coverage.
|
virtual |
It returns values as doubles associated to the locations inside a given polygon.
This method returns the values of all properties of the coverage, ordered by locations.
An example, if the coverage has two properties: The first position of the result vector contains the first property value of first location. The second position of the result vector contains the second property value of the first location. The third position of the result vector contains the first property value of the second location. And so on.
l | The given polygon |
result | The returned values associated the locations inside a given polygon |
Implements te::st::Coverage.
|
virtual |
It returns the values as integers associated to a given location.
This method returns the values of all properties of the coverage.
l | The given location |
result | The returned values associated to a given location |
Implements te::st::Coverage.
|
virtual |
It returns the value as integer of the p-th property associated to a given location.
l | The given location |
p | The index of the property that will be considered. |
Implements te::st::Coverage.
|
virtual |
It returns the values as integers of the p-th property associated to the locations inside a given polygon.
l | The given polygon |
p | The desired property |
result | The returned values of the p-th property associated to the locations inside a given polygon |
Implements te::st::Coverage.
|
virtual |
It returns values as integers associated to the locations inside a given polygon.
This method returns the values of all properties of the coverage, ordered by locations.
An example, if the coverage has two properties: The first position of the result vector contains the first property value of first location. The second position of the result vector contains the second property value of the first location. The third position of the result vector contains the first property value of the second location. And so on.
l | The given polygon |
result | The returned values associated the locations inside a given polygon. |
Implements te::st::Coverage.
|
virtual |
It returns the number of properties associated to the coverage.
For raster coverage, the number of properties is equal to the number of bands. For point coverage, this means the number of properties associated to each point.
Implements te::st::Coverage.
|
virtual |
It returns the names of the coverage properties.
Implements te::st::Coverage.
|
virtual |
It returns the types of the coverage properties.
Implements te::st::Coverage.
te::rst::Raster* te::st::RasterCoverage::getRaster | ( | ) |
It returns the raster.
|
virtual |
It returns a raster associated to the coverage.
For point coverage, it considers the interpolation function to generate the raster.
The returned raster will contain all properties, each property will be a band. If the caller wants to consider only one property, it must use the other getRaster method when the caller pass a defined property.
Implements te::st::Coverage.
|
virtual |
It returns a raster associated to the coverage of the i-th property.
For point coverage, it considers the interpolation function to generate a raster.
The returned raster will have one band associated to the given property.
p | The property that will be considered to generate the raster. |
Implements te::st::Coverage.
|
virtual |
It returns the spatial extent of a coverage.
Implements te::st::Coverage.
te::dt::DateTime* te::st::RasterCoverage::getTime | ( | ) |
It returns the time.
|
virtual |
It returns the time associated to the coverage.
Implements te::st::Coverage.
|
virtual |
It returns the coverage type.
For while, there are two kinds of Coverages: Point Coverage and Raster Coverage.
Implements te::st::Coverage.
|
virtual |
It returns the values associated to a given location.
This method returns the values of all properties of the coverage.
l | The given location |
result | The returned values associated to a given location |
Implements te::st::Coverage.
|
virtual |
It returns the value of the p-th property associated to a given location.
l | The given location |
p | The index of the property that will be considered. |
Implements te::st::Coverage.
|
virtual |
It returns the values of the p-th property associated to the locations inside a given polygon.
l | The given polygon |
p | The desired property |
result | The returned values of the p-th property associated to the locations inside a given polygon |
Implements te::st::Coverage.
|
virtual |
It returns values associated to the locations inside a given polygon.
This method returns the values of all properties of the coverage, ordered by locations.
An example, if the coverage has two properties: The first position of the result vector contains the first property value of first location. The second position of the result vector contains the second property value of the first location. The third position of the result vector contains the first property value of the second location. And so on.
l | The given polygon |
result | The returned values associated the locations inside a given polygon |
Implements te::st::Coverage.
void te::st::RasterCoverage::set | ( | te::rst::Raster * | r, |
te::dt::DateTime * | t | ||
) |
It sets the raster and its associated datetime.
r | The given raster. |
t | The time associated to the given raster. |
|
protected |
The types of the raster coverage properties.
Definition at line 165 of file RasterCoverage.h.
|
protected |
Definition at line 164 of file RasterCoverage.h.
|
protected |
Definition at line 161 of file RasterCoverage.h.
|
protected |
Definition at line 163 of file RasterCoverage.h.
|
protected |
Definition at line 162 of file RasterCoverage.h.