[Qgis-user] Refined rules in rule-based styling do not cascade

Mofo Yoda mofoyoda at gmail.com
Mon Feb 16 03:02:46 PST 2015


Oh, thanks! Got it!

Am I right, that rules don’t get cascaded like in CartoCSS, so you always have to turn off the higher level rule symbol and add some kind of ELSE filter to achieve similar rendering behaviour?
Is it possible to set rendering for only first matching rule? I guess that should speed up rendering a bit.


> On 16 Feb 2015, at 05:23, Junior Delaz <delazj at gmail.com> wrote:
> 
> Instead of deactivating higher level rule,I think Anita is talking about deactivating its style. This option (checkbox) is available in "Rule properties" dialog, the dialog where you define rules
> 
> 2015-02-16 0:32 GMT+01:00 Mofo Yoda <mofoyoda at gmail.com <mailto:mofoyoda at gmail.com>>:
> That’s where the problem really is - when I deactivate higher level rule, subrules don’t get rendered. Is this an abnormal behaviour?
> 
>> On 15 Feb 2015, at 22:41, Anita Graser <anitagraser at gmx.at <mailto:anitagraser at gmx.at>> wrote:
>> 
>> 2015-02-15 13:27 GMT+01:00 Mofo Yoda <mofoyoda at gmail.com <mailto:mofoyoda at gmail.com>>:
>> I have a layer with rule-based styling.
>> The first rule filter is “obtype=1”, second is “obtype=2”. When I refine the first rule with scales, I get several subrules (as expected), but they have (no filter) for filter value.
>> But the symbols get rendered from both the higher level rule and the matching subrule - that’s very inconvenient.
>> 
>> ​You can deactivate the symbol of the higher level rule. Then only the subrules will be drawn. This behavior offers a lot of flexibility and makes complex styles possible.​
>> 
>> ​Best wishes,
>> Anita​
>> 
>>  
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/qgis-user <http://lists.osgeo.org/mailman/listinfo/qgis-user>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150216/d93074c7/attachment.html>


More information about the Qgis-user mailing list