[mapserver-users] Re: WFS intersect request
Yewondwossen Assefa
yassefa at dmsolutions.ca
Thu Jun 16 05:18:21 PDT 2011
Hi John,
Can you try something like :
<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-61.63,45.04
-60.78,45.04 -60.78,46.08
-61.63,46.08</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>,
Polygon, MultiPolygon, MultiSurface, Box, LineString are supported as
geometries for these operators.
gml:Envelope is not right now.
Let me know.
best regards,
\On 09/06/2011 12:47 PM, John Callahan wrote:
> Thanks. Yes, my server does support Intersect filter, according to the
> WFS GetCaps file. I'm using the latest MS4W install with MS 6.
>
> John
>
>
> On Thursday, June 9, 2011, Alexandre Dube<adube at mapgears.com> wrote:
>>
>>
>>
>>
>>
>> Hello,
>>
>> If you run a WFS GetCapabilities request on your server, it should
>> tell which filters it supports, see :
>> http://mapserver.org/ogc/filter_encoding.html#server-side
>>
>> Someone correct me if I'm wrong, but I think MapServer needs to be
>> compiled with GEOS in order to do intersect filters.
>>
>> HTH,
>>
>> Alexandre
>>
>>
>> On 11-06-09 12:09 PM, John Callahan wrote:
>> I have the following WFS intersect request that if
>> working with GeoServer, and I'm trying to run this app with
>> MapServer. The error I'm getting is:
>>
>> <ows:ExceptionText>msWFSGetFeature(): WFS server error.
>> Invalid or Unsupported FILTER in GetFeature ...
>>
>>
>> I've dome some reading but not sure exactly what's supported. I
>> have used both INTERSECT and INTERSECTS, both return the same
>> error. Should I skip these and go with BBOX? If so, I assume I
>> would need to get rid of the lowerCorner/upperCorner items and
>> just list the coordinates separated by commas. Or could there be
>> a problem with the PropertyName = SHAPE? I couldn't find doc on
>> what this value should be. My data are either shapefiles or
>> postgis layers.
>>
>> The POST request is:
>>
>> <wfs:GetFeature resultType="hits" xmlns:wfs="http://www.opengis.net/wfs"
>> service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
>> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <wfs:Query typeName="Municipal_Boundaries" srsName="EPSG:26957"
>> xmlns:massgis="http://massgis.state.ma.us/featuretype">
>> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
>> <ogc:Intersects>
>> <ogc:PropertyName>SHAPE</ogc:PropertyName>
>> <gml:Envelope xmlns:gml="http://www.opengis.net/gml"
>> srsName="EPSG:26957">
>> <gml:lowerCorner>149081.76574899518
>> 163078.62572595105</gml:lowerCorner>
>> <gml:upperCorner>205627.85303800018
>> 194899.95291598293</gml:upperCorner>
>> </gml:Envelope>
>> </ogc:Intersects>
>> </ogc:Filter>
>> </wfs:Query>
>> </wfs:GetFeature>
>>
>>
>> Thanks for any help you can provide.
>>
>> - John
>>
>> ***********************************
>> John Callahan, Research Scientist
>> Delaware Geological Survey
>> University of Delaware
>> URL: http://www.dgs.udel.edu
>> *******************************
>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>>
>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>>
>>
>>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list