28 #include "../../dataaccess/datasource/DataSourceInfo.h" 29 #include "../../dataaccess/datasource/DataSource.h" 30 #include "../../dataaccess/dataset/DataSet.h" 31 #include "../../dataaccess/utils/Utils.h" 32 #include "../../datatype/DateTimePeriod.h" 33 #include "../../datatype/DateTimeProperty.h" 34 #include "../../geometry/Utils.h" 37 #include "../Exception.h" 40 #include "../core/observation/ObservationDataSetInfo.h" 41 #include "../core/trajectory/TrajectoryDataSetInfo.h" 42 #include "../core/timeseries/TimeSeriesDataSetInfo.h" 43 #include "../core/observation/ObservationDataSet.h" 44 #include "../core/trajectory/TrajectoryDataSet.h" 45 #include "../core/timeseries/TimeSeriesDataSet.h" 52 std::unique_ptr<te::st::ObservationDataSet>
59 std::unique_ptr<te::da::DataSet> dset(ds->getDataSet(info.
getDataSetName(), travType));
65 std::unique_ptr<te::st::ObservationDataSet>
74 return std::unique_ptr<te::st::ObservationDataSet>();
79 std::unique_ptr<te::da::DataSet> dset(ds->getDataSet(info.
getDataSetName(), geomPropName, &e, r, travType));
84 std::unique_ptr<te::st::ObservationDataSet>
93 return std::unique_ptr<te::st::ObservationDataSet>();
98 std::unique_ptr<te::da::DataSet> dset(ds->getDataSet(info.
getDataSetName(), geomPropName, &geom, r, travType));
103 std::unique_ptr<te::st::ObservationDataSet>
114 return std::unique_ptr<te::st::ObservationDataSet>();
117 std::unique_ptr<te::st::ObservationDataSet>
131 return std::unique_ptr<te::st::ObservationDataSet>();
135 std::unique_ptr<te::st::ObservationDataSet>
147 return std::unique_ptr<te::st::ObservationDataSet> ();
156 std::unique_ptr<te::st::TrajectoryDataSet>
167 std::unique_ptr<te::st::TrajectoryDataSet>
177 return std::unique_ptr<te::st::TrajectoryDataSet>();
187 std::unique_ptr<te::st::TrajectoryDataSet>
197 return std::unique_ptr<te::st::TrajectoryDataSet>();
203 geomPropName, &e, r, travType));
208 std::unique_ptr<te::st::TrajectoryDataSet>
219 return std::unique_ptr<te::st::TrajectoryDataSet>();
222 std::unique_ptr<te::st::TrajectoryDataSet>
236 return std::unique_ptr<te::st::TrajectoryDataSet>();
239 std::unique_ptr<te::st::TrajectoryDataSet>
251 return std::unique_ptr<te::st::TrajectoryDataSet>();
255 std::vector<TimeSeriesDataSetInfo>& )
260 std::unique_ptr<te::st::TimeSeriesDataSet>
272 std::unique_ptr<te::st::TimeSeriesDataSet>
283 return std::unique_ptr<te::st::TimeSeriesDataSet>();
286 std::unique_ptr<te::st::TimeSeriesDataSet>
296 return std::unique_ptr<te::st::TimeSeriesDataSet>();
306 std::unique_ptr<te::st::TimeSeriesDataSet>
316 return std::unique_ptr<te::st::TimeSeriesDataSet>();
322 geomPropName, &e, r, travType));
327 std::unique_ptr<te::st::TimeSeriesDataSet>
341 return std::unique_ptr<te::st::TimeSeriesDataSet>();
344 std::unique_ptr<te::st::TimeSeriesDataSet>
356 return std::unique_ptr<te::st::TimeSeriesDataSet>();
360 std::unique_ptr<te::dt::DateTimePeriod>
369 return std::unique_ptr<te::dt::DateTimePeriod>();
372 std::unique_ptr<te::dt::DateTimePeriod>
381 return std::unique_ptr<te::dt::DateTimePeriod>();
384 std::unique_ptr<te::dt::DateTimePeriod>
393 return std::unique_ptr<te::dt::DateTimePeriod>();
408 std::unique_ptr<te::gm::Envelope> res(ds->getExtent(info.
getDataSetName(), geomPropName));
430 std::unique_ptr<te::st::ObservationDataSet>
436 std::unique_ptr<te::st::TrajectoryDataSet>
442 std::unique_ptr<te::st::TimeSeriesDataSet>
TEDATAACCESSEXPORT DataSourcePtr GetDataSource(const std::string &datasourceId, const bool opened=true)
Search for a data source with the informed id in the DataSourceManager.
A class to represent a time series data set.
A class to represent a DataSet that contains observations.
boost::shared_ptr< DataSource > DataSourcePtr
A class that contains infos about a DataSet that contains observations.
std::string getGeomPropName() const
It returns the name of the property that is a geometry property.
te::gm::Envelope getSpatialExtent(const ObservationDataSetInfo &info)
It returns the temporal extent of the data set with observations of a coverage series.
TemporalRelation
Temporal relations between date and time (Source: Allen, 1991).
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contains the time series observations.
SpatialRelation
Spatial relations between geometric objects.
std::unique_ptr< ObservationDataSet > getDataSet(const ObservationDataSetInfo &info, te::common::TraverseType travType=te::common::FORWARDONLY)
It returns a ObservationDataSet, that is, a DataSet that contains observations.
static te::dt::Date ds(2010, 01, 01)
This file contains a class responsible for loading spatiotemporal data from a DataSource using query ...
virtual ~STDataLoaderFromDS()
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contains the trajectory observations.
TESTEXPORT ObservationDataSetType GetType(const ObservationDataSetInfo &info)
An auxiliary function that transform ObservationDataSetInfo into ObservationDataSetType.
TraverseType
A dataset can be traversed in two ways:
const std::vector< std::string > & getValuePropNames() const
It returns the names of the DataSet properties that contains the values associated to the time series...
An Envelope defines a 2D rectangular region.
std::unique_ptr< te::dt::DateTimePeriod > getTemporalExtent(const ObservationDataSetInfo &info)
It returns the temporal extent of the data set with observations.
std::unique_ptr< ObservationDataSet > buildDataSet(te::da::DataSet *ds, const ObservationDataSetInfo &info)
It builds an ObservationDataSet from a given DataSet.
const te::da::DataSourceInfo & getDataSourceInfo() const
It returns the information about the DataSource.
void getInfo(const TrajectoryDataSetInfo &input, std::vector< TrajectoryDataSetInfo > &output)
It returns the information about all trajectories that exist in a single DataSet. ...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A class that contains infos about a DataSet that contains observations of one or more trajectories...
A class to represent a trajectory data set.
const std::string & getId() const
A dataset is the unit of information manipulated by the data access module of TerraLib.
A class that contains infos about a DataSet that contains observations of one or more time series...
std::string getDataSetName() const
It returns the DataSet name.