help w/ WFS request

Pericles S. Nacionales naci0002 at UMN.EDU
Tue Apr 18 14:52:03 EDT 2006


John,

On Tuesday 18 April 2006 13:28, John Cartwright wrote:
> 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">

Shouldn't this be "<gml:Box srsName="EPSG:4269">" (or is it EPSG:4326)?  Looks 
like the srsName in your mapfile maybe incorrect.

-Perry

>            <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;VERS
>ION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=soundings&amp;OUTPUTF
>ORMAT=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

-- 
Pericles S. Nacionales
Conservation Biology Program
University of Minnesota
e-mail: naci0002 at umn.edu



More information about the mapserver-users mailing list