WFS filter query

N Zhou zhou_naijun at HOTMAIL.COM
Tue Mar 15 07:26:17 PST 2005


Hi,

I have a problem of using WFS filter to get data within a bounding box. My
WFS post request is:

<?xml version=\"1.0\" ?>
<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="mytype">
     <ogc:Filter>
        <ogc:BBOX>
           <gml:Box>
              <gml:coordinates>0,0 505234,5448023</gml:coordinates>
           </gml:Box>
       </ogc:BBOX>
     </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

But the mapserver would stop with an error of "Premature end of script
headers: mapserv_44.exe"
Could anyone tell me why? I know there is a WFS bug of filtering some
elements rather than getting all elements.

Thank you very much!

N. Zhou



More information about the MapServer-users mailing list