A class to represent a coverage series. More...
#include <CoverageSeries.h>
Public Member Functions | |
void | add (te::dt::DateTime *time, te::st::Coverage *cv) |
It adds an observation (time and coverage) into the coverage series. More... | |
void | add (const CoverageSeriesObservation &o) |
It adds an observation (time and coverage) into the coverage series. More... | |
CoverageSeries () | |
A constructor. More... | |
CoverageSeries (const CoverageSeriesObservationSet &obs, AbstractCoverageSeriesInterp *interp, te::gm::Geometry *se, CoverageType t) | |
A constructor. More... | |
std::auto_ptr< te::st::Coverage > | getCoverage (te::dt::DateTime *t) const |
It returns the coverage associated to a given date and time. More... | |
const CoverageSeriesObservationSet & | getObservations () const |
It returns the coverage series observations. More... | |
te::gm::Geometry * | getSpatialExtent () const |
It returns the spatial extent of the coverage series. More... | |
std::auto_ptr< te::dt::DateTimePeriod > | getTemporalExtent () const |
It returns the temporal extent of the coverage series. More... | |
CoverageType | getType () const |
It returns the type of the internal coverages. More... | |
std::size_t | size () const |
It returns the size of the coverage series observations. More... | |
virtual | ~CoverageSeries () |
Virtual destructor. More... | |
CoverageSeries Iterator | |
An example of use: CoverageSeriesIterator it = cvs.begin(); while(it!=cvs.end()) { DateTime* t = it.getTime(); Coverage* c = it.getCoverage(); ++it; } | |
CoverageSeriesIterator | begin () const |
It returns an iterator that points to the first observation of the point coverage. More... | |
CoverageSeriesIterator | end () const |
It returns an iterator that points to the end of the time series. More... | |
CoverageSeriesIterator | at (te::dt::DateTime *t) const |
It returns an iterator that points to an observation at a given time. More... | |
Methods to return time series from the coverage series | |
std::auto_ptr< te::st::TimeSeries > | getTimeSeries (const te::gm::Point &l, unsigned int p=0) const |
It returns a time series of the p-th property associated to a given location. More... | |
void | getTimeSeries (const te::gm::Point &l, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series associated to a given location. More... | |
void | getTimeSeries (const te::gm::Polygon &l, unsigned int p, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series of the p-th property inside the given polygon. More... | |
void | getTimeSeries (const te::gm::Envelope &e, unsigned int p, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series of the p-th property inside the given envelope. More... | |
void | getTimeSeries (const te::gm::Polygon &l, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series inside the given polygon. More... | |
void | getTimeSeries (const te::gm::Envelope &e, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series inside the given envelope. More... | |
std::auto_ptr< te::st::TimeSeries > | getTimeSeries (const te::gm::Point &l, const te::dt::DateTime &t, te::dt::TemporalRelation tr=te::dt::DURING, unsigned int p=0) const |
It returns a time series of the p-th property associated to a given location and considering a given temporal restriction. More... | |
void | getTimeSeries (const te::gm::Point &l, const te::dt::DateTime &t, te::dt::TemporalRelation tr, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series associated to a given location and considering a given temporal restriction. More... | |
void | getTimeSeries (const te::gm::Polygon &l, unsigned int p, const te::dt::DateTime &t, te::dt::TemporalRelation tr, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series of the p-th property inside the given polygon and considering a given temporal restriction. More... | |
void | getTimeSeries (const te::gm::Envelope &e, unsigned int p, const te::dt::DateTime &t, te::dt::TemporalRelation tr, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series of the p-th property inside the given envelope and considering a given temporal restriction. More... | |
void | getTimeSeries (const te::gm::Polygon &l, const te::dt::DateTime &t, te::dt::TemporalRelation tr, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series inside the given polygon and considering a given temporal restriction. More... | |
void | getTimeSeries (const te::gm::Envelope &e, const te::dt::DateTime &t, te::dt::TemporalRelation tr, boost::ptr_vector< TimeSeries > &r) const |
It returns the time series inside the given envelope and considering a given temporal restriction. More... | |
Methods to return a subset or patch of a coverage series given a spatial and temporal restriction. | |
std::auto_ptr< CoverageSeries > | getPatch (const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING) const |
It returns a subset or patch of the coverage series considering a given temporal restriction. More... | |
std::auto_ptr< CoverageSeries > | getPatch (const te::gm::Envelope &e, te::gm::SpatialRelation sr=te::gm::INTERSECTS) const |
It returns a subset or patch of the coverage series considering a given spatial restriction. More... | |
std::auto_ptr< CoverageSeries > | getPatch (const te::gm::Geometry &e, te::gm::SpatialRelation sr=te::gm::INTERSECTS) const |
It returns a subset or patch of the coverage series considering a given spatial restriction. More... | |
std::auto_ptr< CoverageSeries > | getPatch (const te::gm::Envelope &e, te::gm::SpatialRelation sr, const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING) const |
It returns a subset or patch of the coverage series considering a given spatial and temporal restriction. More... | |
std::auto_ptr< CoverageSeries > | getPatch (const te::gm::Geometry &e, te::gm::SpatialRelation sr, const te::dt::DateTime &dt, te::dt::TemporalRelation tr=te::dt::DURING) const |
It returns a subset or patch of the coverage series considering a given spatial and temporal restriction. More... | |
Protected Attributes | |
CoverageType | m_cvtype |
AbstractCoverageSeriesInterp * | m_interpolator |
The coverage series observations. More... | |
CoverageSeriesObservationSet | m_observations |
std::auto_ptr< te::gm::Geometry > | m_sextent |
A class to represent a coverage series.
A coverage series is a sequence of coverages over time (T -> Coverage)
Definition at line 72 of file CoverageSeries.h.
te::st::CoverageSeries::CoverageSeries | ( | ) |
A constructor.
te::st::CoverageSeries::CoverageSeries | ( | const CoverageSeriesObservationSet & | obs, |
AbstractCoverageSeriesInterp * | interp, | ||
te::gm::Geometry * | se, | ||
CoverageType | t | ||
) |
A constructor.
obs | The coverage series observations |
interp | The interpolator associated to the coverage series. |
se | The coverage series spatial extent. |
t | The type of the coverages that are in the observation set. |
|
virtual |
Virtual destructor.
void te::st::CoverageSeries::add | ( | te::dt::DateTime * | time, |
te::st::Coverage * | cv | ||
) |
It adds an observation (time and coverage) into the coverage series.
time | A pointer to the time. |
cv | A coverage. |
void te::st::CoverageSeries::add | ( | const CoverageSeriesObservation & | o | ) |
It adds an observation (time and coverage) into the coverage series.
o | An observation |
CoverageSeriesIterator te::st::CoverageSeries::at | ( | te::dt::DateTime * | t | ) | const |
It returns an iterator that points to an observation at a given time.
If there is no observation at this given time, the returned iterator points to the end of the coverage series.
CoverageSeriesIterator te::st::CoverageSeries::begin | ( | ) | const |
It returns an iterator that points to the first observation of the point coverage.
CoverageSeriesIterator te::st::CoverageSeries::end | ( | ) | const |
It returns an iterator that points to the end of the time series.
std::auto_ptr<te::st::Coverage> te::st::CoverageSeries::getCoverage | ( | te::dt::DateTime * | t | ) | const |
It returns the coverage associated to a given date and time.
If there is no coverage associated to the given date and time, it will use internally its interpolation function.
t | A date and time. |
const CoverageSeriesObservationSet& te::st::CoverageSeries::getObservations | ( | ) | const |
It returns the coverage series observations.
std::auto_ptr<CoverageSeries> te::st::CoverageSeries::getPatch | ( | const te::dt::DateTime & | dt, |
te::dt::TemporalRelation | r = te::dt::DURING |
||
) | const |
It returns a subset or patch of the coverage series considering a given temporal restriction.
dt | A given time |
r | A given temporal restriction |
std::auto_ptr<CoverageSeries> te::st::CoverageSeries::getPatch | ( | const te::gm::Envelope & | e, |
te::gm::SpatialRelation | sr = te::gm::INTERSECTS |
||
) | const |
It returns a subset or patch of the coverage series considering a given spatial restriction.
e | A given envelope. |
sr | A given spatial restriction |
std::auto_ptr<CoverageSeries> te::st::CoverageSeries::getPatch | ( | const te::gm::Geometry & | e, |
te::gm::SpatialRelation | sr = te::gm::INTERSECTS |
||
) | const |
It returns a subset or patch of the coverage series considering a given spatial restriction.
e | A given geometry. |
sr | A given spatial restriction |
std::auto_ptr<CoverageSeries> te::st::CoverageSeries::getPatch | ( | const te::gm::Envelope & | e, |
te::gm::SpatialRelation | sr, | ||
const te::dt::DateTime & | dt, | ||
te::dt::TemporalRelation | r = te::dt::DURING |
||
) | const |
It returns a subset or patch of the coverage series considering a given spatial and temporal restriction.
e | A given envelope. |
sr | A given spatial restriction |
dt | A given date and time |
tr | A given temporal restriction |
std::auto_ptr<CoverageSeries> te::st::CoverageSeries::getPatch | ( | const te::gm::Geometry & | e, |
te::gm::SpatialRelation | sr, | ||
const te::dt::DateTime & | dt, | ||
te::dt::TemporalRelation | tr = te::dt::DURING |
||
) | const |
It returns a subset or patch of the coverage series considering a given spatial and temporal restriction.
e | A given geometry. |
sr | A given spatial restriction |
dt | A given date and time |
tr | A given temporal restriction |
te::gm::Geometry* te::st::CoverageSeries::getSpatialExtent | ( | ) | const |
It returns the spatial extent of the coverage series.
std::auto_ptr<te::dt::DateTimePeriod> te::st::CoverageSeries::getTemporalExtent | ( | ) | const |
It returns the temporal extent of the coverage series.
std::auto_ptr<te::st::TimeSeries> te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Point & | l, |
unsigned int | p = 0 |
||
) | const |
It returns a time series of the p-th property associated to a given location.
l | A given location. |
p | A given property or band |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Point & | l, |
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series associated to a given location.
It returns a set of time series, one for each property of the coverage.
l | A given location. |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Polygon & | l, |
unsigned int | p, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series of the p-th property inside the given polygon.
It returns a set of time series, one for each point inside the polygon
l | A given polygon. |
p | A given property. |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Envelope & | e, |
unsigned int | p, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series of the p-th property inside the given envelope.
It returns a set of time series, one for each point inside the envelope
l | A given envelope. |
p | A given property. |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Polygon & | l, |
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series inside the given polygon.
It returns a set of time series, one for each point inside the polygon and for each property of the coverage.
This method returns the time series of all properties of the coverages, ordered by locations.
An example, if the coverages have two properties: The first position of the result vector contains the a time series of the first property of first location. The second position of the result vector contains the a time series of the second property of the first location. The third position of the result vector contains the a time series of the first property of the second location. And so on.
l | A given polygon. |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Envelope & | e, |
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series inside the given envelope.
It returns a set of time series, one for each point inside the envelope and for each property of the coverage.
This method returns the time series of all properties of the coverages, ordered by locations.
An example, if the coverages have two properties: The first position of the result vector contains the a time series of the first property of first location. The second position of the result vector contains the a time series of the second property of the first location. The third position of the result vector contains the a time series of the first property of the second location. And so on.
e | A given envelope. |
r | The resulting time series |
std::auto_ptr<te::st::TimeSeries> te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Point & | l, |
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr = te::dt::DURING , |
||
unsigned int | p = 0 |
||
) | const |
It returns a time series of the p-th property associated to a given location and considering a given temporal restriction.
l | A given location. |
t | A given time |
tr | A given temporal restriction |
p | A given property or band |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Point & | l, |
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series associated to a given location and considering a given temporal restriction.
It returns a set of time series, one for each property of the coverage.
l | A given location. |
t | A given time |
tr | A given temporal restriction |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Polygon & | l, |
unsigned int | p, | ||
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series of the p-th property inside the given polygon and considering a given temporal restriction.
It returns a set of time series, one for each point inside the polygon
l | A given polygon. |
p | A given property. |
t | A given time |
tr | A given temporal restriction |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Envelope & | e, |
unsigned int | p, | ||
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series of the p-th property inside the given envelope and considering a given temporal restriction.
It returns a set of time series, one for each point inside the envelope
l | A given envelope. |
p | A given property. |
t | A given time |
tr | A given temporal restriction |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Polygon & | l, |
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series inside the given polygon and considering a given temporal restriction.
It returns a set of time series, one for each point inside the polygon and for each property of the coverage
l | A given polygon. |
t | A given time |
tr | A given temporal restriction |
r | The resulting time series |
void te::st::CoverageSeries::getTimeSeries | ( | const te::gm::Envelope & | e, |
const te::dt::DateTime & | t, | ||
te::dt::TemporalRelation | tr, | ||
boost::ptr_vector< TimeSeries > & | r | ||
) | const |
It returns the time series inside the given envelope and considering a given temporal restriction.
It returns a set of time series, one for each point inside the envelope and for each property of the coverage
e | A given envelope. |
t | A given time |
tr | A given temporal restriction |
r | The resulting time series |
CoverageType te::st::CoverageSeries::getType | ( | ) | const |
std::size_t te::st::CoverageSeries::size | ( | ) | const |
It returns the size of the coverage series observations.
|
protected |
Definition at line 479 of file CoverageSeries.h.
|
protected |
The coverage series observations.
The interpolator used to estimate non-observed times.
Definition at line 478 of file CoverageSeries.h.
|
protected |
Definition at line 477 of file CoverageSeries.h.
|
protected |
Definition at line 480 of file CoverageSeries.h.