2015-06-11 12:02:27 +10:00
|
|
|
{
|
2015-09-20 17:12:43 +02:00
|
|
|
"name": "geom_to_wkt",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2015-06-11 12:02:27 +10:00
|
|
|
"description": "Returns the Well-Known Text (WKT) representation of the geometry without SRID metadata.",
|
2019-11-25 16:24:06 +10:00
|
|
|
"arguments": [ {"arg":"geometry","description":"a geometry"},
|
2020-08-15 12:22:39 +02:00
|
|
|
{"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)'"}
|
2020-08-15 12:22:39 +02:00
|
|
|
]
|
2015-06-11 12:02:27 +10:00
|
|
|
}
|