Feature request #15399

Support for polygon outline labelling

Added by Frits van Veen 9 months ago. Updated 9 months ago.

Status:Feedback Start Date:08/06/2016
Priority:Normal Due date:
Assigned to:Frits van Veen % Done:

0%

Category:Labelling
Target version:Version 3.0
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

Some datasets have polygon style labels, where the polygon is the outline of the label.
Now that we have the option 'Using perimeter (curved)', this can be used, but it is not optimal. The label is not placed at the center and the font must be smaller than necessary or no label is plotted at all.
The whole perimeter is considered while we would like to consider only the center line of the polygon.
I think a new option is needed: 'Using polygon as outline'. The center line of the polygon should be calculated and the label should be plotted on this line.
The height of the label could be deduced from the height of the polygon, but I do not think this is sensible.
Which edges represent the height of the label can perhaps be determined whether two adjacent edges have an angle of around 90 degrees.
Furthermore the dataset might contain multipolygons, where every word of the label should match a polygon.

2016-08-06_12_15_04-QGIS_2.16.0-Nødebo_-_Top10NL.png - multipolygon example (223.9 kB) Frits van Veen, 08/06/2016 03:19 am

2016-08-06_12_13_02-QGIS_2.16.0-Nødebo_-_Top10NL.png - polygon outline labels (888.8 kB) Frits van Veen, 08/06/2016 03:19 am

2016-08-06_12_13_30-Top250.dtxml_-_DisplayTopo.png - official Top25NL map (1.1 MB) Frits van Veen, 08/06/2016 03:19 am

History

Updated by Nyall Dawson 9 months ago

  • Status changed from Open to Feedback

Frits - it's not immediately clear exactly what you're after here. Can you attach a sketch or some illustration?

Updated by Frits van Veen 9 months ago

I added some examples. Picture 12_13_30 is the official map from the Dutch Kadaster. The rest my rendition with QGIS.

Also available in: Atom