PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
WKT emitter function.
lwgeom | geometry to convert to WKT |
variant | output format to use (WKT_ISO, WKT_SFSQL, WKT_EXTENDED) |
Allocates a new *char and fills it with the WKT representation. If size_out is not NULL, it will be set to the size of the allocated *char.
variant | Bitmasked value, accepts one of WKT_ISO, WKT_SFSQL, WKT_EXTENDED. |
precision | Number of significant digits in the output doubles. |
size_out | If supplied, will return the size of the returned string, including the null terminator. |
Definition at line 669 of file lwout_wkt.c.
References lwerror(), lwgeom_has_srid(), lwgeom_to_wkt_sb(), LWGEOM::srid, stringbuffer_aprintf(), stringbuffer_create(), stringbuffer_destroy(), stringbuffer_getlength(), stringbuffer_getstring(), stringbuffer_getstringcopy(), and WKT_EXTENDED.
Referenced by _lwt_EdgeSplit(), _lwt_FaceByEdges(), _lwt_FindNextRingEdge(), cu_wkt(), cu_wkt_in(), do_encoded_polyline_test(), do_geojson_test(), do_lwgeom_flip_coordinates(), errorIfGeometryCollection(), GenerateLineStringGeometry(), GeneratePointGeometry(), GeneratePolygonGeometry(), gserialized_to_string(), LWGEOM_asEWKT(), LWGEOM_asText(), lwgeom_to_ewkt(), lwgeom_to_text(), lwt_AddLine(), lwt_AddPoint(), lwt_ChangeEdgeGeom(), lwt_GetFaceEdges(), rt_raster_gdal_polygonize(), rt_raster_surface(), test_lwcurve_linearize(), test_lwgeom_locate_along(), test_misc_wkb(), test_ptarray_unstroke(), and triangle_parse().