5

Is there any tool or function to create muliple labels on polygons?

enter image description here

Edit:

Meanwhile I've created a point layer for label placement using the refFunctions plugin.

geomwithin('polygon', 'label')

Unfortunately QGIS gets quite slow having a few hundred point features.

Lunar Sea
  • 1,986
  • 3
  • 24
  • 39

1 Answers1

5

As far as I know there is no such tool. The work-around is to either split the polygon into multiple polygons or create a point layer for label placement.

The spatial join approach you've posted has to be slow since it does not take advantage of any spatial index thus looping through all features every time.

underdark
  • 84,148
  • 21
  • 231
  • 413
  • How to add a spatial index? Is there any way creating a scale-based spatial join? – Lunar Sea Jul 05 '15 at 21:00
  • At small scales there is no need for labeling the polygons. – Lunar Sea Jul 05 '15 at 21:10
  • 1
    Nice workaround Underdark. there is a link http://gis.stackexchange.com/questions/31207/generate-random-points-in-selected-areas-for to creating random points to intersect with the polygon for a more natural feel. – Michael Stimson Jul 05 '15 at 22:32