help w/ WFS request
Bart van den Eijnden (OSGIS)
bartvde at XS4ALL.NL
Tue Apr 18 11:41:49 PDT 2006
Hi John,
1) what Mapserver version are you using?
2) if you do a DescribeLayer request, what is the name of the geometry
property (is it really the_geom like in your request)?
Mapserver's response indicates an empty feature collection, so the
boundedBy is gml:null.
Best regards,
Bart
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">
> <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&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=soundings&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
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
More information about the MapServer-users
mailing list