27 #include "../../../dataaccess/dataset/DataSet.h" 28 #include "../../../dataaccess/dataset/DataSetType.h" 29 #include "../../../dataaccess/utils/Utils.h" 30 #include "../../../datatype/DateTime.h" 31 #include "../../../datatype/DateTimePeriod.h" 32 #include "../../../datatype/DateTimeInstant.h" 33 #include "../../../datatype/DateTimeProperty.h" 34 #include "../../../geometry/Utils.h" 35 #include "../../../geometry/GeometryProperty.h" 71 std::unique_ptr<te::da::DataSet> result(
m_ds.release());
86 std::unique_ptr<te::gm::Envelope> env(
m_ds->getExtent(idx));
108 return m_ds->moveNext();
113 return m_ds->movePrevious();
118 return m_ds->moveFirst();
123 return m_ds->moveBeforeFirst();
128 return m_ds->moveLast();
133 return m_ds->isAtBegin();
138 return m_ds->isBeforeBegin();
143 return m_ds->isAtEnd();
148 return m_ds->isAfterEnd();
154 std::unique_ptr<te::dt::DateTime> vlTime;
155 std::unique_ptr<te::dt::DateTime> rsTime;
163 boost::ptr_vector<te::dt::AbstractData> obsData;
167 return std::unique_ptr<te::st::Observation>(
new 170 static_cast<te::dt::DateTimePeriod*>(vlTime.release()),
const te::dt::DateTimePeriod * getTemporalExtent() const
It returns the temporal extent of the observations.
const te::dt::DateTimeProperty * getEndTimePropInfo() const
It returns the DataSet property information that contains the phenomenon end time.
const te::dt::DateTimeProperty * getBeginTimeProperty() const
It returns the property of the phenomenon beginning time.
A class to represent an observation.
std::string getBeginTimePropName() const
It returns the name of the DataSet property that contains the phenomenon beginning time...
TEDATAACCESSEXPORT std::size_t GetPropertyPos(const DataSet *dataset, const std::string &name)
const te::dt::DateTimeProperty * getVlEndTimePropInfo() const
It returns the DataSet property information that contains the valid end time.
static te::dt::Date ds(2010, 01, 01)
std::unique_ptr< Observation > getObservation() const
It returns the observation pointed by the internal cursor.
bool hasVlTimeProp() const
const te::dt::DateTimeProperty * getBeginTimePropInfo() const
It returns the DataSet property information that contains the phenomenon beginning time...
const te::gm::Geometry * getSpatialExtent() const
It returns the spatial extent of the observations.
ObservationDataSetType m_obst
A data set that contains observations.
const te::dt::DateTimeProperty * getVlEndTimeProperty() const
It returns the property of the valid end time.
const te::dt::DateTimeProperty * getRsTimeProperty() const
It returns the property of the result time.
std::string getGeomPropName() const
It returns the name of the property that is a geometry property.
const te::dt::DateTimeProperty * getVlBeginTimeProperty() const
It returns the property of the valid beginning time.
std::unique_ptr< te::da::DataSet > release()
It releases all internal pointers, returning its internal DataSet and invalidating itself...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
This file contains a class to represent an observation data set.
bool hasSpatialExtent() const
bool isBeforeBegin() const
void setSpatialExtent(te::gm::Geometry *se)
It sets the spatial extent of all observations.
A dataset is the unit of information manipulated by the data access module of TerraLib.
const ObservationDataSetType & getType() const
It returns a reference to the ObservationDataSetType.
const te::gm::Geometry * getSpatialExtent()
It returns the spatial extent of the observations, when there is an observed value of geometry type...
An abstract class to represent a period of date and time.
void setSpatialExtent(te::gm::Geometry *ext)
It sets the spatial extent of the observations, when there is an observed value of geometry type...
void setTemporalExtent(te::dt::DateTimePeriod *te)
It sets the temporal extent of all observations.
The type for date and time types: date, date period, date duration, time duration, time instant, time period, time instant with time zone or time period with time zone.
void setTemporalExtent(te::dt::DateTimePeriod *ext)
It sets the temporal extent of the observations, when there is an observed value of geometry type...
ObservationDataSet(te::da::DataSet *ds, const ObservationDataSetType &obst)
Constructor.
te::da::DataSet * getData() const
It returns the DataSet that contains the observations.
A class that contains complemental DataSetType information about a DataSet that holds observations...
bool hasRsTimeProp() const
const te::dt::DateTimePeriod * getTemporalExtent()
It returns the temporal extent of the observations.
virtual ~ObservationDataSet()
Virtual destructor.
const te::dt::DateTimeProperty * getVlBeginTimePropInfo() const
It returns the DataSet property information that contains the valid beginning time.
std::unique_ptr< te::da::DataSet > m_ds
TEGEOMEXPORT Geometry * GetGeomFromEnvelope(const Envelope *const e, int srid)
It creates a Geometry (a polygon) from the given envelope.
const std::vector< std::string > & getObsPropNames() const
It returns the names of the DataSet properties that are observed over time.
const te::dt::DateTimeProperty * getRsTimePropInfo() const
It returns the DataSet property information that contains the result time.
const te::dt::DateTimeProperty * getEndTimeProperty() const
It returns the property of the phenomenon end time.
An abstract class to represent an instant of date and time.
const std::string & getName() const
It returns the property name.