An abstract class to represent a coverage. More...
#include <Coverage.h>
Public Member Functions | |
virtual Coverage * | clone () const =0 |
It returns a clone of this coverage. More... | |
Coverage () | |
A constructor. More... | |
virtual void | getDouble (const te::gm::Point &l, std::vector< double > &result) const =0 |
It returns the values as doubles associated to a given location. More... | |
virtual double | getDouble (const te::gm::Point &l, unsigned int p=0) const =0 |
It returns the value as double of the p-th property associated to a given location. More... | |
virtual void | getDouble (const te::gm::Polygon &l, unsigned int p, std::vector< double > &result) const =0 |
It returns the values as doubles of the p-th property associated to the locations inside a given polygon. More... | |
virtual void | getDouble (const te::gm::Polygon &l, std::vector< double > &result) const =0 |
It returns values as doubles associated to the locations inside a given polygon. More... | |
virtual void | getInt (const te::gm::Point &l, std::vector< int > &result) const =0 |
It returns the values as integers associated to a given location. More... | |
virtual int | getInt (const te::gm::Point &l, unsigned int p=0) const =0 |
It returns the value as integer of the p-th property associated to a given location. More... | |
virtual void | getInt (const te::gm::Polygon &l, unsigned int p, std::vector< int > &result) const =0 |
It returns the values as integers of the p-th property associated to the locations inside a given polygon. More... | |
virtual void | getInt (const te::gm::Polygon &l, std::vector< int > &result) const =0 |
It returns values as integers associated to the locations inside a given polygon. More... | |
virtual unsigned int | getNumberOfProperties () const =0 |
It returns the number of properties associated to the coverage. More... | |
virtual const std::vector< std::string > & | getPropertyNames () const =0 |
It returns the names of the coverage properties. More... | |
virtual const std::vector< int > & | getPropertyTypes () const =0 |
It returns the types of the coverage properties. More... | |
virtual std::auto_ptr< te::rst::Raster > | getRaster () const =0 |
It returns a raster associated to the coverage. More... | |
virtual std::auto_ptr< te::rst::Raster > | getRaster (unsigned int p) const =0 |
It returns a raster associated to the coverage of the i-th property. More... | |
virtual te::gm::Geometry * | getSpatialExtent () const =0 |
It returns the spatial extent of a coverage. More... | |
virtual te::dt::DateTime * | getTime () const =0 |
It returns the time associated to the coverage. More... | |
virtual CoverageType | getType () const =0 |
It returns the coverage type. More... | |
virtual void | getValue (const te::gm::Point &l, boost::ptr_vector< te::dt::AbstractData > &result) const =0 |
It returns the values associated to a given location. More... | |
virtual std::auto_ptr< te::dt::AbstractData > | getValue (const te::gm::Point &l, unsigned int p=0) const =0 |
It returns the value of the p-th property associated to a given location. More... | |
virtual void | getValue (const te::gm::Polygon &l, unsigned int p, boost::ptr_vector< te::dt::AbstractData > &result) const =0 |
It returns the values of the p-th property associated to the locations inside a given polygon. More... | |
virtual void | getValue (const te::gm::Polygon &l, boost::ptr_vector< te::dt::AbstractData > &result) const =0 |
It returns values associated to the locations inside a given polygon. More... | |
virtual | ~Coverage () |
Virtual destructor. More... | |
An abstract class to represent a coverage.
A coverage represents the variation of the values of a property within a spatial extent at a specific time.
Definition at line 63 of file Coverage.h.
te::st::Coverage::Coverage | ( | ) |
A constructor.
|
virtual |
Virtual destructor.
|
pure virtual |
It returns a clone of this coverage.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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. |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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. |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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. |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure virtual |
It returns the names of the coverage properties.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure virtual |
It returns the types of the coverage properties.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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. |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure virtual |
It returns the spatial extent of a coverage.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure virtual |
It returns the time associated to the coverage.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure virtual |
It returns the coverage type.
For while, there are two kinds of Coverages: Point Coverage and Raster Coverage.
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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. |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.
|
pure 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 |
Implemented in te::st::PointCoverage, and te::st::RasterCoverage.