A class that contains a set of static methods to load spatiotemporal data from data sources. More...
#include <STDataLoader.h>
Public Member Functions | |
virtual | ~STDataLoader () |
Virtual destructor. More... | |
Static Public Member Functions | |||||
static void | finalize () | ||||
It finalize the STDataLoader. More... | |||||
static void | initialize () | ||||
It returns the spatial extent of the observations of a coverage series. More... | |||||
Operations for loading ObservationDataSet | |||||
static std::auto_ptr < ObservationDataSet > | getDataSet (const ObservationDataSetInfo &info, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a ObservationDataSet, that is, a DataSet that contains observations. More... | |||||
static std::auto_ptr < ObservationDataSet > | getDataSet (const ObservationDataSetInfo &info, const te::gm::Envelope &e, te::gm::SpatialRelation r=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations whose observed geometries satisfy a given spatial relation. More... | |||||
static std::auto_ptr < ObservationDataSet > | getDataSet (const ObservationDataSetInfo &info, const te::gm::Geometry &geom, te::gm::SpatialRelation r=te::gm::INTERSECTS, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations whose observed geometries satisfy a given spatial relation. More... | |||||
static std::auto_ptr < ObservationDataSet > | getDataSet (const ObservationDataSetInfo &info, const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations whose phenomenon times satisfy a given temporal relation. More... | |||||
static std::auto_ptr < ObservationDataSet > | getDataSet (const ObservationDataSetInfo &info, const te::gm::Geometry &geom, te::gm::SpatialRelation sr, const te::dt::DateTime &dt, te::dt::TemporalRelation tr=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations whose observed geometries satisfy a given spatial relation and phenomenon times satisfy a given temporal relation. More... | |||||
Operations for loading TrajectoryDataSet | |||||
static void | getInfo (const TrajectoryDataSetInfo &input, std::vector< TrajectoryDataSetInfo > &output) | ||||
It returns the information about all trajectories that exist in a single DataSet. More... | |||||
static std::auto_ptr < TrajectoryDataSet > | getDataSet (const TrajectoryDataSetInfo &info, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations of trajectories. More... | |||||
static std::auto_ptr < TrajectoryDataSet > | getDataSet (const TrajectoryDataSetInfo &info, const te::gm::Geometry &geom, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns patches of a trajectory whose geometries satisfy a given spatial relation. More... | |||||
static std::auto_ptr < TrajectoryDataSet > | getDataSet (const TrajectoryDataSetInfo &info, const te::gm::Envelope &e, te::gm::SpatialRelation r, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns patches of a trajectory whose geometries satisfy a given spatial relation. More... | |||||
static std::auto_ptr < TrajectoryDataSet > | getDataSet (const TrajectoryDataSetInfo &info, const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations of trajectories whose times satisfy a given temporal relation. More... | |||||
static std::auto_ptr < TrajectoryDataSet > | getDataSet (const TrajectoryDataSetInfo &info, const te::gm::Geometry &geom, te::gm::SpatialRelation sr, const te::dt::DateTime &dt, te::dt::TemporalRelation tr, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns patches of a trajectory whose geometries satisfy a given spatial relation and times satisfy a given temporal relation. More... | |||||
Operations for loading TimeSeriesDataSet | |||||
static void | getInfo (const TimeSeriesDataSetInfo &input, std::vector< TimeSeriesDataSetInfo > &output) | ||||
It returns the information about all time series that exist in a single DataSet. More... | |||||
static std::auto_ptr < TimeSeriesDataSet > | getDataSet (const TimeSeriesDataSetInfo &info, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations of time series. More... | |||||
static std::auto_ptr < TimeSeriesDataSet > | getDataSet (const TimeSeriesDataSetInfo &info, const te::dt::DateTime &dt, te::dt::TemporalRelation r=te::dt::DURING, te::common::TraverseType travType=te::common::FORWARDONLY) | ||||
It returns a data set with observations of time series whose times satisfy a given temporal relation. More... | |||||
Operations for loading spatiotemporal data types | |||||
(TimeSeries, Trajetory, CoverageSeries) directly from data sources, without using DataSets. | |||||
static std::auto_ptr < CoverageSeries > | getCoverageSeries (const PointCoverageSeriesDataSetInfo &info, AbstractPointCoverageInterp *interp) | ||||
It returns a point coverage series. More... | |||||
static std::auto_ptr < CoverageSeries > | getCoverageSeries (const RasterCoverageSeriesDataSetInfo &info) | ||||
It returns a raster coverage series. More... | |||||
static std::auto_ptr < RasterCoverage > | getCoverage (const RasterCoverageDataSetInfo &info) | ||||
It returns a raster coverage. More... | |||||
static std::auto_ptr < PointCoverage > | getCoverage (const PointCoverageDataSetInfo &info, AbstractPointCoverageInterp *interp) | ||||
It returns a point coverage. More... | |||||
Operations for loading temporal and spatial extent | |||||
It returns a time series associated to a point of a coverage series. If info contains information about raster coverages and its associated data source supports raster data type, this function is executed by the data source. Otherwise, it is executed in two steps: (1) creating a CoverageSeries type and (2) using its method getTimeSeries.
\TO DO: (1) vantagem de usar o DataSetCoverageDataSet é ele fica armazenado no driver \em memória (stmem) ao invés de toda hora gerar o CoverageSeries para cada ponto \que queremos extrair a time series. | |||||
static std::auto_ptr < te::dt::DateTimePeriod > | getTemporalExtent (const ObservationDataSetInfo &info) | ||||
It returns the temporal extent of the data set with observations. More... | |||||
static std::auto_ptr < te::dt::DateTimePeriod > | getTemporalExtent (const TrajectoryDataSetInfo &info) | ||||
It returns the temporal extent of the data set with observations of a trajectory. More... | |||||
static std::auto_ptr < te::dt::DateTimePeriod > | getTemporalExtent (const TimeSeriesDataSetInfo &info) | ||||
It returns the temporal extent of the data set with observations of a time series. More... | |||||
static te::gm::Envelope | getSpatialExtent (const ObservationDataSetInfo &info) | ||||
It returns the temporal extent of the data set with observations of a coverage series. More... | |||||
static te::gm::Envelope | getSpatialExtent (const TrajectoryDataSetInfo &info) | ||||
It returns the spatial extent of the observations of a trajectory. More... | |||||
Protected Member Functions | |
STDataLoader () | |
Protected constructor. More... | |
A class that contains a set of static methods to load spatiotemporal data from data sources.
Definition at line 86 of file STDataLoader.h.
|
virtual |
Virtual destructor.
Definition at line 322 of file STDataLoader.cpp.
|
protected |
Protected constructor.
Definition at line 51 of file STDataLoader.cpp.
|
static |
It finalize the STDataLoader.
It closes (cleans its iternal DataSets) ST Memory data source in the DataSourceManager.
Definition at line 315 of file STDataLoader.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and te::st::Globals::sm_STMemoryDataSourceId.
|
static |
It returns a raster coverage.
info | Information about the DataSource which the observations of a raster coverage are from and the data sets which contain these observations. |
Definition at line 203 of file STDataLoader.cpp.
References te::da::GetDataSet(), te::st::ObservationDataSetInfo::getDataSetName(), te::st::RasterCoverageDataSetInfo::getDataSourceInfo(), te::da::DataSourceInfo::getId(), te::st::RasterCoverageDataSetInfo::getObservationDataSetInfo(), te::st::RasterCoverageDataSetInfo::getRasterPropIdx(), te::st::RasterCoverageDataSetInfo::getTime(), and te::st::RasterCoverageDataSetInfo::getTimePropIdxs().
|
static |
It returns a point coverage.
info | Information about the DataSource which the observations of a point coverage are from and the data sets which contain these observations. |
interp | The interpolator associated to the point coverage |
Definition at line 224 of file STDataLoader.cpp.
References te::da::GetDataSet(), te::st::ObservationDataSetInfo::getDataSetName(), te::st::PointCoverageDataSetInfo::getDataSourceInfo(), te::da::DataSourceInfo::getId(), te::st::PointCoverageDataSetInfo::getObservationDataSetInfo(), te::st::PointCoverageDataSetInfo::getPointPropIdx(), te::st::PointCoverageDataSetInfo::getTime(), te::st::PointCoverageDataSetInfo::getTimePropIdxs(), and te::st::PointCoverageDataSetInfo::getValuePropIdxs().
|
static |
It returns a point coverage series.
info | Information about the DataSource which the observations of a coverage series are from and the data sets which contain these observations. |
interp | The interpolator associated to each |
Definition at line 173 of file STDataLoader.cpp.
|
static |
It returns a raster coverage series.
info | Information about the DataSource which the observations of a coverage series are from and the data sets which contain these observations. |
Definition at line 189 of file STDataLoader.cpp.
|
static |
It returns a ObservationDataSet, that is, a DataSet that contains observations.
info | Information about the DataSource which the observation are from and the DataSet which contains the observations. |
travType | The traverse type associated to the returned dataset. |
Definition at line 56 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations whose observed geometries satisfy a given spatial relation.
info | Information about the DataSource which the observation are from and the DataSet which contains the observations. |
e | A given envelope. |
r | A given spatial relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 64 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations whose observed geometries satisfy a given spatial relation.
The possible spatial relations implemented here are: INTERSECTS
info | Information about the DataSource which the observation are from and the DataSet which contains the observations. |
geom | A given geometry. |
r | A given spatial relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 72 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations whose phenomenon times satisfy a given temporal relation.
The possible temporal relations are: 1. AFTER;
info | Information about the DataSource which the observation are from and the DataSet which contains the observations. |
dt | A given datetime. |
r | A given temporal relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 80 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations whose observed geometries satisfy a given spatial relation and phenomenon times satisfy a given temporal relation.
The possible spatial relations are: INTERSECTS The possible temporal relations are: 1. AFTER;
info | Information about the DataSource which the observation are from and the DataSet which contains the observations. |
geom | A given geometry. |
sr | A given spatial relation. |
dt | A given datetime. |
tr | A given temporal relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 89 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations of trajectories.
When the DataSet contains more than one trajectory, the info parameter (TrajectoryDataSetInfo) must contain the id of the desire trajectory that must be returned as a TrajectoryDataSet.
info | Information about the DataSource which the observations of a trajectory are from and the DataSet which contains these observations. |
travType | The traverse type associated to the returned datasets. |
rwRole | The read and write permission associated to the returned datasets. |
Definition at line 106 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns patches of a trajectory whose geometries satisfy a given spatial relation.
When the DataSet contains more than one trajectory, the info parameter (TrajectoryDataSetInfo) must contain the id of the desire trajectory that must be returned as a TrajectoryDataSet.
The possible spatial relations implemented here are: INTERSECTS
info | Information about the DataSource which the observations of a trajectory are from and the DataSet which contains these observations. |
geom | A given geometry. |
r | A given spatial relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 113 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns patches of a trajectory whose geometries satisfy a given spatial relation.
When the DataSet contains more than one trajectory, the info parameter (TrajectoryDataSetInfo) must contain the id of the desire trajectory that must be returned as a TrajectoryDataSet.
info | Information about the DataSource which the observations of a trajectory are from and the DataSet which contains the observations. |
e | A given envelope. |
r | A given spatial relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 122 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations of trajectories whose times satisfy a given temporal relation.
When the DataSet contains more than one trajectory, the info parameter (TrajectoryDataSetInfo) must contain the id of the desire trajectory that must be returned as a TrajectoryDataSet.
The possible temporal relations are: 1. AFTER;
info | Information about the DataSource which the observation of trajectpries are from and the DataSet which contains the observations. |
dt | A given datetime. |
r | A given temporal relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 131 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns patches of a trajectory whose geometries satisfy a given spatial relation and times satisfy a given temporal relation.
When the DataSet contains more than one trajectory, the info parameter (TrajectoryDataSetInfo) must contain the id of the desire trajectory that must be returned as a TrajectoryDataSet.
The possible spatial relations are: INTERSECTS The possible temporal relations are: 1. AFTER;
info | Information about the DataSource which the observations of trajectories are from and the DataSet which contains these observations. |
geom | A given geometry. |
sr | A given spatial relation. |
dt | A given datetime. |
tr | A given temporal relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 140 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations of time series.
When the DataSet contains more than one time series, the info parameter (TimeSeriesDataSetInfo) must contain the id of the desire time series that must be returned as a TimeSeriesDataSet.
info | Information about the DataSource which the observations of a time series are from and the DataSet which contains these observations. |
travType | The traverse type associated to the returned datasets. |
Definition at line 157 of file STDataLoader.cpp.
References te::st::TimeSeriesDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns a data set with observations of time series whose times satisfy a given temporal relation.
When the DataSet contains more than one time series, the info parameter (TimeSeriesDataSetInfo) must contain the id of the desire time series that must be returned as a TimeSeriesDataSet.
The possible temporal relations are: 1. AFTER;
info | Information about the DataSource which the observation of time series are from and the DataSet which contains the observations. |
dt | A given datetime. |
r | A given temporal relation. |
travType | The traverse type associated to the returned dataset. |
Definition at line 164 of file STDataLoader.cpp.
References te::st::TimeSeriesDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the information about all trajectories that exist in a single DataSet.
The information about the DataSource and DataSet that contains trajectories is defined as a TrajectoryDataSetInfo (input parameter).
The information about each trajectory (its correct id) is returned as a TrajectoryDataSetInfo of the parameter output. These results can be used to create TrajectoryDataSetLayers.
input | The information about the DataSource and DataSet that contains trajectories |
output | The information about each trajectory (its correct id). |
Definition at line 98 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the information about all time series that exist in a single DataSet.
The information about the DataSource and DataSet that contains time series is defined as a TimeSeriesDataSetInfo (input parameter).
The information about each time series (its correct id) is returned as a TimeSeriesDataSetInfo of the parameter output. These results can be used to create TimeSeriesDataSetLayers.
input | The information about the DataSource and DataSet that contains time series |
output | The information about each time series (its correct id). |
Definition at line 149 of file STDataLoader.cpp.
References te::st::TimeSeriesDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the temporal extent of the data set with observations of a coverage series.
It returns the spatial extent of the observations, when there is an observed value of geometry type.
Definition at line 297 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the spatial extent of the observations of a trajectory.
Definition at line 304 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the temporal extent of the data set with observations.
Definition at line 276 of file STDataLoader.cpp.
References te::st::ObservationDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the temporal extent of the data set with observations of a trajectory.
Definition at line 283 of file STDataLoader.cpp.
References te::st::TrajectoryDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the temporal extent of the data set with observations of a time series.
Definition at line 290 of file STDataLoader.cpp.
References te::st::TimeSeriesDataSetInfo::getDataSourceInfo(), and te::da::DataSourceInfo::getType().
|
static |
It returns the spatial extent of the observations of a coverage series.
It initialize the STDataLoader
It creates a ST Memory data source and adds it into the DataSourceManager.
Definition at line 310 of file STDataLoader.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and te::st::Globals::sm_STMemoryDataSourceId.