TimeSeriesExamples.cpp
Go to the documentation of this file.
1 // Examples
2 #include "STExamples.h"
3 
4 // TerraLib
5 #include <terralib/common.h>
6 #include <terralib/dataaccess.h>
7 #include <terralib/geometry.h>
8 #include <terralib/st.h>
9 
10 // STL
11 #include <iostream>
12 
14 {
15  try
16  {
17  //Output container
18  boost::ptr_vector<te::st::TimeSeries> output;
19 
20  //Load the Time Series from a PostGIS database
22 
23  //Print the Time Series data set info: spatial and temporal extent
24  PrintTimeSeries(output);
25  }
26 
27  catch(const std::exception& e)
28  {
29  std::cout << std::endl << "An exception has occurred in TimeSeriesExamples: " << e.what() << std::endl;
30  }
31  catch(...)
32  {
33  std::cout << std::endl << "An unexpected exception has occurred in TimeSeriesExamples!" << std::endl;
34  }
35 }
36 
void PrintTimeSeries(boost::ptr_vector< te::st::TimeSeries > &input)
It prints all observations of the time series (PrintTimeSeries.cpp)
void TimeSeriesExamples()
It groups the examples with TimeSeries (TimeSeriesExamples.cpp).
Examples on how to load/manipulate st types.
void LoadTimeSeriesDataSetFromPGIS(boost::ptr_vector< te::st::TimeSeries > &output)
It loads a Time Series data set from a PostGIS database.
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the TerraLib ST module.
This file contains include headers for the Vector Geometry model of TerraLib.
This file contains include headers for the Data Access module of TerraLib.