15 for(std::size_t i=0; i<input.size(); ++i)
17 std::cout <<
"Printing observations of the time series " << i <<
" :" << std::endl;
26 std::cout <<
"Time series is NULL!" << std::endl;
32 std::cout <<
"Time series observations: " << std::endl;
35 while(it != ts->
end())
37 std::cout <<
"Date and time: " << it.
getTime()->
toString() << std::endl;
38 std::cout <<
"Value: " << it.
getValue()->
toString() << std::endl << std::endl;
45 for(std::size_t i=0; i<input.size(); ++i)
47 std::cout <<
"Printing information about the time series " << i <<
" :" << std::endl;
56 std::cout <<
"Time series is NULL!" << std::endl;
60 std::cout <<
"Time series id: " << ts->
getId() << std::endl;
61 std::cout <<
"Time series temporal extent: " << ts->
getTemporalExtent()->toString() << std::endl;
66 std::cout <<
"Time series value extent: (" << minValue <<
"," << maxValue <<
")" << std::endl;
70 std::cout <<
"Time series location: " << gm->
toString() << std::endl;
This file contains include headers for the Data Type module of TerraLib.
std::string getId() const
It returns the time series identifier.
A class to traverse the observations of a TimeSeries.
void PrintTimeSeries(boost::ptr_vector< te::st::TimeSeries > &input)
It prints all observations of the time series (PrintTimeSeries.cpp)
te::dt::DateTime * getTime() const
It returns the datetime pointed by the internal cursor.
void getValueExtent(double &minValue, double &maxValue)
It returns the minimal and maximun values of the time series.
Examples on how to load/manipulate st types.
virtual std::string toString() const =0
It returns the data value in a string notation.
std::unique_ptr< te::dt::DateTimePeriod > getTemporalExtent() const
It returns the temporal extent or range of the time series.
void PrintTimeSeriesInfo(boost::ptr_vector< te::st::TimeSeries > &input)
It prints information about the time series: its spatial and temporal extent (PrintTimeSeries.cpp)
te::gm::Geometry * getLocation() const
It returns the time series location.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A class to represent time series.
std::string toString() const
It returns the data value in a WKT representation.
This file contains include headers for the TerraLib ST module.
This file contains include headers for the Vector Geometry model of TerraLib.
te::dt::AbstractData * getValue() const
It returns the attribute value pointed by the internal cursor.
This file contains include headers for the Data Access module of TerraLib.
TimeSeriesIterator end() const
It returns an iterator that points to the end of the time series.
TimeSeriesIterator begin() const
It returns an iterator that points to the first observation of the time series.