Harrissou Sant-anna ae8ea31a0f More updates of expression help
- 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)
2020-08-21 13:02:35 +10:00

12 lines
544 B
Plaintext

{
"name": "bounds_width",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns the width of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"bounds_width($geometry)", "returns":"width of bounding box of the current feature's geometry"},
{ "expression":"bounds_width(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))'))", "returns":"2"}
]
}