PostGIS  2.1.10dev-r@@SVN_REVISION@@
char* lwgeom_to_ewkt ( const LWGEOM lwgeom)

Return an alloced string.

lwgeomgeometry to convert to EWKT

Definition at line 425 of file lwgeom.c.

References lwerror(), lwgeom_to_wkt(), and WKT_EXTENDED.

Referenced by do_geom_test(), LWGEOM_GEOS_buildArea(), LWGEOM_GEOS_makeValid(), LWGEOM_GEOS_makeValidPolygon(), LWGEOM_GEOS_nodeLines(), lwline_clip_to_ordinate_range(), lwline_crossing_direction(), lwpoly_covers_point2d(), polyhedralsurface_parse(), test_geos_noop(), test_lwgeom_clone(), test_lwgeom_delaunay_triangulation(), test_lwgeom_force_clockwise(), test_lwgeom_from_gserialized(), test_lwgeom_make_valid(), test_lwgeom_node(), test_lwgeom_segmentize2d(), test_lwgeom_simplify(), test_lwgeom_split(), test_lwline_clip(), test_lwline_clip_big(), test_lwmline_clip(), test_misc_force_2d(), test_misc_simplify(), test_sfcgal_noop(), tin_parse(), and triangle_parse().

426 {
427  char* wkt = NULL;
428  size_t wkt_size = 0;
430  wkt = lwgeom_to_wkt(lwgeom, WKT_EXTENDED, 12, &wkt_size);
432  if ( ! wkt )
433  {
434  lwerror("Error writing geom %p to WKT", lwgeom);
435  }
437  return wkt;
438 }
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 lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
Definition: liblwgeom.h:1778

Here is the call graph for this function:

Here is the caller graph for this function: