This WFS GetFeature request did work if I replaced <ogc:Intersects> with the <ogc:BBOX> 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"><<a href="mailto:john.callahan@udel.edu">john.callahan@udel.edu</a>></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'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 <<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>> wrote:<br>
><br>
><br>
><br>
><br>
><br>
><br>
> Hello,<br>
><br>
> If you run a WFS GetCapabilities request on your server, it should<br>
> tell which filters it supports, see :<br>
> <a href="http://mapserver.org/ogc/filter_encoding.html#server-side" target="_blank">http://mapserver.org/ogc/filter_encoding.html#server-side</a><br>
><br>
> Someone correct me if I'm wrong, but I think MapServer needs to be<br>
> compiled with GEOS in order to do intersect filters.<br>
><br>
> HTH,<br>
><br>
> Alexandre<br>
><br>
><br>
> On 11-06-09 12:09 PM, John Callahan wrote:<br>
> I have the following WFS intersect request that if<br>
> working with GeoServer, and I'm trying to run this app with<br>
> MapServer. The error I'm getting is:<br>
><br>
> <ows:ExceptionText>msWFSGetFeature(): WFS server error.<br>
> Invalid or Unsupported FILTER in GetFeature ...<br>
><br>
><br>
> I've dome some reading but not sure exactly what's supported. I<br>
> have used both INTERSECT and INTERSECTS, both return the same<br>
> error. Should I skip these and go with BBOX? If so, I assume I<br>
> would need to get rid of the lowerCorner/upperCorner items and<br>
> just list the coordinates separated by commas. Or could there be<br>
> a problem with the PropertyName = SHAPE? I couldn't find doc on<br>
> what this value should be. My data are either shapefiles or<br>
> postgis layers.<br>
><br>
> The POST request is:<br>
><br>
> <wfs:GetFeature resultType="hits" xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"<br>
> service="WFS" version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
> <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>"<br>
> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
> <wfs:Query typeName="Municipal_Boundaries" srsName="EPSG:26957"<br>
> xmlns:massgis="<a href="http://massgis.state.ma.us/featuretype" target="_blank">http://massgis.state.ma.us/featuretype</a>"><br>
> <ogc:Filter xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"><br>
> <ogc:Intersects><br>
> <ogc:PropertyName>SHAPE</ogc:PropertyName><br>
> <gml:Envelope xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>"<br>
> srsName="EPSG:26957"><br>
> <gml:lowerCorner>149081.76574899518<br>
> 163078.62572595105</gml:lowerCorner><br>
> <gml:upperCorner>205627.85303800018<br>
> 194899.95291598293</gml:upperCorner><br>
> </gml:Envelope><br>
> </ogc:Intersects><br>
> </ogc:Filter><br>
> </wfs:Query><br>
> </wfs:GetFeature><br>
><br>
><br>
> Thanks for any help you can provide.<br>
><br>
> - John<br>
><br>
> ***********************************<br>
> John Callahan, Research Scientist<br>
> Delaware Geological Survey<br>
> University of Delaware<br>
> URL: <a href="http://www.dgs.udel.edu" target="_blank">http://www.dgs.udel.edu</a><br>
> *******************************<br>
><br>
><br>
<br></div></div></blockquote></div>