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;
201 int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName);
223 bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName);
256 std::unique_ptr<te::dt::DateTime>
GetDateTime(std::string& value, std::string& mask, std::string& sepD, std::string& sepT);
A class to store the proxy information that must be used to access data located in URIs.
It models a property definition.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver.
Spatial reference system transformation function.
const std::string & GetGeometryName(te::gm::GeomType t)
It returns the geometry OGC names.
bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName)
Verifies whether is in the geometry_columns table.
const te::gm::GeomType GetGeometryType(std::string t)
It returns the geometry type concerning the OGC name.
int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a SRID.
std::string MakeConnectionStr(const te::core::URI &connInfo)
Create a connection string based on a map.
std::string GetSystemDateTimeFormat(std::string &indAM, std::string &indPM, std::string &sepD, std::string &sepT)
It gets the system Date and Time format.
void Blob2Variant(const char *blob, int size, _variant_t &var)
Convert a blob to a variant.
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.
int Convert2Terralib(ADOX::DataTypeEnum adoType)
Bind ADOX Type to TerraLib Type.
bool IsZProperty(te::gm::GeomType type)
Verifies whether Z property.
int GetMonth(const std::string &month)
It gets the index of a month.
std::string GetFormattedDateTime(te::dt::DateTime *dateTime)
It gets a formatted DateTime string for ADO.
void Variant2Blob(const _variant_t var, int size, char *&blob)
Convert a variant to a blob.
std::string GetAdoStringType(const int &terralib)
Bind TerraLib type to an ADO valid fiel type name.
ADOX::DataTypeEnum Convert2Ado(int terralib)
Bind TerraLib Type to ADO Type.
te::gm::GeomType GetType(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a geometry type.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Proxy configuration file for TerraView (see terraview_config.h).