<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><div>Same result with 1.1.0</div><div><br></div><div>Are you using an CONNECTIONTYPE oraclespatial or a CONNECTIONTYPE OGR to Oracle?</div><div><br></div><div>Mike</div><div><br></div><div><div><div><div>----</div><div>Michael Smith</div></div><div>US Army Corps</div><div>Remote Sensing GIS/Center</div><div>michael.smith@usace.army.mil</div><div><br></div></div><br></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> <<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>><br><span style="font-weight:bold">Date: </span> Wednesday, July 22, 2015 at 9:34 AM<br><span style="font-weight:bold">To: </span> Michael Smith <<a href="mailto:michael.smith.erdc@gmail.com">michael.smith.erdc@gmail.com</a>><br><span style="font-weight:bold">Cc: </span> <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br><span style="font-weight:bold">Subject: </span> Re: [mapserver-users] ogc:PropertyIsEqualTo behaves like PropertyIsLike with oracle<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><font size="2" face="sans-serif">Michael we are using MS7 master and WFS
1.1.0</font><br><font size="2" face="sans-serif">Can you try with this wfs version instead
of 2.0 t osee if you get the same results?</font><br><p><br><br><br><table width="100%" style="border-collapse:collapse;"><tbody><tr valign="top" height="8"><td width="40%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size="1" face="sans-serif"><b>Michael
Smith <<a href="mailto:michael.smith.erdc@gmail.com">michael.smith.erdc@gmail.com</a>></b> </font><p><font size="1" face="sans-serif">2015-07-22 09:32</font></p></td><td width="59%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><table width="100%" style="border-collapse:collapse;"><tbody><tr valign="top" height="21"><td width="57" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><div align="right"><font size="1" face="sans-serif">A</font></div></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size="1" face="sans-serif"><<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>></font></td></tr><tr valign="top" height="21"><td width="57" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><div align="right"><font size="1" face="sans-serif">cc</font></div></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size="1" face="sans-serif"><<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>></font></td></tr><tr valign="top" height="21"><td width="57" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><div align="right"><font size="1" face="sans-serif">Objet</font></div></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size="1" face="sans-serif">Re:
[mapserver-users] ogc:PropertyIsEqualTo behaves like PropertyIsLike with
oracle</font></td></tr></tbody></table><br><table width="393" style="border-collapse:collapse;"><tbody><tr valign="top" height="8"><td width="57" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"></td><td width="336" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"></td></tr></tbody></table><br></td></tr></tbody></table><br><br><br><br><br><font size="2" face="sans-serif">When I do this on my system I get</font><br><br><font size="2" face="sans-serif">request: service=WFS&version=2.0.0&request=GetFeature&typeNames=gridws_pointcloud&Filter=<Filter><PropertyIsEqualto%20MatchCase="FALSE"><PropertyName>FILE_NAME</PropertyName><Literal>test2.las</Literal></PropertyIsEqualTo></Filter></font><br><br><font size="2" face="sans-serif">[Wed Jul 22 09:26:31 2015].885667 got
a IEQ comparison</font><br><font size="2" face="sans-serif">[Wed Jul 22 09:26:31 2015].885676 closing
RE comparison</font><br><font size="2" face="sans-serif">[Wed Jul 22 09:26:31 2015].885681 msOracleSpatialLayerWhichShapes
was called.</font><br><font size="2" face="sans-serif">[Wed Jul 22 09:26:31 2015].885704 msOracleSpatialLayerWhichShapes.
Using this Sql to retrieve the data: SELECT COLLECT_ID, COLLECTION, FILE_NAME,
DATE_LOADED, PC_ID, X, Y, FILE_SIZE_MB, COLLECTDATE, DOWNLOAD_URL, SENSOR_NAME,
rownum, geom WHERE  ( REGEXP_LIKE( FILE_NAME, 'test2.las','i'  )
)  AND SDO_FILTER( geom, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates
),'querytype=window') = 'TRUE'</font><br><br><font size="2" face="sans-serif">This shows that its translating the
PropertyIsEqualTo with MatchCase false to a regexp_like case insensitive
query with no wildcards. Not sure why you wouldn't get the same thing.</font><br><br><font size="2" face="sans-serif">Mike</font><br><br><font size="2" face="sans-serif">----</font><br><font size="2" face="sans-serif">Michael Smith</font><br><font size="2" face="sans-serif">US Army Corps</font><br><font size="2" face="sans-serif">Remote Sensing GIS/Center</font><br><font size="2" face="sans-serif"><a href="mailto:michael.smith@usace.army.mil">michael.smith@usace.army.mil</a></font><br><br><br><font size="2"><b>From: </b><</font><a href="mailto:Steve.Toutant@inspq.qc.ca"><font size="2" color="blue"><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size="2">><b><br>
Date: </b>Wednesday, July 22, 2015 at 9:13 AM<b><br>
To: </b>Michael Smith <</font><a href="mailto:michael.smith.erdc@gmail.com"><font size="2" color="blue"><u>michael.smith.erdc@gmail.com</u></font></a><font size="2">><b><br>
Cc: </b><</font><a href="mailto:mapserver-users@lists.osgeo.org"><font size="2" color="blue"><u>mapserver-users@lists.osgeo.org</u></font></a><font size="2">><b><br>
Subject: </b>Re: [mapserver-users] ogc:PropertyIsEqualTo behaves like PropertyIsLike
with oracle</font><br><br><font size="2" face="sans-serif">Thanks for your help, here is the log<br>
Steve</font><font size="3" face="sans-serif"><br>
 ul 22 08:14:09 2015].892715 msOracleSpatialLayerWhichShapes. Bind values:
srid:4326 minx:-91.320741 miny:41.948470 maxx:-45.679259 maxy:63.664769<br>
[Wed Jul 22 08:14:09 2015].894113 msOracleSpatialLayerWhichShapes bind
by name and object.<br>
[Wed Jul 22 08:14:09 2015].894134 msOracleSpatialLayerWhichShapes name
and object now bound.<br>
[Wed Jul 22 08:14:10 2015].77889 mapserv request processing time (msLoadMap
not incl.): 0.203s<br>
[Wed Jul 22 08:14:10 2015].77903 msOracleSpatialLayerClose was called.
Layer: 0x1308650, Layer name: SMDVDP_STAT_METE<br>
[Wed Jul 22 08:14:10 2015].78084 msConnPoolRelease(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc,0x1481850)<br>
[Wed Jul 22 08:14:30 2015].200042 CGI Request 38 on process 14430<br>
[Wed Jul 22 08:14:30 2015].200197 msOracleSpatialLayerOpen called with:
GEOM_POIN from (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM
D_DEB) = 2015) USING SRID 4326 (Layer pointer 0x142bbe0)<br>
[Wed Jul 22 08:14:30 2015].200215 msConnPoolRequest(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc)
-> got 0x1481850<br>
[Wed Jul 22 08:14:30 2015].208656 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].208676 msOracleSpatialLayerGetItems was called.<br>
[Wed Jul 22 08:14:30 2015].209323 msOracleSpatialLayerInitItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].209369 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].209374 msOracleSpatialLayerClose was called.
Layer: 0x142bbe0, Layer name: SMDVDP_STAT_METE<br>
[Wed Jul 22 08:14:30 2015].209396 msConnPoolRelease(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc,0x1481850)<br>
[Wed Jul 22 08:14:30 2015].210875 msOracleSpatialLayerOpen called with:
GEOM_POIN from (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM
D_DEB) = 2015) USING SRID 4326 (Layer pointer 0x142bbe0)<br>
[Wed Jul 22 08:14:30 2015].210889 msConnPoolRequest(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc)
-> got 0x1481850<br>
[Wed Jul 22 08:14:30 2015].218325 msOracleSpatialLayerOpen called with:
GEOM_POIN from (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM
D_DEB) = 2015) USING SRID 4326 (Layer pointer 0x142bbe0)<br>
[Wed Jul 22 08:14:30 2015].218345 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].218354 msOracleSpatialLayerGetItems was called.<br>
[Wed Jul 22 08:14:30 2015].218946 msOracleSpatialLayerInitItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].218980 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].218985 msOracleSpatialLayerClose was called.
Layer: 0x142bbe0, Layer name: SMDVDP_STAT_METE<br>
[Wed Jul 22 08:14:30 2015].219003 msConnPoolRelease(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc,0x1481850)<br>
[Wed Jul 22 08:14:30 2015].219010 msOracleSpatialLayerOpen called with:
GEOM_POIN from (select * FROM SMDVDP_STAT_METE WHERE EXTRACT(YEAR FROM
D_DEB) = 2015) USING SRID 4326 (Layer pointer 0x142bbe0)<br>
[Wed Jul 22 08:14:30 2015].219018 msConnPoolRequest(SMDVDP_STAT_METE,USER/*************@DATABASE:1521/DEV.fadq.qc)
-> got 0x1481850<br>
[Wed Jul 22 08:14:30 2015].225298 msOracleSpatialLayerEnablePaging was
called.<br>
[Wed Jul 22 08:14:30 2015].225318 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].225328 msOracleSpatialLayerFreeItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].225334 msOracleSpatialLayerGetItems was called.<br>
[Wed Jul 22 08:14:30 2015].225868 msOracleSpatialLayerInitItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].225892 msOracleSpatialLayerInitItemInfo was
called.<br>
[Wed Jul 22 08:14:30 2015].226421 msOracleSpatialLayerTranslateFilter.
String: ("[NOM_STAT]" =*"Anto")<br>
[Wed Jul 22 08:14:30 2015].226429 msOracleSpatialLayerTranslateFilter.
There are tokens to process<br>
[Wed Jul 22 08:14:30 2015].226435 got a IEQ comparison<br>
[Wed Jul 22 08:14:30 2015].226440 closing RE comparison<br>
[Wed Jul 22 08:14:30 2015].226444 msOracleSpatialLayerWhichShapes was called.<br>
[Wed Jul 22 08:14:30 2015].226470 msOracleSpatialLayerWhichShapes. Us</font></p><p><font size="2" face="sans-serif"><br><br></font><table width="100%" style="border-collapse:collapse;"><tbody><tr valign="top" height="8"><td width="34%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><font size="1" face="sans-serif"><b>Michael
Smith <</b></font><a href="mailto:michael.smith.erdc@gmail.com"><font size="1" color="blue" face="sans-serif"><b><u>michael.smith.erdc@gmail.com</u></b></font></a><font size="1" face="sans-serif"><b>></b></font><p><font size="1" face="sans-serif">2015-07-21 11:24</font></p></td><td width="65%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><br><table width="100%" style="border-collapse:collapse;"><tbody><tr valign="top" height="8"><td width="11%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><div align="right"><font size="1" face="sans-serif">A</font></div></td><td width="88%" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><font size="1" face="sans-serif"><</font><a href="mailto:Steve.Toutant@inspq.qc.ca"><font size="1" color="blue" face="sans-serif"><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size="1" face="sans-serif">>,
<</font><a href="mailto:mapserver-users@lists.osgeo.org"><font size="1" color="blue" face="sans-serif"><u>mapserver-users@lists.osgeo.org</u></font></a><font size="1" face="sans-serif">></font></td></tr><tr valign="top" height="8"><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><div align="right"><font size="1" face="sans-serif">cc</font></div></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"></td></tr><tr valign="top" height="8"><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><div align="right"><font size="1" face="sans-serif">Objet</font></div></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"><font size="1" face="sans-serif">Re:
[mapserver-users] ogc:PropertyIsEqualTo behaves like PropertyIsLike with
oracle</font></td></tr></tbody></table><br><br><table width="393" style="border-collapse:collapse;"><tbody><tr valign="top" height="8"><td width="56" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"></td><td width="332" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;"></td></tr></tbody></table><br></td></tr></tbody></table><br><font size="2" face="sans-serif"><br><br><br><br></font><font size="2" face="sans-serif"><br>
Steve,</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><br>
When a case insensitive exact match is used,  the code should use
a regexp_like constructor in Oracle with the case insensitive flag and
an exact pattern.</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><br>
Can you do DEBUG 3 and show the log?</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><br>
Mike</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><br>
-- <br>
Michael Smith<br>
Remote Sensing/GIS Center<br>
US Army Corps of Engineers</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><b><br>
From: </b><</font><a href="mailto:mapserver-users-bounces@lists.osgeo.org"><font size="2" color="blue" face="sans-serif"><u>mapserver-users-bounces@lists.osgeo.org</u></font></a><font size="2" face="sans-serif">>
on behalf of <</font><a href="mailto:Steve.Toutant@inspq.qc.ca"><font size="2" color="blue" face="sans-serif"><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size="2" face="sans-serif">><b><br>
Date: </b>Tuesday, July 21, 2015 at 10:07 AM<b><br>
To: </b><</font><a href="mailto:mapserver-users@lists.osgeo.org"><font size="2" color="blue" face="sans-serif"><u>mapserver-users@lists.osgeo.org</u></font></a><font size="2" face="sans-serif">><b><br>
Subject: </b>[mapserver-users] ogc:PropertyIsEqualTo behaves like PropertyIsLike
with oracle</font><font size="2" face="sans-serif"><br></font><font size="2" face="sans-serif"><br>
Hi,<br>
Using MS7+oracle, I apply a wfs filter </font><font size="3" face="sans-serif">PropertyIsEqualTo</font><font size="2" face="sans-serif">
on a layer attribute (string) with a truncated string, so it should returns
0 features, but it returns 1 feature.<br>
The complete value is "Antonin". I apply the filter using "Anto"<br><br><br>
MS7+Postgis</font><font size="3" face="sans-serif"><br>
<wfs:Query typeName="feature:SMDVDP_STAT_METE" srsName="EPSG:3857"><ogc:Filter
xmlns:ogc="</font><a href="http://www.opengis.net/ogc"><font size="3" color="blue" face="sans-serif"><u>http://www.opengis.net/ogc</u></font></a><font size="3" face="sans-serif">"><ogc:PropertyIsEqualTo
matchCase="false"><ogc:PropertyName>NOM_STAT</ogc:PropertyName><ogc:Literal><b>Anto</b></ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query><br>
numberOfFeatures="0" , that is ok.<br>
Ms log: </font><font size="2" face="sans-serif">FLTLayerApplyPlainFilterToLayer():
 ("[NOM_STAT]" =*"Anto")<br><br>
Ms7+Oracle</font><font size="3" face="sans-serif"><br>
<wfs:Query typeName="feature:SMDVDP_STAT_METE" srsName="EPSG:32198"><ogc:Filter
xmlns:ogc="</font><a href="http://www.opengis.net/ogc"><font size="3" color="blue" face="sans-serif"><u>http://www.opengis.net/ogc</u></font></a><font size="3" face="sans-serif">"><ogc:PropertyIsEqualTo
matchCase="false"><ogc:PropertyName>NOM_STAT</ogc:PropertyName><ogc:Literal><b>Anto</b></ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query><br>
numberOfFeatures="1" , BAD<br>
Mslog: msOracleSpatialLayerTranslateFilter. String: ("[NOM_STAT]"
=*"Anto") <br><br>
Is the problem MS o oracle? Should I open a Ms bug?<br>
Regards!</font></p><p><font size="2" face="sans-serif">_______________________________________________
mapserver-users mailing list </font><a href="mailto:mapserver-users@lists.osgeo.org"><font size="2" color="blue" face="sans-serif"><u>mapserver-users@lists.osgeo.org</u></font></a><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><font size="2" color="blue" face="sans-serif"><u>http://lists.osgeo.org/mailman/listinfo/mapserver-users</u></font></a><font size="2" face="sans-serif"><br><br></font><br><br><br></p></blockquote></span></body></html>