[mapserver-dev] [WFS] WFS layer in WMS/WFS service issue

thomas bonfort thomas.bonfort at gmail.com
Sun Sep 23 10:18:21 PDT 2012


This is how I'm running it:

cd wxs
export REQUEST_METHOD=POST
export MS_MAPFILE=wfs_filter.map
export CONTENT_LENGTH=666
echo '<?xml version="1.0" ?>
  <wfs:GetFeature service="WFS" version="1.0.0" maxFeatures="1000"
outputFormat="GML2" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xsi:schmaLocation="http://www.opengis.net/wfs
http://shemas.opengis.nt/wfs/1.0.0/WFS-transaction.xsd"
xmlns:xsi="http://www.w3.org/2/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml">
<wfs:Query typeName="road">
<ogc:Filter>
  <ogc:BBOX>
   <ogc:PropertyName>Geometry</ogc:PropertyName>
   <gml:Box srsName="EPSG:3978">
      <gml:coordinates>2018000,-73300 3410396,647400</gml:coordinates>
    </gml:Box>
    </ogc:BBOX>
  </ogc:Filter>
</wfs:Query>
</wfs:GetFeature>' | mapserv

I don't know if that output is correct or not.



On Sun, Sep 23, 2012 at 7:03 PM, Yves Jacolin
<yves.jacolin at camptocamp.com> wrote:
> <?xml version="1.0" ?>
>   <wfs:GetFeature service="WFS" version="1.0.0" maxFeatures="1000"
> outputFormat="GML2" xmlns:wfs="http://www.opengis.net/wfs"
> xmlns:ogc="http://www.opengis.net/ogc"
> xsi:schmaLocation="http://www.opengis.net/wfs
> http://shemas.opengis.nt/wfs/1.0.0/WFS-transaction.xsd"
> xmlns:xsi="http://www.w3.org/2/XMLSchema-instance"
> xmlns:gml="http://www.opengis.net/gml">
> <wfs:Query typeName="road">
> <ogc:Filter>
>   <ogc:BBOX>
>    <ogc:PropertyName>Geometry</ogc:PropertyName>
>    <gml:Box srsName="EPSG:3978">
>       <gml:coordinates>2018000,-73300 3410396,647400</gml:coordinates>
>     </gml:Box>
>     </ogc:BBOX>
>   </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>


More information about the mapserver-dev mailing list