doc improvement

This commit is contained in:
Alex 2021-04-19 12:24:18 -04:00
parent 14be7e456a
commit 869fdc866d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"name": "main_angle",
"type": "function",
"groups": ["GeometryGroup"],
"description":"Returns the main angle of a geometry (clockwise, in degrees from North), which represents the angle of the oriented minimal bounding rectangle which completely covers the geometry.",
"description":"Returns the angle of the long axis (clockwise, in degrees from North) of the oriented minimal bounding rectangle, which completely covers the geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"} ],
"examples": [ { "expression":"main_angle(geom_from_wkt('Polygon ((321577 129614, 321581 129618, 321585 129615, 321581 129610, 321577 129614))'))", "returns":"38.66"}]
}

View File

@ -199,7 +199,7 @@ class QgsInternalGeometryEngine
/**
* Returns the oriented minimum bounding box for the geometry, which is the smallest (by area)
* rotated rectangle which fully encompasses the geometry.
* The area, angle of the longest axis (clockwise in degrees from North),
* The area, angle of the long axis (clockwise in degrees from North),
* width and height of the rotated bounding box will also be returned.
*
* If an error was encountered while creating the result, more information can be retrieved