PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_to_ewkt()

char* lwgeom_to_ewkt ( const LWGEOM lwgeom)

Return an alloced string.

Parameters
lwgeomgeometry to convert to EWKT

Definition at line 547 of file lwgeom.c.

548 {
549  char* wkt = NULL;
550  size_t wkt_size = 0;
551 
552  wkt = lwgeom_to_wkt(lwgeom, WKT_EXTENDED, 12, &wkt_size);
553 
554  if ( ! wkt )
555  {
556  lwerror("Error writing geom %p to WKT", lwgeom);
557  }
558 
559  return wkt;
560 }
#define WKT_EXTENDED
Definition: liblwgeom.h:2132
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:676
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190

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

Referenced by cu_twkb_idlist(), do_geom_test(), do_grid_test(), do_median_test(), lwline_crossing_direction(), lwpoly_covers_point2d(), polyhedralsurface_parse(), test_geos_linemerge(), test_geos_makevalid(), test_geos_noop(), test_geos_offsetcurve(), test_geos_subdivide(), test_grid(), test_lwgeom_as_curve(), test_lwgeom_clip_by_rect(), test_lwgeom_clone(), test_lwgeom_delaunay_triangulation(), test_lwgeom_force_clockwise(), test_lwgeom_from_gserialized(), test_lwgeom_from_gserialized2(), test_lwgeom_make_valid(), test_lwgeom_node(), test_lwgeom_remove_repeated_points(), test_lwgeom_scale(), test_lwgeom_segmentize2d(), test_lwgeom_simplify(), test_lwgeom_split(), test_lwgeom_wrapx(), test_lwline_clip(), test_lwline_clip_big(), test_lwmline_clip(), test_lwpoly_clip(), test_lwtriangle_clip(), test_misc_force_2d(), test_misc_simplify(), test_sfcgal_noop(), tin_parse(), and triangle_parse().

Here is the call graph for this function:
Here is the caller graph for this function: