help w/ WFS request

John Cartwright John.C.Cartwright at NOAA.GOV
Tue Apr 18 14:28:45 EDT 2006


Hello All,

I'm trying to get mapserver setup as a simple WFS server. It responds to 
a GetCapabilities request OK:
but when I send the following GetFeatures request:

<wfs:GetFeature service="WFS" version="1.0.0"
  outputFormat="GML2"
  xmlns:wfs="http://www.opengis.net/wfs"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:gml="http://www.opengis.net/gml"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName="soundings">
    <ogc:Filter>
      <ogc:BBOX>
        <ogc:PropertyName>the_geom</ogc:PropertyName>
        <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4269">
           <gml:coordinates>-95,26.5 -94.75,26.75</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

I get this response, and don't know what's wrong:

<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:ogc="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd
                       http://mapserver.gis.umn.edu/mapserver 
http://lynx.ngdc.noaa.gov:8000/cgi-bin?map=bathydb&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=soundings&amp;OUTPUTFORMAT=XMLSCHEMA">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>

It suggests to me that the bounding box coordinates are not being 
properly read. I would have expected something like in the response:

<gml:boundedBy> 
 <gml:Box srsName="EPSG:4326">
<gml:coordinates> -95, 26.5 -94.75, 26.75</gml:coordinates>
</gml:Box>
</gml:boundedBy>

followed by a series of featureMember elements.

Can someone tell what I'm doing wrong?

Thanks!

-- john



More information about the mapserver-users mailing list