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.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"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)'"
|
|
|
|
}, {
|
|
|
|
"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)'"
|
|
|
|
}],
|
2022-01-11 11:17:49 -05:00
|
|
|
"tags": ["text", "wkt", "srid", "representation", "known", "conversion"]
|
2015-06-11 12:02:27 +10:00
|
|
|
}
|