mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Candidates furthest from any obstacles were being preferred, even when this resulted in labels being located around the edges of polygon features. The correct logic should be only to consider direct overlaps of the candidate with an obstacle as a conflict, and if a candidate does NOT overlap and obstacles then we rely on the "put labels furthest from edges as possible" rule.
9 lines
536 B
JSON
9 lines
536 B
JSON
{
|
|
"type": "FeatureCollection",
|
|
"name": "polygon_rect",
|
|
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::32613" } },
|
|
"features": [
|
|
{ "type": "Feature", "properties": { "text": "Polygon" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 606348.47103323682677, 4823011.594442130066454 ], [ 606348.47103323682677, 4827007.190112059004605 ], [ 613301.258978648926131, 4827007.190112059004605 ], [ 613301.258978648926131, 4823011.594442130066454 ], [ 606348.47103323682677, 4823011.594442130066454 ] ] ] } }
|
|
]
|
|
}
|