Hi all, some days ago on a gt2 related mailing list someone was asking about using the map scale denominator in SLD to control some symbolizers (using a linear expression instead of a interval based one that can be simulated using rule's mix/max scale), and he was told that the map scale denominator can actually be used in the expressions.
Today I stumbled upon MapScaleDenominatorImpl in 2.2.0 and found that it always returns 1.0, so it's basically useless. Moreover, it's not trivial to implement a working one because the expression just gets a feature, which cannot be obviously used to compute the scale. Renderer may get the sld, clone it, and replace that variable with the current scale, but none is doing it now. As an alternative, the current scale could be put in a thread local for the expressions to use it... Cheers Andrea ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
