<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>here the link to the screenshot I did:</p>
<p><a href="https://ibb.co/eHqzQa" class="OWAAutoLink" id="LPlnk579616" previewremoved="true">https://ibb.co/eHqzQa</a></p>
<div id="LPBorder_GT_14889749419200.9467262740096782" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14889749419180.9360551633137602" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_14889749419190.5069144770710048" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_14889749419190.6666226185101782" style="background-color: rgb(255, 255, 255); height: 211px; position: relative; margin: auto; display: table; width: 250px;">
<a id="LPImageAnchor_14889749419190.8359920002989407" href="https://ibb.co/eHqzQa" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Anteprima immagine con collegamento selezionata. Effettua un doppio tocco per aprire il collegamento." id="LPThumbnailImageID_14889749419190.8089857888605825" width="250" height="211" style="display: inline-block; max-width: 250px; max-height: 250px; height: 211px; width: 250px; border-width: 0px; vertical-align: bottom;" src="https://image.ibb.co/dsxPrF/Screenshot_from_2017_03_08_11_54_59.png"></a></div>
</td>
<td id="TextCell_14889749419190.5460580177420746" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14889749419190.48770621494733213"></div>
<div id="LPTitle_14889749419190.12044618221327252" style="top: 0px; color: rgb(0, 75, 139); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14889749419200.12268227245569263" href="https://ibb.co/eHqzQa" target="_blank" style="text-decoration: none;">Screenshot from 2017 03 08 11 54 59</a></div>
<div id="LPMetadata_14889749419200.3930012413462165" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
ibb.co</div>
<div id="LPDescription_14889749419200.9296166064449649" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Image Screenshot from 2017 03 08 11 54 59 hosted in imgbb.com</div>
</td>
</tr>
</tbody>
</table>
</div>
Here below the layer definition:
<p></p>
<p><br>
</p>
<p></p>
<div>LAYER</div>
<div>      NAME "OSM_basemap"</div>
<div>      TYPE RASTER</div>
<div>      STATUS DEFAULT</div>
<div>      CONNECTION "http://ows.terrestris.de/osm-gray/service"  #"http://irs.gis-lab.info/?layers=osm&"</div>
<div>      CONNECTIONTYPE WMS</div>
<div>      METADATA</div>
<div>        "wms_srs"             "EPSG:4326"</div>
<div>        "wms_name"            "OSM-WMS"</div>
<div>        "wms_server_version"  "1.0.0"</div>
<div>        "wms_format"          "image/png"</div>
<div>      END</div>
<div>    END</div>
<div><br>
</div>
this give a wrong reprojection for me;
<p></p>
<p><br>
</p>
<p>and this is the one loaded as shp file:</p>
<p><br>
</p>
<div>LAYER</div>
<div>    NAME 'countries'</div>
<div>    TYPE POLYGON</div>
<div>    DATA 'countries.shp'</div>
<div>    METADATA</div>
<div>      'wms_title' 'countries'</div>
<div>      "DESCRIPTION" "Confini nazionali"</div>
<div>       "RESULT_FIELDS" "NAME, AREA_KM2"</div>
<div>       "RESULT_HEADERS" "Nazione, Area in kmq"</div>
<div>    END</div>
<div>    STATUS DEFAULT</div>
<div>    #TRANSPARENCY 100</div>
<div>     OPACITY 100</div>
<div>    MINSCALEDENOM 1500000</div>
<div>    TEMPLATE void</div>
<div>    #PROJECTION</div>
<div>    #'proj=longlat'</div>
<div>    #'ellps=WGS84'</div>
<div>    #'datum=WGS84'</div>
<div>    #'no_defs'</div>
<div>    #END</div>
<div>    PROJECTION</div>
<div>    "init=epsg:4326"</div>
<div>    END</div>
<div>CLASS</div>
<div>      NAME 'Limite nazionale'</div>
<div>      STYLE</div>
<div>        SYMBOL 0</div>
<div>         OUTLINECOLOR 255 255 130</div>
<div>        # COLOR 148 116 176</div>
<div>       END #style</div>
<div>  END #class</div>
<div>END #layer</div>
<div><br>
</div>
I think this work fine since the other layer in the mapfile, although in different epsg, are well overlapped.
<p></p>
<p><br>
</p>
<p>I'm testing the mapfile by using pmapper version4.</p>
<p><br>
</p>
<p>Eugenio</p>
<p><br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Rahkonen Jukka (MML) <jukka.rahkonen@maanmittauslaitos.fi><br>
<b>Inviato:</b> mercoledì 8 marzo 2017 12.16<br>
<b>A:</b> Eugenio Trumpy; mapserver-users@lists.osgeo.org<br>
<b>Oggetto:</b> Re: wms projection wrong</font>
<div> </div>
</div>
<div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Hi,</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">I do not see any screenshot in your message. This mailing list has rather strict limits for the size of the message so perhaps it has been dropped. It might be better
 to put your image into some image service and add a link to the mail.</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">You must also add more information. Write at least LAYER definitions and tell how did you test the layer and how do you know that the OSM layer is right.</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">-Jukka Rahkonen-</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Eugenio Trumpy wrote:<br>
[mapserver-users] wms projection wrong</span></p>
</div>
</div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US"> </span></p>
<div id="divtagdefaultwrapper">
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Dear all,</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">I installed mapserver7.0.4 on ubuntu 16.04 for a test.</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">I used ppa to install php_mapscript module.</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Everything seem</span><span style="font-family:"Calibri",sans-serif; color:black">s to be working, however I got an issue</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">on the map. As you can see on the screenshot attached</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">the 2 layers boundaries mismatch. </span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">The base map is from OSM is in EPSG:4326 (WMS layer),</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">european countries is a shp file in the same epsg.</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">I guess is something related to the WMS layer projection, doesn't it?</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">This is very strange,</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">it didn't happen in mapserver 6.4.1 in ubuntu 14.04.</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">Of course I'm testing the same mapfile.</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">Any hints on that?</span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif; color:black">Eugenio</span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>