[mapserver-users] Re: WMS/WFS Mapserver Projection Error

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Sep 6 06:57:02 PDT 2011


Hi,

I just confirmed with Mapserver 6.0 that if I use "wfs_getcapabilities_version"  "1.0.0"  in WEB - METADATA then I get back WFS 1.0.0 version of GetCapabilities document with the plain service=WFS&request=GetCapabilities.  However, if I add &version=1.1.0 I get back the version 1.1.0 document. That's also what the documentation suggests. It might be good to have an option to switch off WFS version 1.1.0 totally as long as there are clients sending requests with the highest supported WFS version but without knowing what to do with the GML3 they are getting back if the axis order is reversed.

-Jukka Rahkonen-


________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Rahkonen Jukka
Lähetetty: 6. syyskuuta 2011 16:44
Vastaanottaja: 'Lucho'
Kopio: 'mapserver-users at lists.osgeo.org'
Aihe: [mapserver-users] Re: WMS/WFS Mapserver Projection Error

Hi,

What client are you using? If you add "wfs_getcapabilities_version"  "1.0.0" into your mapfile, does Mapserver still advertise WFS 1.1.0 in its supported formats in the WFS GetCapabilities document?  Somehow normal WFS client behaviour is to send first GetCapabilities without version and capture the highest version number from the document for further requests. GvSIG at least is doing so but probably and hopefully they will add the version selector in the future.

-Jukka Rahkonen-


________________________________
Lähettäjä: Lucho [mailto:lucho1524 at gmail.com]
Lähetetty: 6. syyskuuta 2011 16:37
Vastaanottaja: Rahkonen Jukka
Aihe: Re: WMS/WFS Mapserver Projection Error

Hi Jukka,

I'd tried adding this parameter before changing the parameters on my client, but it doesn't work at all.

Any other idea?

On 5 September 2011 22:53, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi<mailto:Jukka.Rahkonen at mmmtike.fi>> wrote:
Hi,

Have a try with "wfs_getcapabilities_version" metadata that is mentioned in http://mapserver.org/ogc/wfs_server.html

-Jukka Rahkonen-


________________________________
Lähettäjä: Lucho [mailto:lucho1524 at gmail.com<mailto:lucho1524 at gmail.com>]
Lähetetty: 6. syyskuuta 2011 1:05
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Aihe: Re: WMS/WFS Mapserver Projection Error

Thanks, list...

As Jukka said, the problem was in the way of how the WFS 1.1.0 standard works with the BBOX Envelope.

I've changed the order of the variables in which the coordinate values were captured on my web client, using the order given by the GetFeature request on WFS 1.0.0, and that's it!!! It works now.

Unfortunately, i do not know if there is any form of specify the version of WFS service in the metadata of my mapfile.

Best wishes,

On 5 September 2011 05:37, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi<mailto:Jukka.Rahkonen at mmmtike.fi>> wrote:
Hi,

Your failing client is most probably sending WFS 1.1.0 version GetFeature request and therefore Mapserver is sending the coordinates in Latitude-Longitude order.  This is how the WFS 1.1.0 says it should be. According to the WFS 1.1.0 standard your client is doing it wrong. Lots of people have said that the WFS 1.1.0 standard is stupid.
If your client supports WFS 1.0.0 use that and the map will look good.  Have a try with your browser and you will see what I mean

http://your_server/cgi-bin/mapserv?service=WFS&version=1.0.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile
http://your_server/cgi-bin/mapserv?service=WFS&version=1.1.0&request=GetFeature&typeName=your_typename&maxFeatures=1&map=your_mapfile

-Jukka Rahkonen-

Lucho  wrote:


Hi List,

I have a problem with some data when I'm publishing a WMS and then, publish the same data in a WFS service. Everithing is ok speaking about attending requests, but when I get the data with some clients, it seems that WFS has a total different projection.

The image attached explain better the situation.

In Quantum GIS the two services working well, but in other clients I have this problem. The data are in EPSG:4326

Any ideas?

Best regards,

--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL



--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL



--
LUIS FERNANDO ORTIZ REYES
INGENIERO DE SISTEMAS
UNIVERSIDAD DISTRITAL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110906/fe09a78d/attachment.htm>


More information about the MapServer-users mailing list