PostGIS  2.5.7dev-r@@SVN_REVISION@@
lwin_wkt.c File Reference
#include <stdlib.h>
#include <ctype.h>
#include "lwin_wkt.h"
#include "lwin_wkt_parse.h"
#include "lwgeom_log.h"
Include dependency graph for lwin_wkt.c:

Go to the source code of this file.

Macros

#define SET_PARSER_ERROR(errno)
 

Functions

int wkt_lexer_read_srid (char *str)
 Read the SRID number from an SRID=<> string. More...
 
static uint8_t wkt_dimensionality (char *dimensionality)
 
static int wkt_parser_set_dims (LWGEOM *geom, uint8_t flags)
 Force the dimensionality of a geometry to match the dimensionality of a set of flags (usually derived from a ZM WKT tag). More...
 
static int wkt_pointarray_dimensionality (POINTARRAY *pa, uint8_t flags)
 Read the dimensionality from a flag, if provided. More...
 
POINT wkt_parser_coord_2 (double c1, double c2)
 Build a 2d coordinate. More...
 
POINT wkt_parser_coord_3 (double c1, double c2, double c3)
 Note, if this is an XYM coordinate we'll have to fix it later when we build the object itself and have access to the dimensionality token. More...
 
POINT wkt_parser_coord_4 (double c1, double c2, double c3, double c4)
 
POINTARRAYwkt_parser_ptarray_add_coord (POINTARRAY *pa, POINT p)
 
POINTARRAYwkt_parser_ptarray_new (POINT p)
 Start a point array from the first coordinate. More...
 
LWGEOMwkt_parser_point_new (POINTARRAY *pa, char *dimensionality)
 Create a new point. More...
 
LWGEOMwkt_parser_linestring_new (POINTARRAY *pa, char *dimensionality)
 Create a new linestring. More...
 
LWGEOMwkt_parser_circularstring_new (POINTARRAY *pa, char *dimensionality)
 Create a new circularstring. More...
 
LWGEOMwkt_parser_triangle_new (POINTARRAY *pa, char *dimensionality)
 
LWGEOMwkt_parser_polygon_new (POINTARRAY *pa, char dimcheck)
 
LWGEOMwkt_parser_polygon_add_ring (LWGEOM *poly, POINTARRAY *pa, char dimcheck)
 
LWGEOMwkt_parser_polygon_finalize (LWGEOM *poly, char *dimensionality)
 
LWGEOMwkt_parser_curvepolygon_new (LWGEOM *ring)
 
LWGEOMwkt_parser_curvepolygon_add_ring (LWGEOM *poly, LWGEOM *ring)
 
LWGEOMwkt_parser_curvepolygon_finalize (LWGEOM *poly, char *dimensionality)
 
LWGEOMwkt_parser_collection_new (LWGEOM *geom)
 
LWGEOMwkt_parser_compound_new (LWGEOM *geom)
 
LWGEOMwkt_parser_compound_add_geom (LWGEOM *col, LWGEOM *geom)
 
LWGEOMwkt_parser_collection_add_geom (LWGEOM *col, LWGEOM *geom)
 
LWGEOMwkt_parser_collection_finalize (int lwtype, LWGEOM *geom, char *dimensionality)
 
void wkt_parser_geometry_new (LWGEOM *geom, int srid)
 
void lwgeom_parser_result_init (LWGEOM_PARSER_RESULT *parser_result)
 
void lwgeom_parser_result_free (LWGEOM_PARSER_RESULT *parser_result)
 
LWGEOMlwgeom_from_wkt (const char *wkt, const char check)
 

Variables

const char * parser_error_messages []