QGIS/tests/testdata/labeling/polygon_rect.geojson
Nyall Dawson bb42c43829 Fix bug in polygon label candidate ranking
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.
2019-12-26 13:18:57 +10:00

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 ] ] ] } }
]
}