|
| PointCoverage () |
| A constructor.
|
|
| PointCoverage (AbstractPointCoverageInterp *interp, te::gm::Geometry *sextent, te::dt::DateTime *textent, int np, const std::vector< int > &ptypes, const std::vector< std::string > &pnames) |
| A constructor.
|
|
| PointCoverage (AbstractPointCoverageInterp *interp, te::gm::Geometry *sextent, te::dt::DateTime *textent, int np, const std::vector< int > &ptypes, const std::vector< std::string > &pnames, int tp) |
| A constructor.
|
|
|
An example of use:
PointCoverageIterator it = cv.begin(); while(it!=cv.end()) { Point& l = it.getLocation(); double v = it.getDouble(i); //or getValue() or getInt()...
++it; }
|
PointCoverageIterator | begin () const |
| It returns an iterator that points to the first observation of the point coverage.
|
|
PointCoverageIterator | end () const |
| It returns an iterator that points to the end of the time series.
|
|
void | add (const te::gm::Point &l, te::dt::AbstractData *value) |
| It adds an observtion to the PointCoverage.
|
|
void | add (const te::gm::Point &l, boost::ptr_vector< te::dt::AbstractData > &value) |
| It adds an observtion to the PointCoverage.
|
|
void | add (PointCoverageObservation &obs) |
| It adds an observtion to the PointCoverage.
|
|
|
std::unique_ptr< te::gm::Geometry > | m_sextent |
|
std::unique_ptr< te::dt::DateTime > | m_textent |
|
PointCoverageObservationSet | m_observations |
|
AbstractPointCoverageInterp * | m_interpolator |
|
PointCvRTreeShrPtr | m_rTree |
|
unsigned int | m_np |
|
std::vector< int > | m_ptypes |
| The number of properties of the point coverage.
|
|
std::vector< std::string > | m_pnames |
| The types of the point coverage properties.
|
|
int | m_tp |
| The names of the point coverage properties.
|
|
Coverage * | clone () const |
| It returns a clone of this coverage.
|
|
CoverageType | getType () const |
| It returns the coverage type.
|
|
te::gm::Geometry * | getSpatialExtent () const |
| It returns the spatial extent of a coverage.
|
|
te::dt::DateTime * | getTime () const |
| It returns the time associated to the coverage.
|
|
unsigned int | getNumberOfProperties () const |
| It returns the number of properties associated to the coverage.
|
|
const std::vector< int > & | getPropertyTypes () const |
| It returns the types of the coverage properties.
|
|
const std::vector< std::string > & | getPropertyNames () const |
| It returns the names of the coverage properties.
|
|
void | getValue (const te::gm::Point &l, boost::ptr_vector< te::dt::AbstractData > &result) const |
| It returns the values associated to a given location.
|
|
std::unique_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.
|
|
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.
|
|
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.
|
|
void | getInt (const te::gm::Point &l, std::vector< int > &result) const |
| It returns the values as integers associated to a given location.
|
|
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.
|
|
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.
|
|
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.
|
|
void | getDouble (const te::gm::Point &l, std::vector< double > &result) const |
| It returns the values as doubles associated to a given location.
|
|
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.
|
|
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.
|
|
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.
|
|
std::unique_ptr< te::rst::Raster > | getRaster () const |
| It returns a raster associated to the coverage.
|
|
std::unique_ptr< te::rst::Raster > | getRaster (unsigned int p) const |
| It returns a raster associated to the coverage of the i-th property.
|
|
virtual | ~PointCoverage () |
| Virtual destructor.
|
|
A concrete class to represent a point coverage.
A point coverage is a coverage composed of a set of observations where each one contains a location (point) and a set properties associated to it.
- See also
- Coverage Point Property
Definition at line 70 of file PointCoverage.h.
void te::st::PointCoverage::getDouble |
( |
const te::gm::Polygon & |
l, |
|
|
std::vector< double > & |
result |
|
) |
| const |
|
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.
- Parameters
-
l | The given polygon |
result | The returned values associated the locations inside a given polygon |
Implements te::st::Coverage.
void te::st::PointCoverage::getInt |
( |
const te::gm::Polygon & |
l, |
|
|
std::vector< int > & |
result |
|
) |
| const |
|
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.
- Parameters
-
l | The given polygon |
result | The returned values associated the locations inside a given polygon. |
Implements te::st::Coverage.
std::unique_ptr< te::rst::Raster > te::st::PointCoverage::getRaster |
( |
| ) |
const |
|
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.
- Returns
- Returns a raster associated to the coverage.
- Note
- The caller will take the ownership of the returned raster.
Implements te::st::Coverage.
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.
- Parameters
-
l | The given polygon |
result | The returned values associated the locations inside a given polygon |
- Note
- The caller will take the ownership of the returned value.
Implements te::st::Coverage.