15 for(std::size_t i=0; i<input.size(); ++i)
17 std::cout <<
"Printing observations of the trajectory " << i <<
" :" << std::endl;
26 std::cout <<
"Trajectory is NULL!" << std::endl;
32 std::cout <<
"Trajectory observations: " << std::endl;
35 while(it != tj->
end())
49 std::cout <<
"Date and Time: " << it.
getTime()->
toString() << std::endl;
57 for(std::size_t i=0; i<input.size(); ++i)
59 std::cout <<
"Printing information about the trajectory " << i <<
" :" << std::endl;
68 std::cout <<
"Trajectory is NULL!" << std::endl;
72 std::cout <<
"Trajectory id: " << tj->
getId() << std::endl;
74 std::cout <<
"Trajectory temporal extent: " << tj->
getTemporalExtent()->toString() << std::endl;
This file contains include headers for the Data Type module of TerraLib.
te::gm::Geometry * getGeometry() const
It returns the geometry pointed by the internal cursor.
A struct to represent a patch or a continuous piece of a trajectory.
TrajectoryIterator end() const
It returns an iterator that points to the end of the trajectory.
TrajectoryIterator end() const
Examples on how to load/manipulate st types.
void PrintTrajectory(boost::ptr_vector< te::st::Trajectory > &input)
It prints all observations of the trajectory (PrintTrajectory.cpp)
virtual std::string toString() const =0
It returns the data value in a string notation.
std::string getId() const
It returns the trajectory id.
void PrintTrajectoryInfo(boost::ptr_vector< te::st::Trajectory > &input)
It prints information about the trajectory: its spatial and temporal extent (PrintTrajectory.cpp)
std::unique_ptr< te::dt::DateTimePeriod > getTemporalExtent() const
It returns the temporal extent of the trajectory observations.
te::gm::Envelope getSpatialExtent() const
It returns the spatial extent of the trajectory observations.
te::dt::DateTime * getTime() const
It returns the datetime pointed by the internal cursor.
TrajectoryIterator begin() const
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
std::string toString() const
It returns the data value in a WKT representation.
This file contains include headers for the TerraLib ST module.
void PrintTrajectoryPatch(te::st::TrajectoryPatch &tjPatch)
A class to represent trajectory.
This file contains include headers for the Vector Geometry model of TerraLib.
A class to traverse the observations of a trajectory.
This file contains include headers for the Data Access module of TerraLib.
TrajectoryIterator begin() const
It returns an iterator that points to the first observation of the trajectory.