This WFS GetFeature request did work if I replaced &lt;ogc:Intersects&gt; with the &lt;ogc:BBOX&gt; spatial filter.<br><br>- John<br><br><br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 12:47 PM, John Callahan <span dir="ltr">&lt;<a href="mailto:john.callahan@udel.edu">john.callahan@udel.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks. Yes, my server does support Intersect filter, according to the<br>
WFS GetCaps file. I&#39;m using the latest MS4W install with MS 6.<br>
<font color="#888888"><br>
John<br>
</font><div><div></div><div class="h5"><br>
<br>
On Thursday, June 9, 2011, Alexandre Dube &lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     Hello,<br>
&gt;<br>
&gt;       If you run a WFS GetCapabilities request on your server, it should<br>
&gt;     tell which filters it supports, see :<br>
&gt;     <a href="http://mapserver.org/ogc/filter_encoding.html#server-side" target="_blank">http://mapserver.org/ogc/filter_encoding.html#server-side</a><br>
&gt;<br>
&gt;       Someone correct me if I&#39;m wrong, but I think MapServer needs to be<br>
&gt;     compiled with GEOS in order to do intersect filters.<br>
&gt;<br>
&gt;     HTH,<br>
&gt;<br>
&gt;     Alexandre<br>
&gt;<br>
&gt;<br>
&gt;     On 11-06-09 12:09 PM, John Callahan wrote:<br>
&gt;     I have the following WFS intersect request that if<br>
&gt;       working with GeoServer, and I&#39;m trying to run this app with<br>
&gt;       MapServer.  The error I&#39;m getting is:<br>
&gt;<br>
&gt;       &lt;ows:ExceptionText&gt;msWFSGetFeature(): WFS server error.<br>
&gt;       Invalid or Unsupported FILTER in GetFeature ...<br>
&gt;<br>
&gt;<br>
&gt;       I&#39;ve dome some reading but not sure exactly what&#39;s supported.  I<br>
&gt;       have used both INTERSECT and INTERSECTS, both return the same<br>
&gt;       error.  Should I skip these and go with BBOX?  If so, I assume I<br>
&gt;       would need to get rid of the lowerCorner/upperCorner items and<br>
&gt;       just list the coordinates separated by commas.  Or could there be<br>
&gt;       a problem with the PropertyName = SHAPE?   I couldn&#39;t find doc on<br>
&gt;       what this value should be.  My data are either shapefiles or<br>
&gt;       postgis layers.<br>
&gt;<br>
&gt;       The POST request is:<br>
&gt;<br>
&gt;       &lt;wfs:GetFeature resultType=&quot;hits&quot; xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>&quot;<br>
&gt;       service=&quot;WFS&quot; version=&quot;1.1.0&quot; xsi:schemaLocation=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
&gt;       <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;<br>
&gt;       xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
&gt;       &lt;wfs:Query typeName=&quot;Municipal_Boundaries&quot; srsName=&quot;EPSG:26957&quot;<br>
&gt;       xmlns:massgis=&quot;<a href="http://massgis.state.ma.us/featuretype" target="_blank">http://massgis.state.ma.us/featuretype</a>&quot;&gt;<br>
&gt;       &lt;ogc:Filter xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>&quot;&gt;<br>
&gt;       &lt;ogc:Intersects&gt;<br>
&gt;       &lt;ogc:PropertyName&gt;SHAPE&lt;/ogc:PropertyName&gt;<br>
&gt;       &lt;gml:Envelope xmlns:gml=&quot;<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>&quot;<br>
&gt;       srsName=&quot;EPSG:26957&quot;&gt;<br>
&gt;       &lt;gml:lowerCorner&gt;149081.76574899518<br>
&gt;       163078.62572595105&lt;/gml:lowerCorner&gt;<br>
&gt;       &lt;gml:upperCorner&gt;205627.85303800018<br>
&gt;       194899.95291598293&lt;/gml:upperCorner&gt;<br>
&gt;       &lt;/gml:Envelope&gt;<br>
&gt;       &lt;/ogc:Intersects&gt;<br>
&gt;       &lt;/ogc:Filter&gt;<br>
&gt;       &lt;/wfs:Query&gt;<br>
&gt;       &lt;/wfs:GetFeature&gt;<br>
&gt;<br>
&gt;<br>
&gt;       Thanks for any help you can provide.<br>
&gt;<br>
&gt;       - John<br>
&gt;<br>
&gt;       ***********************************<br>
&gt;       John Callahan, Research Scientist<br>
&gt;       Delaware Geological Survey<br>
&gt;       University of Delaware<br>
&gt;       URL: <a href="http://www.dgs.udel.edu" target="_blank">http://www.dgs.udel.edu</a><br>
&gt;       *******************************<br>
&gt;<br>
&gt;<br>
<br></div></div></blockquote></div>