26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_UTILS_H 
   27 #define __TERRALIB_DATAACCESS_INTERNAL_UTILS_H 
   30 #include "../../geometry/Enums.h" 
   31 #include "../datasource/DataSource.h" 
   32 #include "../query/Expression.h" 
   33 #include "../query/Fields.h" 
   34 #include "../query/Select.h" 
   37 #include <boost/ptr_container/ptr_vector.hpp> 
   47   namespace dt { 
class Property; }
 
   53     class GeometryProperty;
 
   56   namespace rst { 
class RasterProperty; }
 
   64     class DataSetTypeConverter;
 
   65     class DataSourceCatalogLoader;
 
   66     class DataSourceTransactor;
 
   82                                                    const std::string& propertyName,
 
   83                                                    const std::string& datasourceId);
 
  225                                             std::vector<std::string>& pnames,
 
  226                                             std::vector<int>& ptypes);
 
  229                                             std::vector<std::string>& pnames,
 
  230                                             std::vector<int>& ptypes);
 
  279                                    const std::map<std::string, std::string>& options,
 
  280                                    std::size_t limit = 0);
 
  299                                                          const std::string& propertyName);
 
  302                                                          const std::vector<std::string>& properties);
 
  305                                                          const std::vector<std::string>& properties,
 
  306                                                          const std::string& geometryProperty,
 
  312                                                          const std::vector<std::string>& properties,
 
  313                                                          const std::string& geometryProperty,
 
  318                                                          const std::vector<std::string>& properties,
 
  319                                                          const ObjectIdSet* oids);
 
  385 #endif  // __TERRALIB_DATAACCESS_INTERNAL_UTILS_H 
TEDATAACCESSEXPORT DataSourcePtr GetDataSource(const std::string &datasourceId, const bool opened=true)
Search for a data source with the informed id in the DataSourceManager. 
 
TEDATAACCESSEXPORT te::rst::RasterProperty * GetFirstRasterProperty(const DataSetType *dt)
 
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)
 
TEDATAACCESSEXPORT void GetEmptyOIDSet(const DataSetType *type, ObjectIdSet *&set)
Returns an empty ObjectIdSet, with the definitions of fields that compose it. 
 
TEDATAACCESSEXPORT ObjectId * GenerateOID(DataSet *dataset, const std::vector< std::string > &names)
 
boost::shared_ptr< DataSource > DataSourcePtr
 
TEDATAACCESSEXPORT std::auto_ptr< Select > BuildSelect(const std::string &dsname)
 
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 description of a dataset. 
 
TEDATAACCESSEXPORT std::string GetDataSetCategoryName(int category)
 
TEDATAACCESSEXPORT std::size_t GetPropertyPos(const DataSet *dataset, const std::string &name)
 
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. 
 
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)
 
TEDATAACCESSEXPORT std::size_t GetFirstSpatialPropertyPos(const te::da::DataSet *dataset)
It returns the first dataset spatial property or NULL if none is found. 
 
An Envelope defines a 2D rectangular region. 
 
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...
 
This class represents an unique id for a data set element. 
 
TEDATAACCESSEXPORT DataSet * GetDataSet(const std::string &name, const std::string &datasourceId)
 
TEDATAACCESSEXPORT bool HasDataSet(const std::string &datasourceId)
 
TEDATAACCESSEXPORT double GetSummarizedValue(std::vector< double > &values, const std::string &summary)
It gets the summarized value. 
 
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)
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards. 
 
TEDATAACCESSEXPORT double Round(const double &value, const size_t &precision)
It gets the round value. 
 
A dataset is the unit of information manipulated by the data access module of TerraLib. 
 
TEDATAACCESSEXPORT void GetOIDPropertyPos(const DataSetType *type, std::vector< std::size_t > &ppos)
 
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...
 
TEDATAACCESSEXPORT std::string getBasePkey(te::da::ObjectId *oid, std::pair< std::string, int > &dsProps)
 
TEDATAACCESSEXPORT void GetOIDPropertyNames(const DataSetType *type, std::vector< std::string > &pnames)
 
TEDATAACCESSEXPORT DataSetType * GetDataSetType(const std::string &name, const std::string &datasourceId)
 
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
TEDATAACCESSEXPORT std::size_t GetFirstPropertyPos(const te::da::DataSet *dataset, int datatype)
 
TEDATAACCESSEXPORT te::gm::GeometryProperty * GetFirstGeomProperty(const DataSetType *dt)
 
TEDATAACCESSEXPORT DataSetAdapter * CreateAdapter(DataSet *ds, DataSetTypeConverter *converter, bool isOwner=false)
 
TEDATAACCESSEXPORT void LoadFull(te::da::DataSetType *dataset, const std::string &datasourceId)
 
TEDATAACCESSEXPORT std::auto_ptr< Fields > BuildFields(const std::vector< std::string > &properties)
 
TEDATAACCESSEXPORT te::dt::Property * GetFirstSpatialProperty(const DataSetType *dt)
 
TEDATAACCESSEXPORT void GetPropertyInfo(const DataSetType *const dt, std::vector< std::string > &pnames, std::vector< int > &ptypes)