14 #include <boost/uuid/random_generator.hpp> 15 #include <boost/uuid/uuid_io.hpp> 22 std::vector<te::st::TimeSeries*> series;
25 std::string connInfo(
"pgsql://postgres:postgres@localhost:5432/timeseries");
42 timeSeriesDS->moveBeforeFirst();
44 for(
size_t i = 0; i < series.size(); i++)
46 output.push_back(series[i]);
49 catch(
const std::exception& e)
51 std::cout << std::endl <<
"An exception has occurred in TimeSeriesExamplesFromKML: " << e.what() << std::endl;
55 std::cout << std::endl <<
"An unexpected exception has occurred in TimeSeriesExamplesFromKML!" << std::endl;
This file contains include headers for the Data Type module of TerraLib.
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contains the time series observations.
void setAccessDriver(const std::string &d)
Examples on how to load/manipulate st types.
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)
static NearestValueAtTimeInterp & getInstance()
It returns a reference to the singleton instance.
An Envelope defines a 2D rectangular region.
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.
void LoadTimeSeriesDataSetFromPGIS(boost::ptr_vector< te::st::TimeSeries > &output)
It loads a Time Series data set from a PostGIS database.
A class that contains infos about a DataSet that contains observations of one or more time series...
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.
std::string getIdPropName() const
It returns the name of the property that contains identifiers that groups observations.
void setTitle(const std::string &title)