MapServer / MapServer-import

3 stars 2 forks source link

Unexpected WFS GetFeature results with Postgis layer #1308

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: assefa Date: 2005/04/07 - 23:49

e-mail from Tom Kralidis

Assefa,

I tested this scenario with CVS 20050328 (the day before you committed
to mapogcfilter.c and mapogcfilter.h), and everything works fine.

So the problem is somewhere in those changes.

Here's the actual OGC filter:

<Filter>
 <And>
  <BBOX>
   <PropertyName>NAME</PropertyName>
    <Box srsName="EPSG:4326">
     <coordinates>-141.84,21.599999999999994 -56.16,74.16</coordinates>
    </Box>
  </BBOX>
  <Or>
   <Or>
    <PropertyIsLike wildCard="*" singleChar="." escape="!">
     <PropertyName>title</PropertyName>
     <Literal>benthic</Literal>
    </PropertyIsLike>
    <PropertyIsLike wildCard="*" singleChar="." escape="!">
     <PropertyName>abstract</PropertyName>
     <Literal>benthic</Literal>
    </PropertyIsLike>
   </Or>
   <PropertyIsLike wildCard="*" singleChar="." escape="!">
    <PropertyName>keywords</PropertyName>
    <Literal>benthic</Literal>
   </PropertyIsLike>
  </Or>
 </And>
</Filter>
tbonfort commented 12 years ago

Author: assefa Date: 2005/04/07 - 23:51

The bug was intrduced during the latest changes done to optimize wfs filter 
with postgis/otrcale latyer (Bug 1292).

Corrected and tested with Tom's filter.