13 lines
735 B
Plaintext
Raw Normal View History

{
"name": "geom_to_wkt",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Returns the Well-Known Text (WKT) representation of the geometry without SRID metadata.",
"arguments": [ {"arg":"geometry","description":"a geometry"},
{"arg":"precision","description":"numeric precision", "optional":true, "default":"8"}],
"examples": [ { "expression":"geom_to_wkt( make_point(6, 50) )", "returns":"'POINT(6 50)'"},
2020-08-23 09:08:36 +02:00
{ "expression":"geom_to_wkt(centroid(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))')))", "returns":"'POINT(0 0.66666667)'"},
{ "expression":"geom_to_wkt(centroid(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))')), 2)", "returns":"'POINT(0 0.67)'"}
]
}