-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CssParameter for stroke-opacity ignored in PolygonSymbolizer #4132
Comments
|
Author: myOpenLayersUName It's what we're going with unless I learn it's a bad idea through this venue at some point. |
|
Author: dmorissette Perhaps if you could include an example (SLD) that would help understand the issue? |
|
Author: myOpenLayersUName This was the PolygonSymbolizer I was trying to use. Everything was rendered appropriately except the stroke-opacity. When I changed the lines as indicated above, it worked but I really have little idea whether it's correct or appropriate. Additional background info can be found at: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-td7028772.html. The original message discusses stoke-opacity with PointSymbolizers (among other things), but the second and latter messages talk about stoke-opacity in the PolygonSymbolizer. |
|
In direct response to dmorrisette's comment: "The title says 'stroke-opacity' is ignored, but then the rest of the comments relate to the alpha only.", the existing code seemed to look at the alpha to determine opacity elsewhere so I merely continued the practice in my code to be consistent. I thought it odd as well, but it seems to be the case throughout this particular class definition (mapogcsld). Cheers, |
|
msSLDParseStroke has a parameter to tell if we should use the style's color or outlinecolor. Untested fix committed, keeping fingers crossed :) |
Reporter: myOpenLayersUName
Date: 2011/12/21 - 18:59
Trac URL: http://trac.osgeo.org/mapserver/ticket/4132
The following value is ignored in an SLD 's Stroke tag:[[BR]]
stroke-opacity
As far as I can tell, the reason is because mapogcsld.c's msSLDParseStroke method uses the following line to set this value in the style:
While that line works for LineSymbolizer's it should be as follows for PolygonSymbolizer's:
Unfortunately, I don't know how I would know which Symbolizer I'm dealing with at that point in the code so I can't suggest a fix but I'm sure someone who knows this code would be able to come up with something fairly quickly.
The text was updated successfully, but these errors were encountered: