18 boost::ptr_vector<te::st::TrajectoryDataSet> output;
27 boost::ptr_vector<te::st::Trajectory> trajectories;
28 for(std::size_t i=0; i<output.size(); ++i)
36 if(trajectories.size()>1)
41 const std::string connInfo(
"file://" TERRALIB_DATA_DIR
"/st/trajectory/t41_region.shp");
46 std::unique_ptr<te::da::DataSet> dSet = ds->getDataSet(
"t41_region");
47 std::unique_ptr<te::gm::Geometry> geom;
52 geom = dSet->getGeometry(geomPos);
59 catch(
const std::exception& e)
61 std::cout << std::endl <<
"An exception has occurred in TrajectoryExamples: " << e.what() << std::endl;
65 std::cout << std::endl <<
"An unexpected exception has occurred in TrajectoryExamples!" << std::endl;
static std::unique_ptr< DataSource > make(const std::string &driver, const te::core::URI &connInfo)
std::unique_ptr< Trajectory > getTrajectory(AbstractTrajectoryInterp *interp)
It returns the trajectory from the DataSet.
void TrajectoryDistance(te::st::Trajectory *tj1, te::st::Trajectory *tj2)
It calculates the distance between two trajectories (TrajectoryDistance.cpp).
void TrajectoryExamples()
It groups the examples with trajectories (TrajectoryExamples.cpp).
static te::dt::Date ds(2010, 01, 01)
Examples on how to load/manipulate st types.
void TrajectoryIntersection(te::st::Trajectory *tj, te::gm::Geometry *geom)
It calculates the intersection between a trajectory and a geometry (TrajectoryInstersection.cpp).
A class to represent a trajectory data set.
void PrintTrajectoryDataSetInfo(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It prints information about the trajectory data set: its spatial and temporal extent (PrintTrajectory...
void LoadTrajectoryDataSetFromKML(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It loads trajectory data set from KML file.
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the TerraLib ST module.
TEDATAACCESSEXPORT std::size_t GetFirstPropertyPos(const te::da::DataSet *dataset, int datatype)
This file contains include headers for the Vector Geometry model of TerraLib.
This file contains include headers for the Data Access module of TerraLib.