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

Yves Jacolin yves.jacolin at camptocamp.com
Sun Sep 23 12:37:16 PDT 2012


Hi,

Ok I stop for tonigh. I succesfully test my WFS MS and srsName don't seem
to be mandatory as I said before.

This is EXTENT parameter which is mandatory. This parameter was not in my
mapfile before and so WFS Filter request failed.

Y.

2012/9/23 Yves Jacolin <yves.jacolin at camptocamp.com>

> Thomas,
>
> I successfully test msautest mapfil, I had an error in my url :/
>
> Anyway, you helped a lot, it is interesting: it seems that
> srsName="EPSG:3978 is important to request WFS mapserver, but MapServer
> don't add it in its Filter request!
>
> Y.
>
>
> 2012/9/23 thomas bonfort <thomas.bonfort at gmail.com>
>
>> 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>
>>
>
>
>
> --
>
> Responsable Formation et Support
>
> Camptocamp France SAS
>
> Savoie Technolac, BP 352
>
> 73377 Le Bourget du Lac, Cedex
>
> Tel (France) : +33 4 79 26 57 98
>
> Mob. : +33 6 18 75 42 21
>
> Fax : 04 79 70 15 81
>
> Mail : yves.jacolin at camptocamp.com
>
> http://www.camptocamp.com
> <yves.jacolin at camptocamp.com>
>



-- 

Responsable Formation et Support

Camptocamp France SAS

Savoie Technolac, BP 352

73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98

Mob. : +33 6 18 75 42 21

Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com

http://www.camptocamp.com
<yves.jacolin at camptocamp.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120923/42b6dfd6/attachment.html>


More information about the mapserver-dev mailing list