I'm working with variable scales and have to convert the width-property (in
meter) of a line to the width in pixels - therefore I need the actual scale.
Is there any way to get the scale as property in the SLD, so that I can do
calculations with it? Doing it with Min- and MaxScaleDenominator would
require quite a few differentiations and does not seem to be a feasible
solution to me!
I'm working with variable scales and have to convert the width-property (in
meter) of a line to the width in pixels - therefore I need the actual scale.
Is there any way to get the scale as property in the SLD, so that I can do
calculations with it? Doing it with Min- and MaxScaleDenominator would
require quite a few differentiations and does not seem to be a feasible
solution to me!
Not at the moment, thought I have plans to add it in a future version
of GeoServer.
In GeoTools M. Bedward already added an enviroment
function that could be use to store and retrieve such kind of
information.
Also, if you look on GeoTools devel list someone has been working
on adding unit of meaure support as a extra on top of SLD 1.0
(as opposed to supporting SE 1.1), however the patch has not landed.
Neither of them are going to happen this week, but they might land
in GeoServer in the next couple of months (when exactly I don't know,
there is no direct funding for neither of them so they get delayed
by higher priority stuff)
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.