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")
46 namespace core {
class URI; }
65 class GeometryProperty;
83 void Blob2Variant(
const char* blob,
int size, _variant_t & var);
101 void Variant2Blob(
const _variant_t var,
int size,
char* & blob);
201 int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName);
223 bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName);
244 std::string
GetSystemDateTimeFormat(std::string& indAM, std::string& indPM, std::string& sepD, std::string& sepT);
256 std::unique_ptr<te::dt::DateTime>
GetDateTime(std::string& value, std::string& mask, std::string& sepD, std::string& sepT);
265 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.
int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a SRID.
const std::string & GetGeometryName(te::gm::GeomType t)
It returns the geometry OGC names.
te::gm::GeomType GetType(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a geometry type.
int Convert2Terralib(ADOX::DataTypeEnum adoType)
Bind ADOX Type to TerraLib Type.
std::unique_ptr< te::dt::DateTime > GetDateTime(std::string &value, std::string &mask, std::string &sepD, std::string &sepT)
It gets the DateTime TerraLib 5 from string.
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.
std::string GetAdoStringType(const int &terralib)
Bind TerraLib type to an ADO valid fiel type name.
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.
A class to store the proxy information that must be used to access data located in URIs...
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
std::string MakeConnectionStr(const te::core::URI &connInfo)
Create a connection string based on a map.
ADOX::DataTypeEnum Convert2Ado(int terralib)
Bind TerraLib Type to ADO Type.
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.