PostGIS
3.0.6dev-r@@SVN_REVISION@@
|
char* lwgeom_to_wkt | ( | const LWGEOM * | geom, |
uint8_t | variant, | ||
int | precision, | ||
size_t * | size_out | ||
) |
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 | Maximal number of digits after comma in the output doubles. |
size_out | If supplied, will return the size of the returned string, including the null terminator. |
Definition at line 676 of file lwout_wkt.c.
References lwerror(), lwgeom_has_srid(), lwgeom_to_wkt_sb(), precision, LWGEOM::srid, str, stringbuffer_aprintf(), stringbuffer_create(), stringbuffer_destroy(), stringbuffer_getlength(), stringbuffer_getstring(), stringbuffer_getstringcopy(), variant, and WKT_EXTENDED.
Referenced by _lwt_AddLine(), _lwt_AddPoint(), _lwt_EdgeSplit(), _lwt_FaceByEdges(), _lwt_FindNextRingEdge(), cu_wkt(), cu_wkt_in(), do_encoded_polyline_test(), do_geojson_test(), do_lwgeom_swap_ordinates(), do_test_chaikin(), do_test_filterm(), GenerateLineStringGeometry(), GeneratePointGeometry(), GeneratePolygonGeometry(), LWGEOM_asEWKT(), LWGEOM_asText(), lwgeom_to_ewkt(), lwgeom_to_text(), lwt_ChangeEdgeGeom(), lwt_GetFaceEdges(), rect_tree_to_wkt(), rt_raster_gdal_polygonize(), rt_raster_surface(), test_lwcurve_linearize(), test_lwgeom_locate_along(), test_misc_wkb(), test_unstroke(), and triangle_parse().