mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Previous test was just checking point in polygon for the corner, mid points and center. This test was not sufficient for narrow or small polygons which were not covered by these points but were still covering parts of the label candidate. Now, the area of the intersection between the obstacle polygon and the label candidate is used to calculate the obstacle cost.