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

Definition at line 47 of file cu_out_wkt.c.

References LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_wkt(), and s.

Referenced by test_wkt_out_circularstring(), test_wkt_out_collection(), test_wkt_out_compoundcurve(), test_wkt_out_curvpolygon(), test_wkt_out_linestring(), test_wkt_out_multicurve(), test_wkt_out_multilinestring(), test_wkt_out_multipoint(), test_wkt_out_multipolygon(), test_wkt_out_multisurface(), test_wkt_out_point(), and test_wkt_out_polygon().

48 {
50  if ( s ) free(s);
51  if ( ! g )
52  {
53  printf("error converting '%s' to lwgeom\n", wkt);
54  exit(0);
55  }
56  s = lwgeom_to_wkt(g, variant, 8, NULL);
57  lwgeom_free(g);
58  return s;
59 }
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_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706
char * s
Definition: cu_out_wkt.c:24

Here is the call graph for this function:

Here is the caller graph for this function: