AW: [OpenLayers-Users] ogc:Function parseDouble in SLD for OpenLayers
Arnd Wippermann
arnd.wippermann at web.de
Mon Mar 5 12:34:12 EST 2012
Hi,
without the ogc:function it should work:
<sld:Rule>
<sld:Name>Rule 1</sld:Name>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsBetween>
<ogc:PropertyName>ROAD_WIDTH</ogc:PropertyName>
<ogc:LowerBoundary>
<ogc:Literal>0</ogc:Literal>
</ogc:LowerBoundary>
<ogc:UpperBoundary>
<ogc:Literal>3</ogc:Literal>
</ogc:UpperBoundary>
</ogc:PropertyIsBetween>
</ogc:Filter>
...
</sld:Rule>
Arnd
_____
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Gottfrid
Linge
Gesendet: Montag, 5. März 2012 15:40
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] ogc:Function parseDouble in SLD for OpenLayers
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:Func
tion>
<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
<mailto:gottfrid.linge at astando.se> gottfrid.linge at astando.se
Astando AB
Hantverkargatan 5
112 21 Stockholm
<blocked::http://www.astando.se> www.astando.se
_____
_____
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120305/e2f73f32/attachment.html
More information about the Users
mailing list