AddingProperty.cpp
Go to the documentation of this file.
1 // Examples
2 #include "DataAccessExamples.h"
3 
4 te::dt::SimpleProperty* AddProperty(const std::string& datasetname,
6 {
8 
9  transactor->addProperty(datasetname, p);
10 
11  return p;
12 }
13 
te::dt::SimpleProperty * AddProperty(const std::string &datasetname, te::da::DataSourceTransactor *transactor)
An atomic property like an integer or double.
virtual void addProperty(const std::string &datasetName, te::dt::Property *p)=0
It adds a new property to the dataset schema.
Examples on how to access/manipulate DataSources in TerraLib.
te::gm::Polygon * p
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...