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: [email protected]
[mailto:[email protected]] Im Auftrag von Gottfrid
Linge
Gesendet: Montag, 5. März 2012 15:40
An: [email protected]
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:[email protected]> [email protected]

Astando AB

Hantverkargatan 5
112 21 Stockholm
 <blocked::http://www.astando.se> www.astando.se

  _____  

  _____  

 

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to