19 const std::string connInfo(
"file://" TERRALIB_DATA_DIR
"/st/trajectory/t_40_41.kml");
28 std::string phTimeName =
"timestamp";
31 std::string geomName =
"geom";
47 tjDS40->moveBeforeFirst();
48 output.push_back(tjDS40.release());
49 tjDS41->moveBeforeFirst();
50 output.push_back(tjDS41.release());
65 tjDS40period->moveBeforeFirst();
66 output.push_back(tjDS40period.release());
67 tjDS41period->moveBeforeFirst();
68 output.push_back(tjDS41period.release());
70 catch(
const std::exception& e)
72 std::cout << std::endl <<
"An exception has occurred in TrajectoryExamplesFromKML: " << e.what() << std::endl;
76 std::cout << std::endl <<
"An unexpected exception has occurred in TrajectoryExamplesFromKML!" << std::endl;
This file contains include headers for the Data Type module of TerraLib.
void PrintTrajectoryDataSet(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It prints all observations of the trajectory data set (PrintTrajectoryDataSet.cpp) ...
Examples on how to load/manipulate st types.
A class to represent time instant.
This file contains include headers for the TerraLib ST memory module.
void setType(const std::string &dsType)
void CreateDataSourceAndUpdateManager(te::da::DataSourceInfo &dsinfo)
It creates a new DataSource and put it into the DataSource manager, using a random id...
void setConnInfo(const te::core::URI &conninfo)
A base class for date data types.
static 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.
A class that contains infos about a DataSet that contains observations of one or more trajectories...
A class to represent time period.
A class to represent time duration with nano-second/micro-second resolution.
void LoadTrajectoryDataSetFromKML(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It loads trajectory data set from KML file.
A class that represents a data source component.
This file contains include headers for the TerraLib ST module.
This file contains include headers for the Data Access module of TerraLib.