38 std::vector<int>::const_iterator it;
39 for(it = indexes.begin(); it != indexes.end(); ++it)
42 result.erase(--result.end());
50 std::string connInfo(
"file://");
51 std::string data_dir = TERRALIB_DATA_DIR;
52 connInfo += data_dir +
"/shape/munic_2001.shp";
57 std::unique_ptr<te::da::DataSourceTransactor> ogrTransactor = dsOGR->getTransactor();
59 std::unique_ptr<te::da::DataSet> ogrDataSet = dsOGR->getDataSet(
"munic_2001");
60 std::unique_ptr<te::da::DataSetType> dtype = dsOGR->getDataSetType(
"munic_2001");
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)
SimpleData< std::string, STRING_TYPE > String
An atomic property like an integer or double.
te::dt::AbstractData * TupleToStringUpperCaseConverter(te::da::DataSet *dataset, const std::vector< int > &indexes, int)
te::dt::Property * CreateSimpleProperty(const std::string &name, int type)
std::string Convert2UCase(const std::string &value)
It converts a string to upper case.
It models a property definition.
Examples on how to access/manipulate DataSources in TerraLib.
virtual std::string getAsString(std::size_t i, int precision=0) const
Method for retrieving a data value as a string plain representation.
A base class for values that can be retrieved from the data access module.
The type for string types: FIXED_STRING, VAR_STRING or STRING.
A dataset is the unit of information manipulated by the data access module of TerraLib.
void DataSetAdapter()
DataSet Adapter example.
This file contains include headers for the TerraLib Common Runtime 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.
te::dt::Property * CreateStringProperty(const std::string &name)
te::dt::Property * CreateGeometryProperty(const std::string &name)