Config.h File Reference

Configuration flags for the PostGIS Driver Implementation of TerraLib. More...

Go to the source code of this file.

Macros

General Defines

Configuring PostGIS support.

#define PGIS_DEFAULT_INITIAL_POOL_SIZE   4
 This sets the default initial number of connections opened by a connection pool. More...
 
#define PGIS_DEFAULT_MIN_POOL_SIZE   2
 This sets the default minimum number of connections to be kept in the pool. More...
 
#define PGIS_DEFAULT_MAX_POOL_SIZE   4
 This sets the default maximum number of connections in the pool. More...
 
#define PGIS_DEFAULT_MAX_IDLE_TIME   10
 This sets the default maximum time that a connection can be in the pool without being used. More...
 
#define PGIS_DEFAULT_PORT   "5432"
 The default port used to connect to a PostgreSQL database server. More...
 
#define PGIS_DEFAULT_CONNECT_TIMEOUT   "4"
 The default maximum wait for connection, in seconds. More...
 
#define PGIS_DEFAULT_CLIENT_ENCODING   "UTF8"
 The default client encoding when talking with the database. More...
 
#define PGIS_DRIVER_IDENTIFIER   "POSTGIS"
 The PostGIS driver identifier string. More...
 
#define PGIS_UNKNOWN_SRS   -1
 A numeric value to represent a unknown SRS identification in PostGIS. More...
 
#define TERRALIB_RASTER_DRIVER_IDENTIFIER   "TEPG"
 The TerraLib Raster driver identifier string. More...
 
#define PG_UNKNOW_TYPE   -1
 
#define PG_BOOL_TYPE   16
 
#define PG_BYTEA_TYPE   17
 
#define PG_CHAR_TYPE   18
 
#define PG_NAME_TYPE   19
 
#define PG_INT8_TYPE   20
 
#define PG_INT2_TYPE   21
 
#define PG_INT2_VECTOR_TYPE   22
 
#define PG_INT4_TYPE   23
 
#define PG_TEXT_TYPE   25
 
#define PG_OID_TYPE   26
 
#define PG_FLOAT4_TYPE   700
 
#define PG_FLOAT8_TYPE   701
 
#define PG_CHARACTER_TYPE   1042
 
#define PG_VARCHAR_TYPE   1043
 
#define PG_DATE_TYPE   1082
 
#define PG_TIME_TYPE   1083
 
#define PG_TIMETZ_TYPE   1266
 
#define PG_TIMESTAMP_TYPE   1114
 
#define PG_TIMESTAMPTZ_TYPE   1184
 
#define PG_NUMERIC_TYPE   1700
 
#define PG_BOOL_ARRAY_TYPE   1000
 
#define PG_BYTEA_ARRAY_TYPE   1001
 
#define PG_CHAR_ARRAY_TYPE   1002
 
#define PG_NAME_ARRAY_TYPE   1003
 
#define PG_INT8_ARRAY_TYPE   1016
 
#define PG_INT2_ARRAY_TYPE   1005
 
#define PG__INT2_VECTOR_TYPE   1006
 
#define PG_INT4_ARRAY_TYPE   1007
 
#define PG_TEXT_ARRAY_TYPE   1009
 
#define PG_OID_ARRAY_TYPE   1028
 
#define PG_OID_VECTOR_TYPE   1013
 
#define PG_FLOAT4_ARRAY_TYPE   1021
 
#define PG_FLOAT8_ARRAY_TYPE   1022
 
#define PG_CHARACTER_ARRAY_TYPE   1014
 
#define PG_VARCHAR_ARRAY_TYPE   1015
 
#define PG_DATE_ARRAY_TYPE   1182
 
#define PG_TIME_ARRAY_TYPE   1183
 
#define PG_TIMETZ_ARRAY_TYPE   1270
 
#define PG_TIMESTAMP_ARRAY_TYPE   1115
 
#define PG_TIMESTAMPTZ_ARRAY_TYPE   1185
 
#define PG_NUMERIC_ARRAY_TYPE   1231
 
