26 const std::string connInfo(
"file://" TERRALIB_DATA_DIR
"/st/coverage/angra_city.shp");
30 std::unique_ptr<te::da::DataSet> dSet = ds->getDataSet(
"angra_city");
31 std::unique_ptr<te::gm::Geometry> geom;
36 geom = dSet->getGeometry(geomPos);
44 std::unique_ptr<te::st::TimeSeries> result = cvs->getTimeSeries(point);
50 catch(
const std::exception& e)
52 std::cout << std::endl <<
"An exception has occurred in CoverageExamples: " << e.what() << std::endl;
56 std::cout << std::endl <<
"An unexpected exception has occurred in CoverageExamples!" << std::endl;
This file contains include headers for the Data Type module of TerraLib.
static std::unique_ptr< DataSource > make(const std::string &driver, const te::core::URI &connInfo)
void PrintTimeSeries(boost::ptr_vector< te::st::TimeSeries > &input)
It prints all observations of the time series (PrintTimeSeries.cpp)
An utility struct for representing 2D coordinates.
static te::dt::Date ds(2010, 01, 01)
Examples on how to load/manipulate st types.
Coord2D getCenter() const
It returns the rectangle's center coordinate.
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
void PrintCoverageSeriesInfo(te::st::CoverageSeries *output)
It prints information about a coverage series (PrintCoverageSeries.cpp)
void CoverageSeriesExamples()
It contains examples about coverage.
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the TerraLib ST module.
TEDATAACCESSEXPORT std::size_t GetFirstPropertyPos(const te::da::DataSet *dataset, int datatype)
This file contains include headers for the Vector Geometry model of TerraLib.
This file contains include headers for the Data Access module of TerraLib.
std::unique_ptr< te::st::CoverageSeries > LoadCoverageSeriesFromGeotif()
It loads a coverage series from a set of geotif files.