[OpenLayers-Users] ogc:Function parseDouble in SLD for OpenLayers
Gottfrid Linge
gottfrid.linge at astando.se
Mon Mar 5 09:40:29 EST 2012
Hi there!
I am using the ogc:function parseDouble in my SLD in OpenLayers. It seems to not work in OpenLayers (it works in GeoServer for WMS) for my WFS layers. Is this a bug? In that case, is there a workaround so that I can use my propertyIsBetween filter for string properties?
Example from SLD below. The rule should match where 3 >= ROAD_WIDTH >= 0, but it doesn't.
<Rule>
<Title>RoadWidth from 0 to 3 meters</Title>
<ogc:Filter>
<ogc:PropertyIsBetween>
<ogc:Function name="parseDouble"><ogc:PropertyName>ROAD_WIDTH</ogc:PropertyName></ogc:Function>
<ogc:LowerBoundary>
<ogc:Literal>0</ogc:Literal>
</ogc:LowerBoundary>
<ogc:UpperBoundary>
<ogc:Literal>3</ogc:Literal>
</ogc:UpperBoundary>
</ogc:PropertyIsBetween>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">
<ogc:Literal>#008000</ogc:Literal>
</CssParameter>
<CssParameter name="stroke-width">
<ogc:Literal>2</ogc:Literal>
</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
Kind regards,
Gottfrid Linge
________________________________
Gottfrid Linge
Senior System Developer
Tel: +46 706 904888
gottfrid.linge at astando.se<mailto:gottfrid.linge at astando.se>
Astando AB
Hantverkargatan 5
112 21 Stockholm
www.astando.se<blocked::http://www.astando.se>
________________________________
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120305/9cafc67a/attachment-0001.html
More information about the Users
mailing list