26 #ifndef __TERRALIB_ADO_INTERNAL_UTILS_H    27 #define __TERRALIB_ADO_INTERNAL_UTILS_H    30 #include "../common/StringUtils.h"    31 #include "../geometry/Geometry.h"    40 #import "msado15.dll" \
    41   no_namespace rename(
"EOF", 
"EndOfFile")
    64     class GeometryProperty;
    82     void Blob2Variant(
const char* blob, 
int size, _variant_t & var);
   100     void Variant2Blob(
const _variant_t var, 
int size, 
char* & blob);
   200     int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName);
   222     bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName);
   243     std::string 
GetSystemDateTimeFormat(std::string& indAM, std::string& indPM, std::string& sepD, std::string& sepT);
   255     std::auto_ptr<te::dt::DateTime> 
GetDateTime(std::string& value, std::string& mask, std::string& sepD, std::string& sepT);
   264     int GetMonth(
const std::string& month);
   278 #endif  // __TERRALIB_ADO_INTERNAL_UTILS_H int GetMonth(const std::string &month)
It gets the index of a month. 
 
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code. 
 
std::string MakeConnectionStr(const std::map< std::string, std::string > &dsInfo)
 
int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a SRID. 
 
Spatial reference system transformation function. 
 
void Blob2Variant(const char *blob, int size, _variant_t &var)
Convert a blob to a variant. 
 
Configuration flags for the TerraLib ADO Data Access driver. 
 
std::string GetSystemDateTimeFormat(std::string &indAM, std::string &indPM, std::string &sepD, std::string &sepT)
It gets the system Date and Time format. 
 
std::string GetFormattedDateTime(te::dt::DateTime *dateTime)
It gets a formatted DateTime string for ADO. 
 
It models a property definition. 
 
TEDATATYPEEXPORT int Convert2Terralib(const std::string &dataType)
It convert a string to a DataType. 
 
std::string GetAdoStringType(const int &terralib)
Bind TerraLib type to an ADO valid fiel type name. 
 
TEQTAFEXPORT QString GetDateTime()
 
void Convert2Ado(const te::gm::Geometry *geo, _variant_t &var)
Bind TerraLib geometry to ADO variant. 
 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards. 
 
const te::gm::GeomType GetGeometryType(std::string t)
It returns the geometry type concerning the OGC name. 
 
const std::string & GetGeometryName(te::gm::GeomType t)
It returns the geometry names as usual for PostGIS. 
 
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
 
TESTEXPORT ObservationDataSetType GetType(const ObservationDataSetInfo &info)
An auxiliary function that transform ObservationDataSetInfo into ObservationDataSetType. 
 
bool IsZProperty(te::gm::GeomType type)
Verifies whether Z property. 
 
bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName)
Verifies whether is in the geometry_columns table. 
 
void Variant2Blob(const _variant_t var, int size, char *&blob)
Convert a variant to a blob.