WFS spatial Filter support

GeoIT info at GEO-IT.COM
Tue Oct 5 06:41:59 PDT 2004


Hi,

We have MapServer Version 4.3 dev installed to test its WFS-capabilities.
We tried to perform a spatial filter as defined in the XML-file below via
curl:

############################################################################
#############
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature service="WFS" version="1.0.0" request="GetFeature"
outputFormat="GML2" xmlns:rtgis="http://www.rtg.bv.tum.de/rtgis"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs">
        <wfs:Query typeName="rtgis:EW_LEITUNGSABS">
                <ogc:Filter>
                        <ogc:Intersects>

<ogc:PropertyName>rtgis:GEOM</ogc:PropertyName>
                                <gml:Polygon srsName="EPSG:31468">
                                        <gml:outerBoundaryIs>
                                                <gml:LinearRing>
                                                        <gml:coordinates
cs="," decimal="." ts=" ">4394954.9510,5319204.3811
4394993.6108,5319198.3668 4394986.7379,5319163.4837
4394957.5283,5319165.7176 4394954.9510,5319204.3811</gml:coordinates>
                                                </gml:LinearRing>
                                        </gml:outerBoundaryIs>
                                </gml:Polygon>
                        </ogc:Intersects>
                </ogc:Filter>
        </wfs:Query>
        <wfs:Query typeName="rtgis:EW_TRAEGER">
                <ogc:Filter>
                        <ogc:Intersects>

<ogc:PropertyName>rtgis:GEOM</ogc:PropertyName>
                                <gml:Polygon srsName="EPSG:31468">
                                        <gml:outerBoundaryIs>
                                                <gml:LinearRing>
                                                        <gml:coordinates
cs="," decimal="." ts=" ">4394954.9510,5319204.3811
4394993.6108,5319198.3668 4394986.7379,5319163.4837
4394957.5283,5319165.7176 4394954.9510,5319204.3811</gml:coordinates>
                                                </gml:LinearRing>
                                        </gml:outerBoundaryIs>
                                </gml:Polygon>
                        </ogc:Intersects>
                </ogc:Filter>
        </wfs:Query>
</wfs:GetFeature>

############################################################################
#############

Mapserver is not able to handle this filter request. It returns the
following exception-report:

############################################################################
#############

<ServiceExceptionReport
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://ogc.dmsolutions.ca/wfs/1.0/OGC-exception.xsd">
  <ServiceException>
msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
GetFeature : <Filter>
  <Intersects>
    <Polygon srsName="31468">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates cs="," decimal="." ts="
">4394954.9510,5319204.3811 4394993.6108,5319198.3668
4394986.7379,5319163.4837 4394957.5283,5319165.7176
4394954.9510,5319204.3811</coordinates>
        </LinearRing>
      </outerBoundaryIs>
    </Polygon>
  </Intersects>
</Filter>

  </ServiceException>
</ServiceExceptionReport>

############################################################################
#############

Are there any plans to implement this functionality in future releases ?

Regards,
Daniel

*************************************************************************
Geo-IT GmbH   -   Geoinformatik, IT-Services
Guggenberg 3, D-82380 Peissenberg
Tel: 08803-498372, Fax: 08803-498373
eMail: info at geo-it.com  -  Homepage: http://www.geo-it.com
*************************************************************************



More information about the MapServer-users mailing list