mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
main angle of a geometry Returns the angle of the oriented minimum bounding box which covers the geometry value. Useful for data defined overrides in symbology of label expressions, e.g. to rotate labels to match the overall angle of a polygon, and similar for line pattern fills...
10 lines
423 B
Plaintext
10 lines
423 B
Plaintext
{
|
|
"name": "oriented_bbox",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description":"Returns a geometry which represents the minimal oriented bounding box of an input geometry.",
|
|
"arguments": [ {"arg":"geometry","description":"a geometry"} ],
|
|
"examples": [ { "expression":"geom_to_wkt( oriented_bbox( geom_from_wkt( 'MULTIPOINT(1 2, 3 4, 3 2)' ) ) )", "returns":"Polygon ((1 4, 1 2, 3 2, 3 4, 1 4))"}]
|
|
}
|
|
|