mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-08 00:06:51 -05:00
- Expose default values of args - Fix args name or description - Fix/add more examples (to show various possibilities of a function or so that functions that relate have examples that relate)
13 lines
731 B
Plaintext
13 lines
731 B
Plaintext
{
|
|
"name": "geom_to_wkt",
|
|
"type": "function",
|
|
"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)'"},
|
|
{ "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)"}
|
|
]
|
|
}
|