Utils.h File Reference

Utilitary functions for dealing with TerraLib 5 and 4.x conversion. More...

#include <map>
#include <memory>
#include <string>
#include "../common/Enums.h"
#include "../datatype/Enums.h"
#include "../datatype/Property.h"
#include "../geometry/Enums.h"
#include "Config.h"
#include <terralib4/kernel/TeAttribute.h>
#include <terralib4/kernel/TeDatabase.h>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::da
 Namespace for the DataAccess API of TerraLib.
 
 te::dt
 Namespace for the Data Type module of TerraLib.
 
 te::gm
 Namespace for the Vector Geometry module of TerraLib.
 
 te::rst
 Namespace for the Raster module of TerraLib.
 
 terralib4
 

Functions

void terralib4::CheckDecimalSeparator (std::string &value)
 
TETERRALIB4EXPORT std::string terralib4::Convert2Latin1 (const std::string &str)
 
TeAttrDataType terralib4::Convert2T4 (int type)
 It converts a Terralib 5 data type to Terralib 4.x data type. More...
 
std::auto_ptr< TeDatabaseFactoryParams > terralib4::Convert2T4DatabaseParams (const std::string &dsInfo)
 It converts a data source information to a TerraLib 4.x database params. More...
 
TeAttrDataType terralib4::Convert2T4GeomType (te::gm::GeomType type)
 
std::auto_ptr< te::dt::Propertyterralib4::Convert2T5 (const TeAttributeRep &attRep)
 It creates a valid TerraLib 5 property given a valid TerraLib 4.x attribute representation. More...
 
TETERRALIB4EXPORT int terralib4::Convert2T5 (TeAttrDataType type)
 It converts a Terralib 4.x data type to Terralib 5 data type. More...
 
int terralib4::Convert2T5 (TeDataType dt)
 
std::auto_ptr< te::gm::Envelopeterralib4::Convert2T5 (TeBox box)
 
std::auto_ptr< te::da::DataSetTypeterralib4::Convert2T5 (TeTable table)
 
te::rst::RasterPropertyterralib4::Convert2T5 (TeRasterParams &rparams)
 
te::gm::GeomType terralib4::Convert2T5GeomType (TeAttrDataType type)
 
TETERRALIB4EXPORT te::gm::GeomType terralib4::Convert2T5GeomType (TeGeomRep type)
 It converts a Terralib 4.x data type to Terralib 5 data type. More...
 
TETERRALIB4EXPORT std::string terralib4::Convert2Utf8 (const std::string &str)
 
te::gm::GeomType terralib4::GetCollection (TeGeomRep rep)
 
te::gm::GeomType terralib4::GetMinimalRepresentation (const std::vector< TeGeometry * > &geoms)
 

Detailed Description

Utilitary functions for dealing with TerraLib 5 and 4.x conversion.

Definition in file Utils.h.