Examples on how to load/manipulate st types. More...
#include <terralib/common_fw.h>#include <terralib/dataaccess_fw.h>#include <terralib/geometry_fw.h>#include <terralib/st_fw.h>#include <vector>#include <string>#include <boost/ptr_container/ptr_vector.hpp>#include <boost/shared_ptr.hpp>#include "Config.h"Go to the source code of this file.
Functions | |
| void | CoverageSeriesExamples () |
| It contains examples about coverage. More... | |
| void | CreateDataSourceAndUpdateManager (te::da::DataSourceInfo &dsinfo) |
| It creates a new DataSource and put it into the DataSource manager, using a random id. More... | |
| std::unique_ptr< te::st::CoverageSeries > | LoadCoverageSeriesFromGeotif () |
| It loads a coverage series from a set of geotif files. More... | |
| void | LoadModules () |
| It loads the TerraLib modules. More... | |
| void | LoadTimeSeriesDataSetFromPGIS (boost::ptr_vector< te::st::TimeSeries > &output) |
| It loads a Time Series data set from a PostGIS database. More... | |
| void | LoadTrajectoryDataSetFromKML (boost::ptr_vector< te::st::TrajectoryDataSet > &output) |
| It loads trajectory data set from KML file. More... | |
| void | PrintCoverageSeriesInfo (te::st::CoverageSeries *output) |
| It prints information about a coverage series (PrintCoverageSeries.cpp) More... | |
| void | PrintTimeSeries (boost::ptr_vector< te::st::TimeSeries > &output) |
| It prints all observations of the time series (PrintTimeSeries.cpp) More... | |
| void | PrintTimeSeries (te::st::TimeSeries *output) |
| void | PrintTimeSeriesInfo (boost::ptr_vector< te::st::TimeSeries > &output) |
| It prints information about the time series: its spatial and temporal extent (PrintTimeSeries.cpp) More... | |
| void | PrintTimeSeriesInfo (te::st::TimeSeries *output) |
| void | PrintTrajectory (boost::ptr_vector< te::st::Trajectory > &output) |
| It prints all observations of the trajectory (PrintTrajectory.cpp) More... | |
| void | PrintTrajectory (te::st::Trajectory *output) |
| void | PrintTrajectoryDataSet (boost::ptr_vector< te::st::TrajectoryDataSet > &output) |
| It prints all observations of the trajectory data set (PrintTrajectoryDataSet.cpp) More... | |
| void | PrintTrajectoryDataSet (te::st::TrajectoryDataSet *output) |
| void | PrintTrajectoryDataSetInfo (boost::ptr_vector< te::st::TrajectoryDataSet > &output) |
| It prints information about the trajectory data set: its spatial and temporal extent (PrintTrajectoryDataSet.cpp) More... | |
| void | PrintTrajectoryDataSetInfo (te::st::TrajectoryDataSet *output) |
| void | PrintTrajectoryInfo (boost::ptr_vector< te::st::Trajectory > &output) |
| It prints information about the trajectory: its spatial and temporal extent (PrintTrajectory.cpp) More... | |
| void | PrintTrajectoryInfo (te::st::Trajectory *output) |
| void | PrintTrajectoryPatch (te::st::TrajectoryPatch &tjPatch) |
| void | TimeSeriesExamples () |
| It groups the examples with TimeSeries (TimeSeriesExamples.cpp). More... | |
| void | TrajectoryDistance (te::st::Trajectory *tj1, te::st::Trajectory *tj2) |
| It calculates the distance between two trajectories (TrajectoryDistance.cpp). More... | |
| void | TrajectoryExamples () |
| It groups the examples with trajectories (TrajectoryExamples.cpp). More... | |
| void | TrajectoryIntersection (te::st::Trajectory *tj, te::gm::Geometry *geom) |
| It calculates the intersection between a trajectory and a geometry (TrajectoryInstersection.cpp). More... | |
Examples on how to load/manipulate st types.
Definition in file STExamples.h.
| void CoverageSeriesExamples | ( | ) |
It contains examples about coverage.
Definition at line 14 of file CoverageSeriesExamples.cpp.
References ds, te::dt::GEOMETRY_TYPE, te::gm::Envelope::getCenter(), te::da::GetFirstPropertyPos(), LoadCoverageSeriesFromGeotif(), te::da::DataSourceFactory::make(), PrintCoverageSeriesInfo(), PrintTimeSeries(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
| void CreateDataSourceAndUpdateManager | ( | te::da::DataSourceInfo & | dsinfo | ) |
It creates a new DataSource and put it into the DataSource manager, using a random id.
Definition at line 15 of file CreateDataSourceAndUpdateManager.cpp.
References te::da::DataSourceInfo::getConnInfo(), te::da::DataSourceInfo::getId(), te::common::Singleton< DataSourceManager >::getInstance(), te::da::DataSourceInfo::getType(), te::da::DataSourceInfo::setId(), and te::common::Exception::what().
Referenced by LoadCoverageSeriesFromGeotif(), LoadTimeSeriesDataSetFromPGIS(), and LoadTrajectoryDataSetFromKML().
| std::unique_ptr<te::st::CoverageSeries> LoadCoverageSeriesFromGeotif | ( | ) |
It loads a coverage series from a set of geotif files.
Definition at line 13 of file LoadCoverageSeriesFromGeotif.cpp.
References CreateDataSourceAndUpdateManager(), te::st::STDataLoader::getCoverageSeries(), te::da::DataSourceInfo::setConnInfo(), and te::da::DataSourceInfo::setType().
Referenced by CoverageSeriesExamples().
| void LoadModules | ( | ) |
It loads the TerraLib modules.
It loads the TerraLib modules.
Load the required runtime modules.
It loads the data source drivers.
It loads the TerraLib modules.
Load the required runtime modules.
Load terralib modules.
It loads the data source drivers.
Definition at line 38 of file attic/unittest/dataaccess/LoadModules.h.
| void LoadTimeSeriesDataSetFromPGIS | ( | boost::ptr_vector< te::st::TimeSeries > & | output | ) |
It loads a Time Series data set from a PostGIS database.
Definition at line 17 of file LoadTimeSeriesDataSetFromPGIS.cpp.
References CreateDataSourceAndUpdateManager(), te::st::STDataLoader::getDataSet(), te::st::ObservationDataSetInfo::getIdPropName(), te::common::Singleton< NearestValueAtTimeInterp >::getInstance(), te::st::TimeSeriesDataSetInfo::getObservationDataSetInfo(), te::da::DataSourceInfo::setAccessDriver(), te::da::DataSourceInfo::setConnInfo(), te::da::DataSourceInfo::setTitle(), and te::da::DataSourceInfo::setType().
Referenced by TimeSeriesExamples().
| void LoadTrajectoryDataSetFromKML | ( | boost::ptr_vector< te::st::TrajectoryDataSet > & | output | ) |
It loads trajectory data set from KML file.
Definition at line 13 of file LoadTrajectoryDateSetFromKML.cpp.
References CreateDataSourceAndUpdateManager(), te::dt::DURING, te::st::STDataLoader::getDataSet(), PrintTrajectoryDataSet(), te::da::DataSourceInfo::setConnInfo(), and te::da::DataSourceInfo::setType().
Referenced by TrajectoryExamples().
| void PrintCoverageSeriesInfo | ( | te::st::CoverageSeries * | output | ) |
It prints information about a coverage series (PrintCoverageSeries.cpp)
Definition at line 13 of file PrintCoverageSeries.cpp.
References te::st::CoverageSeries::begin(), te::st::CoverageSeries::end(), te::st::CoverageSeries::getSpatialExtent(), te::st::CoverageSeries::getTemporalExtent(), te::st::CoverageSeriesIterator::getTime(), te::st::CoverageSeries::getType(), te::st::CoverageSeries::size(), te::dt::AbstractData::toString(), and te::gm::Geometry::toString().
Referenced by CoverageSeriesExamples().
| void PrintTimeSeries | ( | boost::ptr_vector< te::st::TimeSeries > & | output | ) |
It prints all observations of the time series (PrintTimeSeries.cpp)
Definition at line 13 of file PrintTimeSeries.cpp.
References PrintTimeSeries().
Referenced by CoverageSeriesExamples(), PrintTimeSeries(), TimeSeriesExamples(), and TrajectoryDistance().
| void PrintTimeSeries | ( | te::st::TimeSeries * | output | ) |
Definition at line 22 of file PrintTimeSeries.cpp.
References te::st::TimeSeries::begin(), te::st::TimeSeries::end(), te::st::TimeSeriesIterator::getTime(), te::st::TimeSeriesIterator::getValue(), PrintTimeSeriesInfo(), and te::dt::AbstractData::toString().
| void PrintTimeSeriesInfo | ( | boost::ptr_vector< te::st::TimeSeries > & | output | ) |
It prints information about the time series: its spatial and temporal extent (PrintTimeSeries.cpp)
Definition at line 43 of file PrintTimeSeries.cpp.
References PrintTimeSeriesInfo().
Referenced by PrintTimeSeries(), and PrintTimeSeriesInfo().
| void PrintTimeSeriesInfo | ( | te::st::TimeSeries * | output | ) |
Definition at line 52 of file PrintTimeSeries.cpp.
References te::st::TimeSeries::getId(), te::st::TimeSeries::getLocation(), te::st::TimeSeries::getTemporalExtent(), te::st::TimeSeries::getValueExtent(), and te::gm::Geometry::toString().
| void PrintTrajectory | ( | boost::ptr_vector< te::st::Trajectory > & | output | ) |
It prints all observations of the trajectory (PrintTrajectory.cpp)
Definition at line 13 of file PrintTrajectory.cpp.
References PrintTrajectory().
Referenced by PrintTrajectory().
| void PrintTrajectory | ( | te::st::Trajectory * | output | ) |
Definition at line 22 of file PrintTrajectory.cpp.
References te::st::Trajectory::begin(), te::st::Trajectory::end(), te::st::TrajectoryIterator::getGeometry(), te::st::TrajectoryIterator::getTime(), PrintTrajectoryInfo(), te::dt::AbstractData::toString(), and te::gm::Geometry::toString().
| void PrintTrajectoryDataSet | ( | boost::ptr_vector< te::st::TrajectoryDataSet > & | output | ) |
It prints all observations of the trajectory data set (PrintTrajectoryDataSet.cpp)
Definition at line 13 of file PrintTrajectoryDataSet.cpp.
References PrintTrajectoryDataSet().
Referenced by LoadTrajectoryDataSetFromKML(), and PrintTrajectoryDataSet().
| void PrintTrajectoryDataSet | ( | te::st::TrajectoryDataSet * | output | ) |
Definition at line 22 of file PrintTrajectoryDataSet.cpp.
References te::st::TrajectoryDataSet::getGeometry(), te::st::TrajectoryDataSet::getTime(), te::st::TrajectoryDataSet::moveBeforeFirst(), te::st::TrajectoryDataSet::moveNext(), and PrintTrajectoryDataSetInfo().
| void PrintTrajectoryDataSetInfo | ( | boost::ptr_vector< te::st::TrajectoryDataSet > & | output | ) |
It prints information about the trajectory data set: its spatial and temporal extent (PrintTrajectoryDataSet.cpp)
Definition at line 46 of file PrintTrajectoryDataSet.cpp.
References PrintTrajectoryDataSetInfo().
Referenced by PrintTrajectoryDataSet(), PrintTrajectoryDataSetInfo(), and TrajectoryExamples().
| void PrintTrajectoryDataSetInfo | ( | te::st::TrajectoryDataSet * | output | ) |
Definition at line 55 of file PrintTrajectoryDataSet.cpp.
References te::st::TrajectoryDataSet::getTemporalExtent(), and te::dt::AbstractData::toString().
| void PrintTrajectoryInfo | ( | boost::ptr_vector< te::st::Trajectory > & | output | ) |
It prints information about the trajectory: its spatial and temporal extent (PrintTrajectory.cpp)
Definition at line 55 of file PrintTrajectory.cpp.
References PrintTrajectoryInfo().
Referenced by PrintTrajectory(), and PrintTrajectoryInfo().
| void PrintTrajectoryInfo | ( | te::st::Trajectory * | output | ) |
Definition at line 64 of file PrintTrajectory.cpp.
References te::st::Trajectory::getId(), te::gm::Envelope::getLowerLeftX(), te::st::Trajectory::getSpatialExtent(), and te::st::Trajectory::getTemporalExtent().
| void PrintTrajectoryPatch | ( | te::st::TrajectoryPatch & | tjPatch | ) |
Definition at line 43 of file PrintTrajectory.cpp.
References te::st::TrajectoryPatch::begin(), te::st::TrajectoryPatch::end(), te::st::TrajectoryIterator::getGeometry(), te::st::TrajectoryIterator::getTime(), te::dt::AbstractData::toString(), and te::gm::Geometry::toString().
Referenced by TrajectoryIntersection().
| void TimeSeriesExamples | ( | ) |
It groups the examples with TimeSeries (TimeSeriesExamples.cpp).
Definition at line 13 of file TimeSeriesExamples.cpp.
References LoadTimeSeriesDataSetFromPGIS(), and PrintTimeSeries().
| void TrajectoryDistance | ( | te::st::Trajectory * | tj1, |
| te::st::Trajectory * | tj2 | ||
| ) |
It calculates the distance between two trajectories (TrajectoryDistance.cpp).
Definition at line 13 of file TrajectoryDistance.cpp.
References te::st::Trajectory::getDistance(), and PrintTimeSeries().
Referenced by TrajectoryExamples().
| void TrajectoryExamples | ( | ) |
It groups the examples with trajectories (TrajectoryExamples.cpp).
Definition at line 13 of file TrajectoryExamples.cpp.
References ds, te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::st::TrajectoryDataSet::getTrajectory(), LoadTrajectoryDataSetFromKML(), te::da::DataSourceFactory::make(), te::st::TrajectoryDataSet::moveBeforeFirst(), PrintTrajectoryDataSetInfo(), TrajectoryDistance(), and TrajectoryIntersection().
Referenced by main().
| void TrajectoryIntersection | ( | te::st::Trajectory * | tj, |
| te::gm::Geometry * | geom | ||
| ) |
It calculates the intersection between a trajectory and a geometry (TrajectoryInstersection.cpp).
Definition at line 14 of file TrajectoryIntersection.cpp.
References te::st::Trajectory::getPatches(), te::gm::INTERSECTS, and PrintTrajectoryPatch().
Referenced by TrajectoryExamples().