27 #include "../../datatype/DataConverterManager.h" 
   28 #include "../../datatype/SimpleData.h" 
   29 #include "../../geometry/Point.h" 
   30 #include "../../geometry/PointM.h" 
   31 #include "../../geometry/PointZ.h" 
   32 #include "../../geometry/PointZM.h" 
   42   assert(indexes.size() == 1);
 
   44   if(dataset->
isNull(indexes[0]))
 
   48   std::auto_ptr<te::dt::AbstractData> data(dataset->
getValue(indexes[0]));
 
   53   if(srcType == dstType) 
 
   54     return data.release();
 
   61   assert(convertedData);
 
   69   assert(indexes.size() == 2);
 
   71   double x = dataset->
getDouble(indexes[0]);
 
   72   double y = dataset->
getDouble(indexes[1]);
 
   80   assert(indexes.size() == 3);
 
   82   double x = dataset->
getDouble(indexes[0]);
 
   83   double y = dataset->
getDouble(indexes[1]);
 
   84   double z = dataset->
getDouble(indexes[2]);
 
   92   assert(indexes.size() == 3);
 
   94   double x = dataset->
getDouble(indexes[0]);
 
   95   double y = dataset->
getDouble(indexes[1]);
 
   96   double m = dataset->
getDouble(indexes[2]);
 
  104   assert(indexes.size() == 4);
 
  106   double x = dataset->
getDouble(indexes[0]);
 
  107   double y = dataset->
getDouble(indexes[1]);
 
  108   double z = dataset->
getDouble(indexes[2]);
 
  109   double m = dataset->
getDouble(indexes[3]);
 
  117   assert(indexes.size() == 1);
 
  127   assert(indexes.size() == 1);
 
  137   assert(indexes.size() == 1);
 
  147   assert(indexes.size() == 1);
 
  158   std::string result = 
"[ ";
 
  160   std::vector<std::size_t>::const_iterator it;
 
  161   for(it = indexes.begin(); it != indexes.end(); ++it)
 
virtual double getDouble(std::size_t i) const =0
Method for retrieving a double attribute value. 
 
virtual std::string getAsString(std::size_t i, int precision=0) const 
Method for retrieving a data value as a string plain representation. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * TupleToStringConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
virtual int getTypeCode() const =0
It returns the data type code associated to the data value. 
 
A point with z-coordinate value. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * PointToZConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
virtual bool isNull(std::size_t i) const =0
It checks if the attribute value is NULL. 
 
A point with a z-coordinate value and an associated measurement. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * PointToMConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
TEDATAACCESSEXPORT te::dt::AbstractData * PointToXConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
Definition of attribute converter and a set of them. 
 
SimpleData< std::string, STRING_TYPE > String
 
TEDATAACCESSEXPORT te::dt::AbstractData * XYZToPointConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
TEDATAACCESSEXPORT te::dt::AbstractData * XYMToPointConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
A point with x and y coordinate values. 
 
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. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * XYToPointConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
A point with an associated measure. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * PointToYConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
boost::function1< AbstractData *, AbstractData * > DataTypeConverter
The definition of the data type converter. 
 
A base class for values that can be retrieved from the data access module. 
 
TEDATAACCESSEXPORT te::dt::AbstractData * XYZMToPointConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
TEDATAACCESSEXPORT te::dt::AbstractData * GenericAttributeConverter(DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType)
 
SimpleData< double, DOUBLE_TYPE > Double
 
static DataConverterManager & getInstance()
It returns a reference to the singleton instance. 
 
virtual std::auto_ptr< te::gm::Geometry > getGeometry(std::size_t i) const =0
Method for retrieving a geometric attribute value. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib.