Hi Bernard Thanks. If you have a lot of rules for the same style in different scales you end up with a unreadable legend.
Stefan > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im > Auftrag von Bernhard Ströbl > Gesendet: Dienstag, 19. November 2013 08:28 > An: [email protected] > Betreff: Re: [Qgis-user] data defined style with $scale > > Hi Stefan, > > neither a solution nor an answer but a workaround: > I always use the rule based renderer and set the scale for the rule (I > _think_ this may > also be faster) > > Bernhard > > Am 19.11.2013 07:50, schrieb Ziegler Stefan: > > Hi > > > > I have a question regarding data defined styling. I'm using the $scale > > parameter to > define the line width: > > > > CASE > > WHEN $scale<= 500.0 THEN 1 > > WHEN ($scale> 500 AND $scale<= 1000) THEN 0.5 END > > > > I would expect that the line is not drawn with a scale larger than 1000. > > But it seems > the line is still drawn. It even draws the line with an ELSE-statement: > > > > CASE > > WHEN $scale<= 500.0 THEN 1 > > WHEN ($scale> 500 AND $scale<= 1000) THEN 0.5 ELSE 0.0 END > > > > It seems that I get my expected result when I use an ELSE value near zero > > (e.g. > 0.0000001). > > > > Is this on purpose? Or is there an error in my statement? > > > > > > regards > > Stefan > > > > Freundliche Grüsse > > Stefan Ziegler > > Kantonsgeometer > > > > Amt für Geoinformation > > Amtliche Vermessung > > Rötistrasse 4 > > 4500 Solothurn > > > > Telefon +41 32 627 75 96 > > Telefax +41 32 627 75 98 > > [email protected] > > http://www.so.ch > > > > _______________________________________________ > > Qgis-user mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/qgis-user > > > > > > __________ Information from ESET Mail Security, version of virus > > signature database 9065 (20131118) __________ > > > > The message was checked by ESET Mail Security. > > http://www.eset.com > > > > > > > > __________ Information from ESET Mail Security, version of virus signature > database > 9065 (20131118) __________ > > The message was checked by ESET Mail Security. > http://www.eset.com > > > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
