27 #include "../../common/Translator.h"
28 #include "../../common/StringUtils.h"
29 #include "../../geometry/Envelope.h"
30 #include "../../geometry/GeometryProperty.h"
31 #include "../../raster/RasterProperty.h"
32 #include "../dataset/DataSet.h"
33 #include "../dataset/DataSetAdapter.h"
34 #include "../dataset/DataSetType.h"
35 #include "../dataset/DataSetTypeConverter.h"
36 #include "../dataset/ObjectId.h"
37 #include "../dataset/ObjectIdSet.h"
38 #include "../dataset/PrimaryKey.h"
39 #include "../dataset/UniqueKey.h"
40 #include "../datasource/DataSourceInfoManager.h"
41 #include "../datasource/DataSourceManager.h"
42 #include "../query/DataSetName.h"
43 #include "../query/Field.h"
44 #include "../query/Fields.h"
45 #include "../query/LiteralEnvelope.h"
46 #include "../query/LiteralGeom.h"
47 #include "../query/PropertyName.h"
48 #include "../query/ST_Contains.h"
49 #include "../query/ST_Crosses.h"
50 #include "../query/ST_Disjoint.h"
51 #include "../query/ST_Equals.h"
52 #include "../query/ST_Intersects.h"
53 #include "../query/ST_Overlaps.h"
54 #include "../query/ST_Touches.h"
55 #include "../query/ST_Within.h"
56 #include "../query/Where.h"
58 #include "../Exception.h"
66 #include <boost/algorithm/string.hpp>
67 #include <boost/math/special_functions/round.hpp>
68 #include <boost/lexical_cast.hpp>
73 assert(!datasourceId.empty());
78 if(datasource.get() == 0)
81 if(dataset->
size() == 0)
83 boost::ptr_vector<te::dt::Property> properties = datasource->getProperties(dataset->
getName());
85 dataset->
add(properties);
123 assert(!datasourceId.empty());
128 if(datasource.get() == 0)
131 boost::ptr_vector<te::dt::Property> properties = datasource->getProperties(dataset->
getName());
133 dataset->
add(properties);
137 const std::string& propertyName,
138 const std::string& datasourceId)
140 assert(!datasourceId.empty());
145 if(datasource.get() == 0)
146 throw Exception(
TE_TR(
"Could not retrieve data source in order to search for a property extent!"));
148 std::auto_ptr<te::gm::Envelope> mbr(datasource->getExtent(datasetName, propertyName));
150 return mbr.release();
155 assert(!datasourceId.empty());
161 datasetNames = ds->getDataSetNames();
193 return "Regular File";
202 assert(!datasourceId.empty());
207 if(datasource.get() == 0)
210 return datasource->hasDataSets();
215 assert(!datasourceId.empty());
220 if(datasource.get() == 0)
223 std::auto_ptr<DataSet> dataset(datasource->getDataSet(name));
225 return dataset.release();
230 assert(!datasourceId.empty());
233 if(datasource.get() == 0)
236 std::auto_ptr<DataSetType> datasettype(datasource->getDataSetType(name));
238 return datasettype.release();
264 assert(!datasourceId.empty());
268 if(datasource.get() == 0)
272 if(dsinfo.get() == 0)
273 throw Exception(
TE_TR(
"Could not find data source!"));
277 datasource->setConnectionInfo(dsinfo->getConnInfo());
280 if(opened && !datasource->isOpened())
290 std::vector<size_t> ppos;
291 std::vector<int> ptypes;
292 std::vector<std::string> pnames;
293 std::vector<size_t>::iterator it;
298 for(it=ppos.begin(); it!=ppos.end(); ++it)
301 ptypes.push_back(prop->
getType());
302 pnames.push_back(prop->
getName());
305 for(
size_t i=0; i<ppos.size(); i++)
317 const std::vector<te::dt::Property*>& pkProperties = pk->
getProperties();
319 for(std::size_t i = 0; i < pkProperties.size(); ++i)
320 pnames.push_back(pkProperties[i]->getName());
332 const std::vector<te::dt::Property*>& ukProperties = uk->
getProperties();
334 for(std::size_t j = 0; j < ukProperties.size(); ++j)
335 pnames.push_back(ukProperties[j]->getName());
343 const std::vector<te::dt::Property*>& props = type->
getProperties();
344 for(std::size_t i = 0; i < props.size(); ++i)
351 pnames.push_back(props[i]->getName());
358 std::map<std::string, std::pair<int, int> > dsNames;
359 std::map<std::string, std::pair<int, int> >::const_iterator dsNamesIt;
360 std::vector<te::dt::Property*> props;
368 for(
size_t i = 0; i < props.size(); ++i)
377 for(dsNamesIt = dsNames.begin(); dsNamesIt != dsNames.end(); ++dsNamesIt)
379 if((*dsNamesIt).second.first == 0)
381 dsProps.first = (*dsNamesIt).first;
382 dsProps.second = (*dsNamesIt).second.second;
392 boost::ptr_vector<te::dt::AbstractData> curValues;
394 for(
int i = 0; i < dsProps.second; ++i)
396 res = res + curValues[i].toString();
405 std::vector<std::string> oidprops;
408 for(std::size_t i = 0; i < oidprops.size(); ++i)
417 std::vector<std::string> oidprops;
426 assert(!names.empty());
430 for(std::size_t i = 0; i < names.size(); ++i)
434 if(pos == std::string::npos)
435 throw Exception(
TE_TR(
"Primary Key ") + names[i] +
TE_TR(
" not found!"));
449 assert(!names.empty());
453 for(std::size_t i = 0; i < names.size(); ++i)
455 if(!dataset->
isNull(names[i]))
468 for(std::size_t i = 0; i != np; ++i)
478 return std::string::npos;
487 for(std::size_t i = 0; i != np; ++i)
497 return std::string::npos;
506 for(std::size_t i = 0; i != np; ++i)
510 if(boost::iequals(pname, name))
514 return std::string::npos;
523 for(std::size_t i = 0; i != np; ++i)
527 if(boost::iequals(pname, name))
531 return std::string::npos;
538 const std::size_t np = dt->
size();
540 for(std::size_t i = 0; i != np; ++i)
599 std::vector<std::string>& pnames,
600 std::vector<int>& ptypes)
604 for(std::size_t i = 0; i != dt->
size(); ++i)
608 pnames.push_back(p->
getName());
609 ptypes.push_back(p->
getType());
614 std::vector<std::string>& pnames,
615 std::vector<int>& ptypes)
628 std::map<std::string, std::string> options;
630 Create(ds, dt, d, options, limit);
636 const std::map<std::string, std::string>& options,
653 const std::vector<AttributeConverter>& funcs = converter->
getConverters();
655 assert((type->
size() == indexes.size()) && (type->
size() == funcs.size()));
659 for(std::size_t i = 0; i < type->
size(); ++i)
672 std::string valueNames(
"(");
674 const std::size_t np = dt->
size();
676 for(std::size_t i = 0; i != np; ++i)
691 std::string valueNames(
"(");
695 for(std::size_t i = 0; i != np; ++i)
710 std::vector<int> properties;
714 for(std::size_t i = 0; i != np; ++i)
727 std::auto_ptr<te::da::Expression> op;
771 std::auto_ptr<Fields> fields(
new Fields);
773 for(std::size_t i = 0; i < properties.size(); ++i)
784 std::auto_ptr<te::da::Select>
te::da::BuildSelect(
const std::string& dsname,
const std::string& propertyName)
786 std::vector<std::string> p;
787 p.push_back(propertyName);
792 std::auto_ptr<te::da::Select>
te::da::BuildSelect(
const std::string& dsname,
const std::vector<std::string>& properties)
795 std::auto_ptr<Fields> fields =
BuildFields(properties);
803 std::auto_ptr<Select> select(
new Select(fields.release(), from));
809 const std::vector<std::string>& properties,
810 const std::string& geometryProperty,
816 std::auto_ptr<Fields> fields =
BuildFields(properties);
819 fields->push_back(
new Field(geometryProperty));
830 std::auto_ptr<Expression> spatialOp =
BuildSpatialOp(geomPropertyName, lenv, r);
836 std::auto_ptr<Select> select(
new Select(fields.release(), from, filter));
842 const std::vector<std::string>& properties,
843 const std::string& geometryProperty,
848 std::auto_ptr<Fields> fields =
BuildFields(properties);
851 fields->push_back(
new Field(geometryProperty));
862 std::auto_ptr<Expression> spatialOp =
BuildSpatialOp(geomPropertyName, lgeom, r);
868 std::auto_ptr<Select> select(
new Select(fields.release(), from, filter));
874 const std::vector<std::string>& properties,
885 std::auto_ptr<Fields> fields =
BuildFields(properties);
889 for(std::size_t i = 0; i < oidsProperties.size(); ++i)
891 const std::string& oidPropertyName = oidsProperties[i];
893 bool alreadyIncluded =
false;
895 for(std::size_t j = 0; j < properties.size(); ++j)
897 if(oidPropertyName == properties[j])
899 alreadyIncluded =
true;
905 fields->push_back(
new Field(oidPropertyName));
911 from->push_back(fromItem);
914 std::auto_ptr<Select> select(
new Select(fields.release(), from, filter));
941 if(name[0] >= 0x30 && name[0] <= 0x39)
943 invalidChar =
"begin with a numeric character\n";
948 invalidChar +=
"begin with a invalid character: underscore _\n";
952 int ff = name.find(
" ");
955 invalidChar +=
"invalid character: blank space\n";
962 invalidChar +=
"invalid character: dot '.'\n";
969 invalidChar +=
"invalid character: mathematical symbol '*'\n";
976 invalidChar +=
"invalid character: mathematical symbol '/'\n";
983 invalidChar +=
"invalid character: parentheses '('\n";
990 invalidChar +=
"invalid character: parentheses ')'\n";
997 invalidChar +=
"invalid character: mathematical symbol '-'\n";
1001 ff = name.find(
"+");
1004 invalidChar +=
"invalid character: mathematical symbol '+'\n";
1008 ff = name.find(
"%");
1011 invalidChar +=
"invalid character: mathematical symbol '%'\n";
1015 ff = name.find(
">");
1018 invalidChar +=
"invalid character: mathematical symbol '>'\n";
1022 ff = name.find(
"<");
1025 invalidChar +=
"invalid character: mathematical symbol '<'\n";
1029 ff = name.find(
"&");
1032 invalidChar +=
"invalid character: mathematical symbol '&'\n";
1036 ff = name.find(
"$");
1039 invalidChar +=
"invalid symbol: '$'\n";
1043 ff = name.find(
";");
1046 invalidChar +=
"invalid symbol: ';'\n";
1050 ff = name.find(
"=");
1053 invalidChar +=
"invalid symbol: '='\n";
1057 ff = name.find(
"!");
1060 invalidChar +=
"invalid symbol: '!'\n";
1064 ff = name.find(
"?");
1067 invalidChar +=
"invalid symbol: '?'\n";
1071 ff = name.find(
"#");
1074 invalidChar +=
"invalid symbol: '#'\n";
1078 ff = name.find(
"¨");
1081 invalidChar +=
"invalid symbol: '¨'\n";
1085 ff = name.find(
",");
1088 invalidChar +=
"invalid symbol: ','\n";
1092 ff = name.find(
"/");
1095 invalidChar +=
"invalid symbol: '/'\n";
1099 ff = name.find(
"@");
1102 invalidChar +=
"invalid symbol: '@'\n";
1106 ff = name.find(
"{");
1109 invalidChar +=
"invalid symbol: '{'\n";
1113 ff = name.find(
"}");
1116 invalidChar +=
"invalid symbol: '}'\n";
1120 std::vector<std::string> vecInvalidChars;
1121 vecInvalidChars.push_back(
"ª");
1122 vecInvalidChars.push_back(
"º");
1123 vecInvalidChars.push_back(
"¹");
1124 vecInvalidChars.push_back(
"²");
1125 vecInvalidChars.push_back(
"³");
1127 for(
unsigned int i = 0; i < vecInvalidChars.size(); ++i)
1129 std::string invalidItem = vecInvalidChars[i];
1131 ff = name.find(invalidItem);
1134 invalidChar +=
"invalid symbol: '" + invalidItem +
"'\n";
1139 for(
unsigned int i = 0; i < name.size(); ++i)
1141 char value = name[i];
1144 invalidChar +=
"invalid symbol\n";
1150 if(u==
"OR" || u==
"AND" || u==
"NOT" || u==
"LIKE" ||
1151 u==
"SELECT" || u==
"FROM" || u==
"UPDATE" || u==
"DELETE" ||u==
"BY" || u==
"GROUP" || u==
"ORDER" ||
1152 u==
"DROP" || u==
"INTO" || u==
"VALUE" || u==
"IN" || u==
"ASC" || u==
"DESC"|| u==
"COUNT" || u==
"JOIN" ||
1153 u==
"LEFT" || u==
"RIGHT" || u==
"INNER" || u==
"UNION" || u==
"IS" || u==
"NULL" || u==
"WHERE" ||
1154 u==
"BETWEEN" || u==
"DISTINCT" || u==
"TRY" || u==
"IT" || u==
"INSERT" || u==
"ALIASES" || u==
"CREATE" ||
1155 u==
"ALTER" || u==
"TABLE" || u==
"INDEX" || u==
"ALL" || u==
"HAVING" || u==
"EXEC" || u==
"SET" ||
1156 u ==
"AVG" || u ==
"MAX" || u ==
"MIN" || u ==
"SUM" || u ==
"FILTER" || u ==
"OFFSET" || u ==
"LENGHT" )
1158 invalidChar +=
"invalid name: using reserved word " + u +
"\n";
1164 if( (n==
"zone") || (n==
"comp") || (n==
"no") || (n==
"local") ||
1165 (n==
"level") || (n==
"long"))
1167 invalidChar +=
"invalid name: using reserved word " + n +
"\n";
1182 if(props.size() > 1)
1185 while(++pksize < props.size())
1187 if(props[pksize-1]->getDatasetName() != props[pksize]->getDatasetName())
1198 double size = values.size();
1202 double d = 0, v = 0;
1203 std::vector<double>::const_iterator it;
1207 it = values.begin();
1210 while(it != values.end())
1216 else if(sumary ==
"MAX")
1218 it = values.begin();
1221 while(it != values.end())
1227 else if(sumary ==
"SUM")
1230 for(it = values.begin(); it != values.end(); ++it)
1233 else if(sumary ==
"AVERAGE")
1236 for(it = values.begin(); it != values.end(); ++it)
1240 else if(sumary ==
"STDDEV")
1246 for(it = values.begin(); it != values.end(); ++it)
1253 v = (v - m) / (size - 1);
1257 else if(sumary ==
"VARIANCE")
1263 for(it = values.begin(); it != values.end(); ++it)
1270 v = (v - m) / (size - 1);
1273 else if(sumary ==
"MEDIAN")
1279 std::stable_sort(values.begin(), values.end());
1280 size_t meio = (size_t)size / 2;
1283 if((
size_t)size%2 == 0)
1284 v = (v + values[meio-1]) / 2.;
1287 else if(sumary ==
"MODE")
1296 double size = values.size();
1301 std::vector<std::string>::const_iterator it;
1305 it = values.begin();
1308 while(it != values.end())
1314 else if(sumary ==
"MAX")
1316 it = values.begin();
1319 while(it != values.end())
1331 double v = pow(10., (
int)precision);
1332 double ret = boost::math::round(value * v);
1343 return (
double)ds->
getChar(idx);
1373 return boost::lexical_cast<
double>(ds->
getNumeric(idx));
TEDATAACCESSEXPORT DataSourcePtr GetDataSource(const std::string &datasourceId, const bool opened=true)
Search for a data source with the informed id in the DataSourceManager.
Property * getProperty(std::size_t i) const
It returns the i-th property.
TEDATAACCESSEXPORT te::rst::RasterProperty * GetFirstRasterProperty(const DataSetType *dt)
virtual boost::int16_t getInt16(std::size_t i) const =0
Method for retrieving a 16-bit integer attribute value (2 bytes long).
TEDATAACCESSEXPORT te::gm::Envelope * GetExtent(const std::string &datasetName, const std::string &propertyName, const std::string &datasourceId)
TEDATAACCESSEXPORT void LoadProperties(te::da::DataSetType *dataset, const std::string &datasourceId)
Utility functions for the data access module.
const std::vector< std::vector< std::size_t > > & getConvertedPropertyIndexes() const
An abstract class that models a source of data in a query.
The Field class can be used to model an expression that takes part of the output items of a SELECT...
TEDATAACCESSEXPORT void GetEmptyOIDSet(const DataSetType *type, ObjectIdSet *&set)
Returns an empty ObjectIdSet, with the definitions of fields that compose it.
virtual boost::int32_t getInt32(std::size_t i) const =0
Method for retrieving a 32-bit integer attribute value (4 bytes long).
TEDATAACCESSEXPORT ObjectId * GenerateOID(DataSet *dataset, const std::vector< std::string > &names)
Spatial intersects operator.
A class that models the name of a dataset used in a From clause.
boost::shared_ptr< DataSource > DataSourcePtr
std::string Convert2LCase(const std::string &value)
It converts a string to lower case.
TEDATAACCESSEXPORT std::auto_ptr< Select > BuildSelect(const std::string &dsname)
virtual char getChar(std::size_t i) const =0
Method for retrieving a signed character attribute value (1 byte long).
TEDATAACCESSEXPORT bool HasLinkedTable(te::da::DataSetType *type)
It checks if the datasettype has a linked table.
TEDATAACCESSEXPORT std::auto_ptr< Expression > BuildSpatialOp(Expression *e1, Expression *e2, te::gm::SpatialRelation r)
A class that models the name of any property of an object.
A class that models the description of a dataset.
TEDATAACCESSEXPORT std::string GetDataSetCategoryName(int category)
std::size_t getNumberOfUniqueKeys() const
It returns the number of unique keys defined for the dataset type.
virtual boost::int64_t getInt64(std::size_t i) const =0
Method for retrieving a 64-bit integer attribute value (8 bytes long).
virtual void createDataSet(DataSetType *dt, const std::map< std::string, std::string > &options)
It creates the dataset schema definition in the target data source.
DataSetType * getResult() const
TEDATAACCESSEXPORT std::size_t GetPropertyPos(const DataSet *dataset, const std::string &name)
const boost::ptr_vector< te::dt::AbstractData > & getValue() const
It gets the properties values used to uniquely identify a data set element.
virtual void add(const std::string &datasetName, DataSet *d, const std::map< std::string, std::string > &options, std::size_t limit=0)
It adds data items to the dataset in the data source.
PrimaryKey * getPrimaryKey() const
It returns the primary key associated to the dataset type.
std::string Convert2UCase(const std::string &value)
It converts a string to upper case.
SpatialRelation
Spatial relations between geometric objects.
TEDATAACCESSEXPORT std::string GetSQLValueNames(const DataSetType *dt)
TEDATAACCESSEXPORT double GetValueAsDouble(const te::da::DataSet *ds, const size_t pos)
It gets the value as double.
void addValue(te::dt::AbstractData *data)
It adds a property value to uniquely identify a data set element.
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
void addProperty(const std::string &name, std::size_t pos, int type)
It adds a property that will be used to generate the unique ids.
virtual std::string getNumeric(std::size_t i) const =0
Method for retrieving a numeric attribute value.
#define TE_TR(message)
It marks a string in order to get translated.
Spatial crosses operator.
TEDATAACCESSEXPORT void GetOIDDatasetProps(const DataSetType *type, std::pair< std::string, int > &dsProps)
It models a property definition.
TEDATAACCESSEXPORT int GetPropertyIndex(te::da::DataSet *dataSet, const std::string propName)
virtual double getDouble(std::size_t i) const =0
Method for retrieving a double attribute value.
This is an abstract class that models a query expression.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that take part of the primary key.
An converter for DataSetType.
const std::vector< AttributeConverter > & getConverters() const
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
TEDATAACCESSEXPORT std::size_t GetFirstSpatialPropertyPos(const te::da::DataSet *dataset)
It returns the first dataset spatial property or NULL if none is found.
const std::vector< Property * > & getProperties() const
It returns the list of properties describing the CompositeProperty.
static DataSourceManager & getInstance()
It returns a reference to the singleton instance.
virtual float getFloat(std::size_t i) const =0
Method for retrieving a float attribute value.
Spatial overlaps operator.
An Envelope defines a 2D rectangular region.
This class represents a set of unique ids created in the same context. i.e. from the same data set...
virtual std::string getPropertyName(std::size_t i) const =0
It returns the property name at position pos.
TEDATAACCESSEXPORT void Create(DataSource *ds, DataSetType *dt, DataSet *d, std::size_t limit=0)
It creates the dataset definition in a data source and then fill it with data from the input dataset...
Spatial touches operator.
virtual bool isNull(std::size_t i) const =0
It checks if the attribute value is NULL.
This class represents an unique id for a data set element.
boost::ptr_vector< Field > Fields
Fields is just a boost::ptr_vector of Field pointers.
TEDATAACCESSEXPORT DataSet * GetDataSet(const std::string &name, const std::string &datasourceId)
TEDATAACCESSEXPORT bool HasDataSet(const std::string &datasourceId)
A class that can be used to model a filter expression that can be applied to a query.
TEDATAACCESSEXPORT double GetSummarizedValue(std::vector< double > &values, const std::string &summary)
It gets the summarized value.
It describes a unique key (uk) constraint.
std::size_t size() const
It returns the number of properties of the CompositeProperty.
TEDATAACCESSEXPORT ObjectIdSet * GenerateOIDSet(DataSet *dataset, const DataSetType *type)
TEDATAACCESSEXPORT void GetDataSetNames(std::vector< std::string > &datasetNames, const std::string &datasourceId)
TEDATAACCESSEXPORT std::vector< int > GetPropertyDataTypes(const te::da::DataSet *dataset)
virtual std::size_t getNumProperties() const =0
It returns the number of properties that composes an item of the dataset.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A Select models a query to be used when retrieving data from a DataSource.
TEDATAACCESSEXPORT double Round(const double &value, const size_t &precision)
It gets the round value.
void add(const std::string &newPropertyName, int newPropertyType, const std::vector< std::size_t > &adaptedPropertyPos, AttributeConverter conv)
boost::ptr_vector< FromItem > From
It models the FROM clause for a query.
Spatial contains operator.
int getType() const
It returns the property data type.
void add(Constraint *c)
It adds a new constraint.
A dataset is the unit of information manipulated by the data access module of TerraLib.
const std::vector< te::dt::Property * > & getProperties() const
It returns the properties that form the unique key.
Property * findFirstPropertyOfType(const int t) const
returns the first property of the given data type. Caller doesn't take ownership of the returned poin...
TEDATAACCESSEXPORT void GetOIDPropertyPos(const DataSetType *type, std::vector< std::size_t > &ppos)
It describes a primary key (pk) constraint.
TEDATAACCESSEXPORT bool IsValidName(const std::string &name, std::string &invalidChar)
It checks if the name is not valid as the existence of invalid characters, reserved words...
A class that models a literal for Envelope values.
TEDATAACCESSEXPORT std::string getBasePkey(te::da::ObjectId *oid, std::pair< std::string, int > &dsProps)
const std::vector< std::string > & getPropertyNames() const
It returns the property names used to generated the oids.
std::size_t getPropertyPosition(const std::string &name) const
It returns the property position based on its name.
TEDATAACCESSEXPORT void GetOIDPropertyNames(const DataSetType *type, std::vector< std::string > &pnames)
TEDATAACCESSEXPORT DataSetType * GetDataSetType(const std::string &name, const std::string &datasourceId)
Spatial Disjoint operator.
TEDATAACCESSEXPORT std::size_t GetFirstPropertyPos(const te::da::DataSet *dataset, int datatype)
virtual unsigned char getUChar(std::size_t i) const =0
Method for retrieving an unsigned character attribute value (1 byte long).
const std::string & getDatasetName() const
It returns the name of the propery's dataset.
TEDATAACCESSEXPORT te::gm::GeometryProperty * GetFirstGeomProperty(const DataSetType *dt)
TEDATAACCESSEXPORT DataSetAdapter * CreateAdapter(DataSet *ds, DataSetTypeConverter *converter, bool isOwner=false)
virtual int getPropertyDataType(std::size_t i) const =0
It returns the underlying data type of the property at position pos.
TEDATAACCESSEXPORT void LoadFull(te::da::DataSetType *dataset, const std::string &datasourceId)
TEDATAACCESSEXPORT std::auto_ptr< Fields > BuildFields(const std::vector< std::string > &properties)
Expression * getExpression() const
It returns the expression that can be used to retrieve the data set that contains the all indentified...
TEDATAACCESSEXPORT te::dt::Property * GetFirstSpatialProperty(const DataSetType *dt)
UniqueKey * getUniqueKey(std::size_t i) const
It returns the i-th unique key.
virtual std::auto_ptr< te::dt::AbstractData > getValue(std::size_t i) const
Method for retrieving any other type of data value stored in the data source.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr
TEDATAACCESSEXPORT void GetPropertyInfo(const DataSetType *const dt, std::vector< std::string > &pnames, std::vector< int > &ptypes)
A class that models a literal for Geometry values.
const std::string & getName() const
It returns the property name.