<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
How are you setting an extent? The default extent you’re defining is in lat/lon.
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ian Walberg <ian.walberg@airborne.aero><br>
<b>Sent:</b> Wednesday, July 31, 2019 5:34:05 PM<br>
<b>To:</b> Lime, Steve D (MNIT) <steve.lime@state.mn.us>; mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> RE: Projection help</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif}
span.x_EmailStyle19
{font-family:"Calibri",sans-serif;
color:windowtext}
span.x_EmailStyle20
{font-family:"Calibri",sans-serif;
color:#1F497D}
span.x_EmailStyle22
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="`"100%`"" style="width:100.0%">
<tbody>
<tr style="">
<td style="background:#FFC845; padding:5.25pt 1.5pt 5.25pt 1.5pt"></td>
<td width="`"100%`"" cellpadding="`"7px" color="`"#FFFF00`"" style="width:100.0%; background:#FFF3DD; padding:5.25pt 3.75pt 5.25pt 11.25pt; word-wrap:break-word">
<div>
<p class="x_MsoNormal" style=""></p>
<div style="font-size:11pt; font-family:Calibri,sans-serif; color:#003865"><b>This message may be from an external email source.</b><br>
</div>
<div style="font-size:9pt; font-family:Calibri,sans-serif; color:#003865">Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.</div>
<p></p>
</div>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal">Steve,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">The map file below draws a non Mercator projection and if the epsg:4326 line is uncommented then the map is blank.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">This is on a windows machine using Mapserver 7.0.7 from MS4W 3.2.6.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Any ideas?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Ian</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">MAP</p>
<p class="x_MsoNormal">NAME global_map</p>
<p class="x_MsoNormal">STATUS ON</p>
<p class="x_MsoNormal">SIZE 1024 600</p>
<p class="x_MsoNormal">EXTENT -180 -90 180 90</p>
<p class="x_MsoNormal"></p>
<p class="x_MsoNormal"> LAYER</p>
<p class="x_MsoNormal"> NAME "Earth_Vector"</p>
<p class="x_MsoNormal"> STATUS DEFAULT</p>
<p class="x_MsoNormal"> TYPE LINE</p>
<p class="x_MsoNormal"> DEBUG 3</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> PROJECTION</p>
<p class="x_MsoNormal"># "init=epsg:4326"</p>
<p class="x_MsoNormal"> END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> DATA "../shp/land/ne_110m_land.shp"</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> CLASS</p>
<p class="x_MsoNormal"> STYLE</p>
<p class="x_MsoNormal"> ANTIALIAS TRUE</p>
<p class="x_MsoNormal"> COLOR 0 255 0 </p>
<p class="x_MsoNormal"> WIDTH 1</p>
<p class="x_MsoNormal"> END</p>
<p class="x_MsoNormal"> END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> PROJECTION</p>
<p class="x_MsoNormal"> "init=epsg:3857"</p>
<p class="x_MsoNormal"> END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">END #MAP END</p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> Lime, Steve D (MNIT) <steve.lime@state.mn.us>
<br>
<b>Sent:</b> Wednesday, July 31, 2019 3:22 PM<br>
<b>To:</b> Ian Walberg <ian.walberg@airborne.aero>; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> RE: Projection help</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span style="color:#1F497D">Should be straight forward. In the natural earth layers you’d have:</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">PROJECTION</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> "init=epsg:4326" # geographic</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">END</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">and at the MAP level you’d have:</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> PROJECTION</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> "init=epsg:3857" # web mercator</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> END </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">--Steve</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> mapserver-users [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Ian Walberg<br>
<b>Sent:</b> Wednesday, July 31, 2019 4:56 PM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Projection help</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<div>
<p class="x_MsoNormal">Hello,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">We have used different projections previously but cannot get them to work at the moment.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">All the examples we can find online look ok but do not make any difference to the generated map.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">A way of projecting the Natural Earth vector country outlines as Mercator would be a perfect example.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Adding CONFIG "PROJ_DEBUG" "ON" does not appear to generate any output.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Ian </p>
</div>
</div>
</div>
</div>
</body>
</html>