All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Utils.cpp File Reference

Utility functions for PostgreSQL. More...

#include "../common/HexUtils.h"
#include "../common/Translator.h"
#include "../dataaccess/dataset/DataSet.h"
#include "../dataaccess/dataset/DataSetType.h"
#include "../datatype/ByteArray.h"
#include "EWKBWriter.h"
#include "Exception.h"
#include "Globals.h"
#include "Utils.h"
#include <boost/lexical_cast.hpp>
#include <libpq-fe.h>

Go to the source code of this file.

Namespaces

 te
 URI C++ Library.
 
 te::pgis
 Namespace for the TerraLib PostGIS driver implementation.
 

Functions

bool te::pgis::SetColumnDef (std::string &s, const std::string &tname, const te::dt::SimpleProperty *p, bool justDataType=false)
 
void te::pgis::SetColumnDef (std::string &s, const te::dt::NumericProperty *p, bool justDataType=false)
 
void te::pgis::SetColumnDef (std::string &s, const std::string &tname, const te::dt::StringProperty *p, bool justDataType=false)
 
void te::pgis::SetColumnDef (std::string &s, const te::dt::ArrayProperty *p, bool justDataType=false)
 

Variables

static std::size_t sg_n_encoding = 8
 
static const char * sg_pg_encoding [] = {"UTF8", "WIN1250", "WIN1251", "WIN1252", "WIN1253", "WIN1254", "WIN1257", "LATIN1"}
 

Detailed Description

Utility functions for PostgreSQL.

Definition in file Utils.cpp.

Variable Documentation

std::size_t sg_n_encoding = 8
static

Definition at line 659 of file Utils.cpp.

Referenced by te::pgis::GetTeEncoding().

const char* sg_pg_encoding[] = {"UTF8", "WIN1250", "WIN1251", "WIN1252", "WIN1253", "WIN1254", "WIN1257", "LATIN1"}
static

Definition at line 660 of file Utils.cpp.

Referenced by te::pgis::GetPGEncoding(), and te::pgis::GetTeEncoding().