Project: QGIS

Version: 3.16

Feature: Add "main_angle" function to return the estimated 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 the symbology of label expressions, e.g. to rotate labels to match the overall angle of a polygon, and similar for line pattern fill.

This feature was funded by Kanton Solothurn

This feature was developed by Nyall Dawson