PostGIS Compatibility Flags

Flags for constructing compatible WKB format with PostGIS

#define TE_EWKB_ZM_OFFSET   0xC0000000
 
#define TE_EWKB_Z_OFFSET   0x80000000
 
#define TE_EWKB_M_OFFSET   0x40000000
 
#define TE_EWKB_SRID_FLAG   0x20000000
 
#define TE_EWKB_BBOX_FLAG   0x10000000
 
DLL/LIB Module

Flags for building TerraLib as a DLL or as a Static Library

#define TEPGISEXPORT
 You can use this macro in order to export/import classes and functions from this module. More...
 

Detailed Description

Configuration flags for the PostGIS Driver Implementation of TerraLib.

Definition in file Config.h.

Macro Definition Documentation

#define PG__INT2_VECTOR_TYPE   1006

Definition at line 135 of file Config.h.

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

#define PG_BOOL_ARRAY_TYPE   1000

Definition at line 129 of file Config.h.

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

#define PG_BOOL_TYPE   16

Definition at line 109 of file Config.h.

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

#define PG_BYTEA_ARRAY_TYPE   1001

Definition at line 130 of file Config.h.

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

#define PG_BYTEA_TYPE   17

Definition at line 110 of file Config.h.

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

#define PG_CHAR_ARRAY_TYPE   1002

Definition at line 131 of file Config.h.

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

#define PG_CHAR_TYPE   18

Definition at line 111 of file Config.h.

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

#define PG_CHARACTER_ARRAY_TYPE   1014

Definition at line 142 of file Config.h.

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

#define PG_CHARACTER_TYPE   1042

Definition at line 121 of file Config.h.

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

#define PG_DATE_ARRAY_TYPE   1182

Definition at line 144 of file Config.h.

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

#define PG_DATE_TYPE   1082

Definition at line 123 of file Config.h.

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

#define PG_FLOAT4_ARRAY_TYPE   1021

Definition at line 140 of file Config.h.

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

#define PG_FLOAT4_TYPE   700

Definition at line 119 of file Config.h.

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

#define PG_FLOAT8_ARRAY_TYPE   1022

Definition at line 141 of file Config.h.

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

#define PG_FLOAT8_TYPE   701

Definition at line 120 of file Config.h.

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

#define PG_INT2_ARRAY_TYPE   1005

Definition at line 134 of file Config.h.

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

#define PG_INT2_TYPE   21

Definition at line 114 of file Config.h.

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

#define PG_INT2_VECTOR_TYPE   22

Definition at line 115 of file Config.h.

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

#define PG_INT4_ARRAY_TYPE   1007

Definition at line 136 of file Config.h.

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

#define PG_INT4_TYPE   23

Definition at line 116 of file Config.h.

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

#define PG_INT8_ARRAY_TYPE   1016

Definition at line 133 of file Config.h.

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

#define PG_INT8_TYPE   20

Definition at line 113 of file Config.h.

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

#define PG_NAME_ARRAY_TYPE   1003

Definition at line 132 of file Config.h.

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

#define PG_NAME_TYPE   19

Definition at line 112 of file Config.h.

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

#define PG_NUMERIC_ARRAY_TYPE   1231

Definition at line 149 of file Config.h.

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

#define PG_NUMERIC_TYPE   1700

Definition at line 128 of file Config.h.

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

#define PG_OID_ARRAY_TYPE   1028

Definition at line 138 of file Config.h.

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

#define PG_OID_TYPE   26

Definition at line 118 of file Config.h.

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

#define PG_OID_VECTOR_TYPE   1013

Definition at line 139 of file Config.h.

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

#define PG_TEXT_ARRAY_TYPE   1009

Definition at line 137 of file Config.h.

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

#define PG_TEXT_TYPE   25

Definition at line 117 of file Config.h.

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

#define PG_TIME_ARRAY_TYPE   1183

Definition at line 145 of file Config.h.

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

#define PG_TIME_TYPE   1083

Definition at line 124 of file Config.h.

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

