PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char* cu_wkt_in ( char *  wkt,
uint8_t  variant 
)
static

Definition at line 51 of file cu_in_wkt.c.

References struct_lwgeom_parser_result::errcode, struct_lwgeom_parser_result::geom, lwgeom_parse_wkt(), lwgeom_parser_result_free(), lwgeom_to_wkt(), struct_lwgeom_parser_result::message, and s.

Referenced by test_wkt_in_circularstring(), test_wkt_in_collection(), test_wkt_in_compoundcurve(), test_wkt_in_curvpolygon(), test_wkt_in_linestring(), test_wkt_in_multicurve(), test_wkt_in_multilinestring(), test_wkt_in_multipoint(), test_wkt_in_multipolygon(), test_wkt_in_multisurface(), test_wkt_in_point(), test_wkt_in_polygon(), test_wkt_in_polyhedralsurface(), and test_wkt_in_tin().

52 {
54  int rv = 0;
55  char *s = 0;
56 
57  rv = lwgeom_parse_wkt(&p, wkt, 0);
58  if( p.errcode ) {
59  return strdup(p.message);
60  }
61  s = lwgeom_to_wkt(p.geom, variant, 8, NULL);
63  return s;
64 }
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:655
void lwgeom_parser_result_free(LWGEOM_PARSER_RESULT *parser_result)
Definition: lwin_wkt.c:825
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM...
Definition: liblwgeom.h:1713
char * s
Definition: cu_in_wkt.c:24

Here is the call graph for this function:

Here is the caller graph for this function: