Parameter substitution seems to not work for CssParameter stroke in WMS
-----------------------------------------------------------------------
Key: GEOS-4214
URL: http://jira.codehaus.org/browse/GEOS-4214
Project: GeoServer
Issue Type: Bug
Components: WMS
Affects Versions: 2.0.2
Environment: OpenSuse x64 (Tomcat) / Java 64 bit / Shapefiles
Windows 7 x64 (Windows Installer) / Java 32 bits / PostGIS
GeoServer 2.0.2 on both
Reporter: Jeremy Hanoun
Assignee: Andrea Aime
Priority: Trivial
I am trying to use the parameter substitution to create dynamic styles.The problem seems to appears on my both environment.
I made basic request on my browser to test parameter substitution.
Here is the part of my SLD where I define parameters :
The geometry is a MultiLineString
<Rule> <!-- FRC 8 / Real Color / Min 68000 / Max 275000 -->
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:Literal>True</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>FRC8_Display</ogc:Literal>
<ogc:Literal>True</ogc:Literal>
</ogc:Function>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<MinScaleDenominator>68000</MinScaleDenominator>
<MaxScaleDenominator>275000</MaxScaleDenominator>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#
<ogc:Function name="env">
<ogc:Literal>FRC8_Stroke</ogc:Literal>
<ogc:Literal>C1B59D</ogc:Literal>
</ogc:Function>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Function name="env">
<ogc:Literal>FRC8_StrokeWidth</ogc:Literal>
<ogc:Literal>0.1</ogc:Literal>
</ogc:Function>
</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
I have appended the string "&env=FRC8_Stroke:FF0000" to the end of the URL.
Here is an example of the full URL: http://name_of_my_server:8080/geoserver/wms?LAYERS=my_store:frc8&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:3785&BBOX=237007.370923985,6203989.92858932,285927.069026497,6231506.80277565&WIDTH=1280&HEIGHT=720&env=FRC8_Stroke:FF0000
The requested color is ignored and the default color is not used, it always draws line in black.
On the contrary the FRC8_StrokeWidth parameter is perfectly replaced. I also tested the fill on PolygonSymbolizer and it works fine.
I someone can take some time to help me getting a correctly configured environment, i'll be glade to help (not only for this bug of course)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira