that seem&#39;s to have done the trick sort of now i am just wondering if i can set that for a specific layer i tried<br><br>map.layer[layername].projection <br><br>but that did not seem to work. Setting the map projection will probably be fine for our project at least for now.<br>
<br><div class="gmail_quote">On Wed, Dec 21, 2011 at 11:04 AM, Lime, Steve D (DNR) <span dir="ltr">&lt;<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Zach: You should be able to change the projection through the URL like so:<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">  …&amp;map.projection=EPSG:3158&amp;…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">No need to runtime subs…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Zach Aller<br>
<b>Sent:</b> Tuesday, December 20, 2011 5:28 PM<br>
<b>To:</b> <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-dev] variable substitution for projection<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ok i am working with mapserver and a nodejs project and so i am calling mapserver like so.<br>
<br>
mapserv -nh &quot;/getPreviewImg.map&amp;mode=map&amp;mapext=&#39;+req.params.extent+&#39;&amp;filename=&#39;+req.params.imgname+&#39;&amp;projection=3158&quot;<br>
<br>
the issue is that mapserver dose not support projection based run time substitution and so i was wondering if that is possible to add and how hard it would be (maybe i could to it myself etc if pointed in right direction because i have no experience with mapserver&#39;s
 src)<br>
<br>
map file example thats what i want to replace<br>
<br>
PROJECTION<br>
    &quot;init=epsg:%projection%&quot;<br>
END<br>
<br>
or perhaps even this then i could build what ever<br>
<br>
PROJECTION<br>
    %projection%<br>
END<u></u><u></u></p>
</div></div></div>
</div>

</blockquote></div><br>