qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.58k stars 3k forks source link

Enhancement: don't show label unless the feature is visible #13317

Open qgib opened 13 years ago

qgib commented 13 years ago

Author Name: Alister Hood (@AlisterH) Original Redmine Issue: 3257

Redmine category:labelling


Labels are currently shown for features that are hidden behind other features.

e.g. see the screenshot at [https://trac.osgeo.org/qgis/ticket/3253], where a white polygon has been used specifically to mask other layers.

It would be good if the labelling engine could detect that a feature is invisible, and not label it. Maybe this should be optional.

I guess this might be very difficult to achieve... and if a good solution was implemented for #13313 I think the benefits of this labeling enhancement would be minimal. But I figure it is worth recording the idea anyway.

qgib commented 12 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 12 years ago

Author Name: Pirmin Kalberer (Pirmin Kalberer)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


AlisterH commented 4 years ago

Back when this ticket was filed I can't remember what the options were like to avoid placing labels over features; it may not be quite so relevant now.

But possibly the most popular use case for it would be when using "Inverted Polygons" styling. For that, it would be good to add an option "minimize placing labels outside the feature", as a counterpart to "minimize placing labels over the features interior".