[Qgis-user] show labels only, if objects are activated/visible

Andreas Neumann a.neumann at carto.net
Thu Apr 30 01:21:45 PDT 2015


Hi Otto,

I don't think that this is possible. As far as I know the labeling is 
totally disconnected from the symbology. Only global filters on the 
whole layer (the filter in the general tab in the layer properties) is 
honored by both labeling and the rest of the symbology. The rest is 
totally disconnected.

I can see value in what you want, but I doubt it is easily possible.

It would also help if we would have rule based labeling, so we could at 
least apply similar rules to the labels as we apply to the symbology of 
features.

Larry probably knows more about that.

Andreas

On 30.04.2015 09:44, Otto Dassau wrote:
> Hi,
>
> is it possible to show labels only, if the objects are activated/visible?
>
> I use the rule based renderer with two nested rules, both categorized
> rendering, like:
>
> Cat 1
> #####
>
> Road 1
>           Cat 2
>           ######
>
>        |_ Lukas
>        |_ Frank
>        |_ Markus
>        |_ Georg
>
> Road 2
>
>        |_ John
>        |_ Leo
>        |_ Herbert
>
>
> If I deactivate labeling for some values in the first categorized
> rendering (Cat 1), objects and labels are invisible. But if I deactivate
> labeling for some values in the second categorized rendering (Cat 2),
> objects are invisible but labels are still shown.
>
> Is there a way how to solve this in the rule based renderer?
>
> Thanks a lot
> Otto
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list