Nice!  I'll add it to the doc (and maybe even provide an example at some
point)

On Sat, Jun 2, 2012 at 1:10 AM, Andrea Aime <andrea.a...@geo-solutions.it>wrote:

> On Fri, Jun 1, 2012 at 6:08 PM, Martin Davis <mda...@opengeo.org> wrote:
>
>> If the styling parameters are controlled by feature attributes, that you
>> might be able to use Filter expressions in the parameters to compute the
>> value dynamically.
>>
>> GeoServer supports the OGC SE Recode function now, which might make this
>> easier.
>>
>
> The above all help in case the rule work on the feature attributes, but
> the case here is working
> against the scale denominator instead.
>
> Now, it would be possible to use them in case the scale denominator is
> exposed as a enviroment
> variable (env function), which is not available right now. GetMap.java has
> the following:
>
>         EnvFunction.setLocalValue("wms_bbox",
> mapContent.getRenderingArea());
>         EnvFunction.setLocalValue("wms_crs",
> mapContent.getRenderingArea().getCoordinateReferenceSystem());
>         EnvFunction.setLocalValue("wms_srs",
> mapContent.getRequest().getSRS());
>         EnvFunction.setLocalValue("wms_width", mapContent.getMapWidth());
>         EnvFunction.setLocalValue("wms_height", mapContent.getMapHeight());
>
> If we added the scale denominator it would also be possible to use
> "categorize" to
> apply different values based on the current scale (categorize works
> against ranges,
> recode is a point to point map instead).
>
> Since it takes more time to write this mail than to add that line of code,
> I just did:
> http://jira.codehaus.org/browse/GEOS-5142
>
> GeoServer 2.2-beta3 will have the scale denominator available as an env
> variable
> under the wms_scale_denominator name.
>
> Cheers
> Andrea
>
>
> --
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:      +39 0584 962313
> mob:    +39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
>


-- 
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to