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

Bernhard Ströbl bernhard.stroebl at jena.de
Thu Apr 30 02:04:55 PDT 2015


Hi Andreas,

I agree, the UI is much nicer and it would be great to have a similar 
one for the labels where you define a rule and then set text color, halo 
etc. for this case (and even the label text itself). Currently you have 
to click into data-defined properties and reenter the same rule at 
several places.

Yes the coupling of geometry rendering and labelling would be good to 
have. Currently features are labeled even if the are covered by other 
features. No idea how much effect this would have on the rendering speed.

Bernhard

Am 30.04.2015 10:50, schrieb Andreas Neumann:
> Hi Bernhard,
>
> Yes - we "sort of" have "rule based" labeling with the data-defined
> properties and conditions. But for very complex labeling it is a bit
> hard to track. The rules are so distributed in different
> places/properties that it is hard to get an overview what is really
> going on.
>
> I mean the UI of the rule-based symbology is nicer and allows to change
> multiple graphical properties of the same rule at once.
>
> There is certainly room for improvements.
>
> A coupling of rendering and labeling would be quite interesting (esp.
> for the case Otto is mentioning where users want to selectively
> enable/disable rules/categories), I think - but I don't know if it is
> technically solvable (or how hard it is).
>
> Andreas
>
> On 30.04.2015 10:37, Bernhard Ströbl wrote:
>> Hi Andreas,
>>
>> don't we have rule-based labelling?
>> CASE WHEN <condition> THEN 'bla' ELSE 'blub' END
>>
>> Problem is that you may have to rewrite all the rules that you already
>> have written in the rule-based style.
>>
>> Bernhard
>>
>> Am 30.04.2015 10:21, schrieb Andreas Neumann:
>>> 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
>>>>
>>


__________ Information from ESET Mail Security, version of virus signature database 11556 (20150430) __________

The message was checked by ESET Mail Security.
http://www.eset.com





More information about the Qgis-user mailing list