<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.Shkpostityyli17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">As you said, EPSG:31467 is officially a system with northing-easting axis order<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::31467&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:31467">http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::31467&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:31467</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The service is behaving as it should according to WFS 1.1.0 standard and as you also said, Mapserver does not have an override to force the longitude-latitude
 of easting-northing order as Geoserver has if srsname is given with the short format EPSG:31467.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">However, you can use WFS version 1.0.0 which returns data always in longitude-latitude of easting-northing. Remember to use same order with BBOX<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://mapservices-ludwigsburg.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/ludwigsburg/map_file/LB_MUSIC_OWS.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=LB_city_boundary&BBOX=9,48,10,49,EPSG:4326&SRSNAME=EPSG:31467&maxfeatures=1">http://mapservices-ludwigsburg.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/ludwigsburg/map_file/LB_MUSIC_OWS.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=LB_city_boundary&BBOX=9,48,10,49,EPSG:4326&SRSNAME=EPSG:31467&maxfeatures=1</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Christian Braun wrote:<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dear all,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">I am facing a serious problem with Mapserver (both 6.2 and 6.4.1) and data retrieval via WFS 1.1.0.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">We have a clien</span>t running which is taking the data as GML and importing it into GRASS. The switched order of axis makes it impossible to overlay and thus process data.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The following request gets back data in yx axis order:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://mapservices-ludwigsburg.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/ludwigsburg/map_file/LB_MUSIC_OWS.map&">http://mapservices-ludwigsburg.tudor.lu/cgi-bin/mapserv?map=/srv/mapserv/ludwigsburg/map_file/LB_MUSIC_OWS.map&</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">SERVICE=WFS&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">VERSION=1.1.0&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">REQUEST=GetFeature&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">TYPENAME=LB_city_boundary&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">BBOX=48,9,49,10,urn:x-ogc:def:crs:EPSG::4326&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">SRSNAME=EPSG:31467<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I wonder if this is a bug or feature due to the WFS 1.1.0 axis order specification?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">If I send the same request to a instance of Geoserver, what I get back is xy axis order:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://geoserver.tudor.lu/geoserver/ludwigsburg/ows?SERVICE=wfs&">http://geoserver.tudor.lu/geoserver/ludwigsburg/ows?SERVICE=wfs&</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">VERSION=1.1.0&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">REQUEST=GetFeature&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">TYPENAME=ludwigsburg:lb_city_boundary&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">BBOX=48,9,49,10,urn:x-ogc:def:crs:EPSG::4326&<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">SRSNAME=EPSG:31467<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I also found the master thesis of Weichand [1] where in Section 4.3.5 he is describing this issue as well. But Geoserver has a mechanism to treat EPSG:31467 as xy. The correct order of the CRS (by definition) is yx, but this is not used
 like that in Germany.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Can you give any ideas about the behaviour of Mapserver and how to get around this axis order issue?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Christian Braun<br>
<br>
<br>
Luxembourg Institute of Science and Technology (LIST)<br>
Environmental Research and Innovation (ERIN) Department<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">41, rue du Brill<br>
L-4422 Belvaux<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Tel: +352 42 59 91 - 6608<br>
Fax : +352 275 885<br>
E-mail : <a href="mailto:christian.braun@list.lu">christian.braun@list.lu</a><br>
Web:  <a href="http://www.list.lu">www.list.lu</a><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>