<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Calibri;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 70.85pt 70.85pt 70.85pt 70.85pt; }
P.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.E-postmall17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext; mso-style-type: personal-compose
}
.MsoChpDefault {
        FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=SV link=blue vLink=purple>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=437123117-05032012>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=437123117-05032012></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=437123117-05032012>without the ogc:function it should
work:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=437123117-05032012></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial><sld:Rule><BR><sld:Name>Rule
1</sld:Name><BR><ogc:Filter xmlns:ogc="<A
href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>"><BR><ogc:PropertyIsBetween><BR><ogc:PropertyName>ROAD_WIDTH</ogc:PropertyName><BR><ogc:LowerBoundary><BR><ogc:Literal>0</ogc:Literal><BR></ogc:LowerBoundary><BR><ogc:UpperBoundary><BR><ogc:Literal>3</ogc:Literal><BR></ogc:UpperBoundary><BR></ogc:PropertyIsBetween><BR></ogc:Filter><BR>...<BR></sld:Rule><BR></DIV>
<DIV></FONT><SPAN class=437123117-05032012><FONT color=#0000ff size=2
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Gottfrid
Linge<BR><B>Gesendet:</B> Montag, 5. März 2012 15:40<BR><B>An:</B>
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users]
ogc:Function parseDouble in SLD for OpenLayers<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=WordSection1>
<P class=MsoNormal>Hi there!<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>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?<o:p></o:p></P>
<P class=MsoNormal>Example from SLD below. The rule should match where 3
>= ROAD_WIDTH >= 0, but it doesn't.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>
<Rule><o:p></o:p></P>
<P class=MsoNormal>
<Title>RoadWidth from 0 to 3 meters</Title><o:p></o:p></P>
<P class=MsoNormal>
<ogc:Filter><o:p></o:p></P>
<P class=MsoNormal>
<ogc:PropertyIsBetween><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:Function
name="parseDouble"><ogc:PropertyName>ROAD_WIDTH</ogc:PropertyName></ogc:Function>
<o:p></o:p></P>
<P
class=MsoNormal> <ogc:LowerBoundary><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:Literal>0</ogc:Literal><o:p></o:p></P>
<P
class=MsoNormal>
</ogc:LowerBoundary><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:UpperBoundary><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:Literal>3</ogc:Literal><o:p></o:p></P>
<P
class=MsoNormal>
</ogc:UpperBoundary><o:p></o:p></P>
<P
class=MsoNormal>
</ogc:PropertyIsBetween><o:p></o:p></P>
<P class=MsoNormal>
</ogc:Filter><o:p></o:p></P>
<P class=MsoNormal>
<LineSymbolizer><o:p></o:p></P>
<P
class=MsoNormal>
<Stroke><o:p></o:p></P>
<P
class=MsoNormal>
<CssParameter name="stroke"><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:Literal>#008000</ogc:Literal><o:p></o:p></P>
<P
class=MsoNormal>
</CssParameter><o:p></o:p></P>
<P
class=MsoNormal>
<CssParameter name="stroke-width"><o:p></o:p></P>
<P
class=MsoNormal>
<ogc:Literal>2</ogc:Literal><o:p></o:p></P>
<P
class=MsoNormal>
</CssParameter><o:p></o:p></P>
<P
class=MsoNormal>
</Stroke><o:p></o:p></P>
<P class=MsoNormal>
</LineSymbolizer><o:p></o:p></P>
<P class=MsoNormal>
</Rule><o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Kind regards,<o:p></o:p></P>
<P class=MsoNormal>Gottfrid Linge<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center>
<HR style="COLOR: #707998" align=center SIZE=9 width="100%" noShade>
</DIV>
<TABLE style="WIDTH: 432pt" class=MsoNormalTable border=0 cellSpacing=0
cellPadding=0 width=720>
<TBODY>
<TR style="HEIGHT: 47.55pt">
<TD
style="PADDING-BOTTOM: 3pt; PADDING-LEFT: 3pt; WIDTH: 255pt; PADDING-RIGHT: 3pt; HEIGHT: 47.55pt; PADDING-TOP: 3pt"
vAlign=top width=425>
<P style="MARGIN-BOTTOM: 3pt; mso-margin-top-alt: auto"
class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"
lang=EN-US>Gottfrid Linge</SPAN></B><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 3pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 3.0pt"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"
lang=EN-US>Senior System Developer<o:p></o:p></SPAN></P>
<P
style="MARGIN-BOTTOM: 3pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 3.0pt"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt" lang=EN-US>Tel:
+46 706 904888<BR></SPAN><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"><A
href="mailto:gottfrid.linge@astando.se"><SPAN style="COLOR: blue"
lang=EN-US>gottfrid.linge@astando.se</SPAN></A></SPAN><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"
lang=EN-US><o:p></o:p></SPAN></P></TD>
<TD
style="PADDING-BOTTOM: 3pt; PADDING-LEFT: 3pt; WIDTH: 177pt; PADDING-RIGHT: 3pt; HEIGHT: 47.55pt; PADDING-TOP: 3pt"
vAlign=top width=295>
<P style="MARGIN-BOTTOM: 3pt; mso-margin-top-alt: auto"
class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Astando
AB<o:p></o:p></SPAN></B></P>
<P
style="MARGIN-BOTTOM: 3pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; mso-margin-top-alt: 3.0pt"
class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Hantverkargatan
5<BR>112 21 Stockholm<BR><A title=http://www.astando.se
href="blocked::http://www.astando.se"><SPAN
style="COLOR: blue">www.astando.se</SPAN></A></SPAN><SPAN
style="FONT-SIZE: 12pt"><o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 6pt">
<HR style="COLOR: #7e9f42" align=center SIZE=6 width="100%" noShade>
</SPAN></DIV>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 6pt">
<HR style="COLOR: #9e7340" align=center SIZE=15 width="100%" noShade>
</SPAN></DIV>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML>