18 std::vector<std::string> sequence;
19 sequence.push_back(
"sp_cities");
20 sequence.push_back(
"ST_Union");
22 std::string connInfo(
"ppgsql://postgres:postgres@localhost:5432/TerraView5?PG_CONNECT_TIMEOUT=4&PG_CLIENT_ENCODING=UTF-8");
27 std::string inDsetName =
"overlaps";
28 if (!srcDs->dataSetExists(inDsetName))
30 std::cout <<
"Input dataset not found: " << inDsetName << std::endl;
34 std::string outDSet =
"result";
39 if (outDsource->dataSetExists(outDSet))
41 std::cout <<
"A dataset with the same requested output dataset name already exists: " << outDSet << std::endl;
45 std::unique_ptr<te::da::DataSet> inDset = srcDs->getDataSet(inDsetName);
46 std::unique_ptr<te::da::DataSetType> inDsetType = srcDs->getDataSetType(inDsetName);
static std::unique_ptr< DataSource > make(const std::string &driver, const te::core::URI &connInfo)
boost::shared_ptr< DataSource > DataSourcePtr
bool SequenceOperations()
A factory for data sources.
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the Data Access module of TerraLib.