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