On 30-11-16 18:25, Torben Barsballe wrote: > I wonder if we could tie the area calculation to UOM > <http://docs.geoserver.org/2.1.4/user/styling/sld-extensions/uom.html>? > Looks like currently UOM is an attribute on the symbolizer, so not quite > in the right place to work with area, but might be something to think about. > > In the interim, you may be able to use the wms_scale_denominator > environment variable > <http://docs.geoserver.org/2.2.4/user/styling/sld-extensions/substitution.html#predefined-variables> > to calculate the proper area from the area in pixels.
Ah! That is a cool trick. Did not come up on this one, Thanks! For me it does not have to be very precise, I just want to have some artificial treshold to say "and now it is a point". So I think if I can pull wms_scale_denominator into my function I'm happy. Regards, Richard ------------------------------------------------------------------------------ _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel