mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
19 lines
702 B
Plaintext
19 lines
702 B
Plaintext
{
|
|
"name": "bounds",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns a geometry which represents the bounding box of an input geometry. Calculations are in the Spatial Reference System of this geometry.",
|
|
"arguments": [{
|
|
"arg": "geometry",
|
|
"description": "a geometry"
|
|
}],
|
|
"examples": [{
|
|
"expression": "bounds(@geometry)",
|
|
"returns": "bounding box of the current feature's geometry"
|
|
}, {
|
|
"expression": "geom_to_wkt(bounds(geom_from_wkt('Polygon((1 1, 0 0, -1 1, 1 1))')))",
|
|
"returns": "'Polygon ((-1 0, 1 0, 1 1, -1 1, -1 0))'"
|
|
}],
|
|
"tags": ["box", "input", "spatial", "reference", "calculations", "system", "represents", "bounding"]
|
|
}
|