26 #ifndef __TERRALIB_ST_INTERNAL_TIMESERIESDATASET_H
27 #define __TERRALIB_ST_INTERNAL_TIMESERIESDATASET_H
30 #include "../../Config.h"
33 #include <boost/noncopyable.hpp>
40 namespace te {
namespace dt {
class AbstractData;
class DateTime;
class DateTimePeriod;
class DateTimeProperty;} }
41 namespace te {
namespace gm {
class Geometry;
class GeometryProperty; } }
48 class ObservationDataSet;
49 class ObservationDataSetType;
51 class AbstractTimeSeriesInterp;
84 const std::vector<std::string>& propNames);
97 const std::vector<std::string>& propNames,
const std::string&
id);
109 const std::string&
id);
188 std::unique_ptr<te::dt::DateTime>
getTime()
const;
197 std::unique_ptr<te::dt::AbstractData>
getValue(std::size_t idx)
const;
206 std::unique_ptr<te::dt::AbstractData>
getValue()
const;
302 const std::string& vPropName,
303 std::vector<te::st::TimeSeries*>& result);
A dataset is the unit of information manipulated by the data access module of TerraLib.
An abstract class to represent a period of date and time.
An abstract class for an interpolation function or interpolator that estimate a value at non-observav...
A class that contains complemental DataSetType information about a DataSet that holds observations.
A class to represent a DataSet that contains observations.
A layer with reference to a dataset that contains trajectories.
A class to represent a time series data set.
std::size_t size() const
It returns the size of the time series observation set.
std::unique_ptr< te::gm::Geometry > getGeometry() const
It returns the geometry pointed by the internal cursor.
const std::vector< std::string > & getValuePropNames() const
It returns the indexes of the DataSet properties that contains the values associated to the time seri...
std::string getId() const
It returns the identifier associated to the time series.
TimeSeriesDataSet(te::da::DataSet *ds, const ObservationDataSetType &type, const std::vector< std::string > &propNames)
Constructor.
std::unique_ptr< te::da::DataSet > release()
It releases all internal pointers, returning its internal DataSet and invalidating itself.
void setId(const std::string &id)
It sets the identifier associated to the time series.
int getInt() const
It returns the observed value as double pointed by the internal cursor.
std::unique_ptr< te::dt::DateTime > getTime() const
It returns the time pointed by the internal cursor.
TimeSeriesDataSet(ObservationDataSet *obs, const std::vector< std::string > &propNames, const std::string &id)
Constructor.
std::vector< std::string > m_vlPropNames
The names of the properties that contain the time series values.
std::unique_ptr< ObservationDataSet > m_obsDs
The data set that contains the trajectory observations.
ObservationDataSet * getObservationSet() const
It returns the data set that contains the time series observations.
std::unique_ptr< TimeSeries > getTimeSeries(const std::string &propName, te::st::AbstractTimeSeriesInterp *interp)
It returns the time series from the DataSet.
int getInt(std::size_t idx) const
It returns the idx-th observed value as integer pointed by the internal cursor.
void getTimeSeriesSet(te::st::AbstractTimeSeriesInterp *interp, const std::string &vPropName, std::vector< te::st::TimeSeries * > &result)
It returns all time series from the DataSet.
double getDouble(std::size_t idx) const
It returns the idx-th observed value as double pointed by the internal cursor.
bool isBeforeBegin() const
std::unique_ptr< TimeSeries > getTimeSeries(te::st::AbstractTimeSeriesInterp *interp)
It returns the time series from the DataSet.
std::string m_id
The time series identification.
std::unique_ptr< te::dt::AbstractData > getValue(std::size_t idx) const
It returns the idx-th observed value pointed by the internal cursor.
std::unique_ptr< te::dt::AbstractData > getValue() const
It returns the observed value pointed by the internal cursor.
void setValuePropNames(const std::vector< std::string > &n)
It sets the names of the DataSet properties that contains the values associated to the time series.
TimeSeriesDataSet(te::da::DataSet *ds, const ObservationDataSetType &type, const std::vector< std::string > &propNames, const std::string &id)
Constructor.
const te::dt::DateTimePeriod * getTemporalExtent() const
It returns the temporal extent of the time series observations.
double getDouble() const
It returns the observed value as double pointed by the internal cursor.
virtual ~TimeSeriesDataSet()
It returns the trajectory geometry property.
#define TESTEXPORT
You can use this macro in order to export/import classes and functions from this module.