#define PG_TIMESTAMP_ARRAY_TYPE   1115

Definition at line 147 of file Config.h.

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

#define PG_TIMESTAMP_TYPE   1114

Definition at line 126 of file Config.h.

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

#define PG_TIMESTAMPTZ_ARRAY_TYPE   1185

Definition at line 148 of file Config.h.

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

#define PG_TIMESTAMPTZ_TYPE   1184

Definition at line 127 of file Config.h.

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

#define PG_TIMETZ_ARRAY_TYPE   1270

Definition at line 146 of file Config.h.

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

#define PG_TIMETZ_TYPE   1266

Definition at line 125 of file Config.h.

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

#define PG_UNKNOW_TYPE   -1

Definition at line 108 of file Config.h.

#define PG_VARCHAR_ARRAY_TYPE   1015

Definition at line 143 of file Config.h.

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

#define PG_VARCHAR_TYPE   1043

Definition at line 122 of file Config.h.

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

#define PGIS_DEFAULT_CLIENT_ENCODING   "UTF8"

The default client encoding when talking with the database.

Definition at line 81 of file Config.h.

#define PGIS_DEFAULT_CONNECT_TIMEOUT   "4"

The default maximum wait for connection, in seconds.

Definition at line 74 of file Config.h.

#define PGIS_DEFAULT_INITIAL_POOL_SIZE   4

This sets the default initial number of connections opened by a connection pool.

Definition at line 39 of file Config.h.

#define PGIS_DEFAULT_MAX_IDLE_TIME   10

This sets the default maximum time that a connection can be in the pool without being used.

Definition at line 60 of file Config.h.

#define PGIS_DEFAULT_MAX_POOL_SIZE   4

This sets the default maximum number of connections in the pool.

Definition at line 53 of file Config.h.

#define PGIS_DEFAULT_MIN_POOL_SIZE   2

This sets the default minimum number of connections to be kept in the pool.

Definition at line 46 of file Config.h.

#define PGIS_DEFAULT_PORT   "5432"

The default port used to connect to a PostgreSQL database server.

Definition at line 67 of file Config.h.

#define PGIS_DRIVER_IDENTIFIER   "POSTGIS"

The PostGIS driver identifier string.

Definition at line 88 of file Config.h.

#define PGIS_UNKNOWN_SRS   -1

A numeric value to represent a unknown SRS identification in PostGIS.

Note
PostGIS 1.x version uses -1 and only -1 as unknown SRS identifier. PostGIS 2.x version uses 0 and handles negative values as unknown SRS identifier. So -1 value will be handled as unknown SRS identifier in both versions.

Definition at line 99 of file Config.h.

#define TE_EWKB_BBOX_FLAG   0x10000000

Definition at line 162 of file Config.h.

#define TE_EWKB_M_OFFSET   0x40000000

Definition at line 160 of file Config.h.

Referenced by te::pgis::Convert2OGCWKBType(), and te::pgis::Convert2PostGISWKBType().

#define TE_EWKB_SRID_FLAG   0x20000000

Definition at line 161 of file Config.h.

#define TE_EWKB_Z_OFFSET   0x80000000

Definition at line 159 of file Config.h.

Referenced by te::pgis::Convert2OGCWKBType(), and te::pgis::Convert2PostGISWKBType().

#define TE_EWKB_ZM_OFFSET   0xC0000000

Definition at line 158 of file Config.h.

Referenced by te::pgis::Convert2OGCWKBType(), and te::pgis::Convert2PostGISWKBType().

#define TEPGISEXPORT

You can use this macro in order to export/import classes and functions from this module.

Note
If you want to compile TerraLib as DLL in Windows, remember to insert TEPGISDLL into the project's list of defines.
If you want to compile TerraLib as an Static Library under Windows, remember to insert the TEPGISSTATIC flag into the project list of defines.

Definition at line 195 of file Config.h.

#define TERRALIB_RASTER_DRIVER_IDENTIFIER   "TEPG"

The TerraLib Raster driver identifier string.

Definition at line 106 of file Config.h.