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
[email protected]<mailto:[email protected]>

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

________________________________
________________________________

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

Reply via email to