26 #ifndef __TERRALIB_ST_INTERNAL_RASTERCOVERAGE_H
27 #define __TERRALIB_ST_INTERNAL_RASTERCOVERAGE_H
30 #include "../../../raster/Raster.h"
31 #include "../../../datatype/DateTime.h"
34 #include "../../Config.h"
153 std::unique_ptr<te::rst::Raster>
getRaster(
unsigned int p)
const;
This file contains an abstract class to represent a coverage.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A point with x and y coordinate values.
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
An abstract class for raster data strucutures.
An abstract class to represent a coverage.
A concrete class to represent a raster coverage.
const std::vector< std::string > & getPropertyNames() const
It returns the names of the coverage properties.
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::gm::Geometry > m_sextent
te::rst::RasterPtr m_raster
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 set(te::rst::Raster *r, te::dt::DateTime *t)
It sets the raster and its associated datetime.
std::unique_ptr< te::rst::Raster > getRaster() const
It returns a raster associated to the coverage.
virtual ~RasterCoverage()
Virtual destructor.
std::unique_ptr< te::rst::Raster > getRaster(unsigned int p) const
It returns a raster associated to the coverage of the i-th property.
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.
te::rst::Raster * getRaster()
It returns the raster.
unsigned int getNumberOfProperties() const
It returns the number of properties associated to the coverage.
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 pol...
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.
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.
std::vector< std::string > m_pnames
The types of the raster 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.
RasterCoverage()
A constructor.
te::dt::DateTime * getTime() const
It returns the time associated to the coverage.
te::dt::DateTimeShrPtr m_time
void getDouble(const te::gm::Point &l, std::vector< double > &result) const
It returns the values as doubles associated to a given location.
Coverage * clone() const
It returns a clone of this coverage.
std::vector< int > m_ptypes
te::dt::DateTime * getTime()
It returns the time.
void getInt(const te::gm::Point &l, std::vector< int > &result) const
It returns the values as integers associated to a given location.
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.
RasterCoverage(te::rst::Raster *r, te::dt::DateTime *t)
A constructor.
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 poly...
CoverageType getType() const
It returns the coverage type.
te::gm::Geometry * getSpatialExtent() const
It returns the spatial extent of a coverage.
const std::vector< int > & getPropertyTypes() const
It returns the types of the coverage properties.
boost::shared_ptr< DateTime > DateTimeShrPtr
boost::shared_ptr< Raster > RasterPtr
CoverageType
An enum for the types of coverage.
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.