| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

Defines | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/PostgreSQL/TePGUtils.h File Reference

This file contains utilities functions to read/write geometry fields (PostGIS and PostgreSQL). More...

`#include "../../kernel/TeGeometry.h"`
`#include "TePostgreSQLDefines.h"`

Go to the source code of this file.

## Defines

#define | COORDS_DELIM ','
#define | COORD_DELIM ' '
#define | LINES_DELIM ','
#define | LDELIM_POINT '('
#define | RDELIM_POINT ')'
#define | LDELIM_LINESTRING '('
#define | RDELIM_LINESTRING ')'
#define | LDELIM_POLYGON '('
#define | RDELIM_POLYGON ')'
#define | LDELIM_BOX '('
#define | RDELIM_BOX ')'
#define | LDELIM_PGGEOMPOLYGON '('
#define | RDELIM_PGGEOMPOLYGON ')'
#define | PGGEOMPOLYGON_COORDS_DELIM ','

## Functions

TLPOSTGRESQL_DLL TeCoord2D | PgGeomPolygonCoordDecode (char *str, char **s)
| Decodifica uma coordenada no formato poligono dos tipos geometricos do PostgreSQL: (x1, y1)
TLPOSTGRESQL_DLL void | Te2PgGeomPolygon (const TeLine2D &l, string &strPolygon)
| Transaforma a linha l em um poligono texto strPolygon.
TLPOSTGRESQL_DLL TeLine2D | PgGeomPolygon2Te (char *strPolygon)
| Transaforma um poligono texto strPolygon em uma linha.
TLPOSTGRESQL_DLL TeCoord2D | PGCoord_decode (char *str, char **s)
TLPOSTGRESQL_DLL string | PGCoord_encode (const TeCoord2D &c)
TLPOSTGRESQL_DLL TePoint | PGPoint_decode (char *str)
TLPOSTGRESQL_DLL string | PGPoint_encode (const TePoint &p)
TLPOSTGRESQL_DLL string | PGNode_encode (const TeNode &p)
TLPOSTGRESQL_DLL TeLine2D | PGLine_decode (char *str, char **sd)
TLPOSTGRESQL_DLL TeLine2D | PGLinestring_decode (char *str)
TLPOSTGRESQL_DLL TePolygon | PGPolygon_decode (char *str)
TLPOSTGRESQL_DLL TeBox | PGBox_decode (char *str)
TLPOSTGRESQL_DLL string | PGBox_encode (const TeBox &b)
TLPOSTGRESQL_DLL TeBox | PGBoxRtree_decode (char *str)
TLPOSTGRESQL_DLL string | PGBoxRtree_encode (const TeBox &b)
TLPOSTGRESQL_DLL void | PGConcatLineString (const TeLine2D &l, string &concatString)
TLPOSTGRESQL_DLL TeBox | PGBoxFromPolygon (char *str)
TLPOSTGRESQL_DLL string | PGMakePolygon (const TeBox &box)

## Detailed Description

This file contains utilities functions to read/write geometry fields (PostGIS and PostgreSQL).

Author:
  Gilberto Ribeiro de Queiroz - gribeiro@dpi.inpe.br

## Define Documentation

#define COORD_DELIM ' '

#define COORDS_DELIM ','

#define LDELIM_BOX '('

#define LDELIM_LINESTRING '('

#define LDELIM_PGGEOMPOLYGON '('

#define LDELIM_POINT '('

#define LDELIM_POLYGON '('

#define LINES_DELIM ','

#define PGGEOMPOLYGON_COORDS_DELIM ','

#define RDELIM_BOX ')'

#define RDELIM_LINESTRING ')'

#define RDELIM_PGGEOMPOLYGON ')'

#define RDELIM_POINT ')'

#define RDELIM_POLYGON ')'

## Function Documentation

TLPOSTGRESQL_DLL TeBox PGBox_decode | ( | char * | str | ) |

TLPOSTGRESQL_DLL string PGBox_encode | ( | const TeBox & | b | ) |

TLPOSTGRESQL_DLL TeBox PGBoxFromPolygon | ( | char * | str | ) |

TLPOSTGRESQL_DLL TeBox PGBoxRtree_decode | ( | char * | str | ) |

TLPOSTGRESQL_DLL string PGBoxRtree_encode | ( | const TeBox & | b | ) |

TLPOSTGRESQL_DLL void PGConcatLineString | ( | const TeLine2D & | l,
|  | string & | concatString
| ) |  |

TLPOSTGRESQL_DLL TeCoord2D PGCoord_decode | ( | char * | str,
|  | char ** | s
| ) |  |

TLPOSTGRESQL_DLL string PGCoord_encode | ( | const TeCoord2D & | c | ) |

TLPOSTGRESQL_DLL TeLine2D PgGeomPolygon2Te | ( | char * | strPolygon | ) |

Transaforma um poligono texto strPolygon em uma linha.

TLPOSTGRESQL_DLL TeCoord2D PgGeomPolygonCoordDecode | ( | char * | str,
|  | char ** | s
| ) |  |

Decodifica uma coordenada no formato poligono dos tipos geometricos do PostgreSQL: (x1, y1)

TLPOSTGRESQL_DLL TeLine2D PGLine_decode | ( | char * | str,
|  | char ** | sd
| ) |  |

TLPOSTGRESQL_DLL TeLine2D PGLinestring_decode | ( | char * | str | ) |

TLPOSTGRESQL_DLL string PGMakePolygon | ( | const TeBox & | box | ) |

TLPOSTGRESQL_DLL string PGNode_encode | ( | const TeNode & | p | ) |

TLPOSTGRESQL_DLL TePoint PGPoint_decode | ( | char * | str | ) |

TLPOSTGRESQL_DLL string PGPoint_encode | ( | const TePoint & | p | ) |

TLPOSTGRESQL_DLL TePolygon PGPolygon_decode | ( | char * | str | ) |

TLPOSTGRESQL_DLL void Te2PgGeomPolygon | ( | const TeLine2D & | l,
|  | string & | strPolygon
| ) |  |

Transaforma a linha l em um poligono texto strPolygon.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines