[mapserver-users] GetStyles SLD does not include Opacity value

myOpenLayersUName joanne.mcgraw at SYMPATICO.CA
Wed Jun 6 07:27:50 PDT 2012


Now that I've advanced beyond the simple example included above, I see a
possible shortcoming with the current implementation of the GetStyles
request with respect to including rule's opacity and am wondering if this is
something worth pursuing...

While it is easy in my original example with a single CLASS in the layer, to
move the opacity parameter within the CLASS' STYLE, what if my LAYER has a
number of CLASSes? Given the current implementation, if I want to see the
opacity in the GetStyles response, I will have to include the OPACITY
setting in every CLASS STYLE, even though they are all the same and a major
advantage of the LAYER's OPACITY value is avoiding that duplication (and
potential for inconsistency). 

Since the GetMap and GetLegendGraphic renderers are capable of reviewing
whether a CLASS STYLE's or the LAYER's OPACITY value is set and draw the
image accordingly, it must be possible for the GetStyles response to do the
same. My question is "Should it?" Or am I off the mark in my expectations
here?

Cheers
jtm



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GetStyles-SLD-does-not-include-Opacity-value-tp4979066p4979520.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list