Feature request #15399

Support for polygon outline labelling

Added by Frits van Veen over 8 years ago. Updated over 7 years ago.

Status:Feedback
Priority:Normal
Assignee:Frits van Veen
Category:Labelling
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:23329

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 (224 KB) Frits van Veen, 2016-08-06 03:19 AM

2016-08-06_12_13_02-QGIS_2.16.0-Nødebo_-_Top10NL.png - polygon outline labels (889 KB) Frits van Veen, 2016-08-06 03:19 AM

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

History

#1 Updated by Nyall Dawson over 8 years 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?

#2 Updated by Frits van Veen over 8 years ago

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

#3 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

Also available in: Atom PDF