<html 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" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.Shkpostityyli19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
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="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">What does the schema of the feature type show if you check it with DescribeFeatureType? If the property is String I think you should stop what
 you do and make Mapserver to consider and announce the property as numeric first.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a> wrote:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">this works</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#2F2F2F"><ogc:PropertyIsLike matchCase="true" wildCard="*" singleChar="." escapeChar="!"><ogc:PropertyName>LONG_STAT</ogc:PropertyName><ogc:Literal>*-61,8031*</ogc:Literal></ogc:PropertyIsLike></span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial","sans-serif"">But we want to be able to usePropertyIsEqual because are end users won't use PropertyIsLike...</span>
<o:p></o:p></p>
<p style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-collapse:collapse">
<tbody>
<tr style="height:6.0pt">
<td width="40%" valign="top" style="width:40.0%;padding:0cm 0cm 0cm 0cm;height:6.0pt">
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>></span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">
</span><o:p></o:p></p>
<p style="mso-line-height-alt:6.0pt"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">2015-05-13 05:40</span>
<o:p></o:p></p>
</td>
<td width="59%" valign="top" style="width:59.0%;padding:0cm 0cm 0cm 0cm;height:6.0pt">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-collapse:collapse">
<tbody>
<tr style="height:15.75pt">
<td width="57" valign="top" style="width:42.75pt;padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">A</span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif""><a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a></span>
<o:p></o:p></p>
</td>
</tr>
<tr style="height:15.75pt">
<td width="57" valign="top" style="width:42.75pt;padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">cc</span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">MapserverList OSGEO <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>></span>
<o:p></o:p></p>
</td>
</tr>
<tr style="height:15.75pt">
<td width="57" valign="top" style="width:42.75pt;padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal" align="right" style="text-align:right"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Objet</span><o:p></o:p></p>
</td>
<td valign="top" style="padding:0cm 0cm 0cm 0cm;height:15.75pt">
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">Re: [mapserver-users] Mapserver 7+oracle - wfs getFeature with filter on numeric field</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="393" style="width:294.75pt;border-collapse:collapse">
<tbody>
<tr style="height:6.0pt">
<td width="57" valign="top" style="width:42.75pt;padding:0cm 0cm 0cm 0cm;height:6.0pt">
</td>
<td width="336" valign="top" style="width:252.0pt;padding:0cm 0cm 0cm 0cm;height:6.0pt">
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:12.0pt"><br>
<br>
<br>
<br>
<br>
<tt><span style="font-size:10.0pt">can you try the same request without the "matchCase" part and report</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>back please?</tt><br>
<br>
<tt>On 12 May 2015 at 18:11,  <<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>> wrote:</tt><br>
<tt>> I have a problem using a FILTER in a wfs getFeature request on an oracle DB</tt><br>
<tt>> with MS7</tt><br>
<tt>> When I launch a getFeature request with a Filter on a numeric field it</tt><br>
<tt>> doesn't work,</tt><br>
<tt>> <ogc:Filter xmlns:ogc="</tt></span><a href="http://www.opengis.net/ogc"><tt><span style="font-size:10.0pt">http://www.opengis.net/ogc</span></tt></a><tt><span style="font-size:10.0pt">"><ogc:PropertyIsEqualTo</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>> matchCase="false"><ogc:PropertyName>LONG_STAT</ogc:PropertyName><ogc:Literal>-61</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></tt><br>
<tt>> here is the error we get in the browser</tt><br>
<tt>> <ows:Exception exceptionCode="NoApplicableCode" locator="mapserv"></tt><br>
<tt>>    <ows:ExceptionText>msWFSGetFeature(): WFS server error.</tt><br>
<tt>> FLTApplyFilterToLayer() failed</tt><br>
<tt>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Check your data</tt><br>
<tt>> statement and server logs</ows:ExceptionText></tt><br>
<tt>></tt><br>
<tt>> from mapserver logs</tt><br>
<tt>> [Tue May 12 11:59:10 2015].177992 msOracleSpatialLayerTranslateFilter.</tt><br>
<tt>> String:  ([LONG_STAT] =*-61)</tt><br>
<tt>></tt><br>
<tt>> LONG_STAT is a NUMBER in the DB</tt><br>
<tt>> DescribefeatureType returns</tt><br>
<tt>>           <element name="NO_STAT_CLIM" minOccurs="0" type="string"/></tt><br>
<tt>>          <element name="NO_STAT_FADQ" minOccurs="0" type="string"/></tt><br>
<tt>>          <element name="NOM_STAT" minOccurs="0" type="string"/></tt><br>
<tt>>          <element name="LATI_STAT" minOccurs="0" type="string"/></tt><br>
<tt>>          <element name="LONG_STAT" minOccurs="0" type="string"/></tt><br>
<tt>>          <element name="ALTI_STAT" minOccurs="0" type="string"/></tt><br>
<tt>></tt><br>
<tt>> I tried to add "gml_types" "auto" in the mapfile, but it still returns</tt><br>
<tt>> string as data type</tt><br>
<tt>> I tried "gml_LONG_STAT_type" = "Integer" in the mapfile, describeFeatureType</tt><br>
<tt>> returns "<element name="LONG_STAT" minOccurs="0" type="double"/> " but I</tt><br>
<tt>> still get an error in getFeature</tt><br>
<tt>></tt><br>
<tt>> I'm using CONNECTIONTYPE oraclespatial in the mapfile</tt><br>
<tt>></tt><br>
<tt>> I can provide more information....</tt><br>
<tt>></tt><br>
<tt>> Is it a known issue or can I do something about that?</tt><br>
<tt>></tt><br>
<tt>> Thank you!</tt><br>
<tt>> _______________________________________________</tt><br>
<tt>> mapserver-users mailing list</tt><br>
<tt>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></tt><br>
<tt>> </tt></span><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><tt><span style="font-size:10.0pt">http://lists.osgeo.org/mailman/listinfo/mapserver-users</span></tt></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>