Awesome thanks much that work i even tried that just for some reason didn&#39;t think to add the &quot; in i just had<br><br>map.layer[layername]=PROJECTION+init=epsg:4326+END<br><br>Thank You guys for all the help<br><br>
<div class="gmail_quote">On Wed, Dec 21, 2011 at 10:10 PM, Stephen Woodbridge <span dir="ltr">&lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 12/21/2011 9:38 PM, Zach Aller wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yup thats exactly what is going on we have images from different source<br>
that have different projections and so we have a little program that<br>
will get called to figure out the projection of the geotiff then with we<br>
need to use mapserver for some processing and there for need to change<br>
the projection of the said layer.<br>
<br>
Also this method did not seem to work<br>
<br>
map.layer[layername]=<u></u>PROJECTION+EPSG:3158+END<br>
</blockquote>
<br></div>
this needs to be:<br>
<br>
   map.layer[layername]=<u></u>PROJECTION+&quot;init=epsg:4326&quot;+<u></u>END<br>
<br>
And you may nee to encode &quot; and = chars between PROJECTION ... END<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
got this error<br>
<br>
loadProjection(): Unknown identifier. Parsing error near (:):(line 1)<br>
<br>
<br>
On Wed, Dec 21, 2011 at 7:55 PM, Stephen Woodbridge<br></div><div class="im">
&lt;<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> &lt;mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>&gt;&gt; wrote:<br>
<br>
    Zach,<br>
<br>
    Why would you want to change the projection of a layer?<br>
<br>
    The projection of a layer should be constant as it defines the<br>
    projection of the data that is in that layer.<br>
<br>
    So unless you are doing something like changing the data source AND<br>
    also needing to then change the projection because the new data is<br>
    in another projection, then I can not imagine that you are going to<br>
    get any useful results doing this.<br>
<br>
    -Steve W<br>
<br>
<br>
    On 12/21/2011 5:23 PM, Zach Aller wrote:<br>
<br>
        that seem&#39;s to have done the trick sort of now i am just<br>
        wondering if i<br>
        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<br>
        probably<br>
        be fine for our project at least for now.<br>
<br>
        On Wed, Dec 21, 2011 at 11:04 AM, Lime, Steve D (DNR)<br>
        &lt;<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a> &lt;mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a><u></u>&gt;<br></div>
        &lt;mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a> &lt;mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a><u></u>&gt;<div class="im">
<br>
         &gt;&gt; wrote:<br>
<br>
            Zach: You should be able to change the projection through<br>
        the URL<br>
            like so:<br>
<br>
               …&amp;map.projection=EPSG:3158&amp;…<br>
<br>
            No need to runtime subs…<br>
<br>
            Steve<br>
<br>
            *From:*mapserver-dev-bounces@ <a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a><br>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>&gt;<br></div>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@" target="_blank">mapserver-dev-bounces@</a> <a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a><br>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>&gt;&gt;<br>
            [mailto:<a href="mailto:mapserver-dev-bounces@" target="_blank">mapserver-dev-bounces@</a> <a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a><br>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>&gt;<br>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@" target="_blank">mapserver-dev-bounces@</a> <a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a><div class="im"><br>
        &lt;mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>&gt;&gt;] *On Behalf Of *Zach<br>
            Aller<br>
            *Sent:* Tuesday, December 20, 2011 5:28 PM<br>
            *To:* <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
        &lt;mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>&gt;<br></div>
        &lt;mailto:<a href="mailto:mapserver-dev@lists" target="_blank">mapserver-dev@lists</a>. <a href="http://osgeo.org" target="_blank">osgeo.org</a><div><div class="h5"><br>
        &lt;mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>&gt;&gt;<br>
            *Subject:* [mapserver-dev] variable substitution for projection<br>
<br>
<br>
            ok i am working with mapserver and a nodejs project and so i am<br>
            calling mapserver like so.<br>
<br>
            mapserv -nh<br>
        &quot;/getPreviewImg.map&amp;mode=map&amp; mapext=&#39;+req.params.extent+&#39;&amp;<br>
        filename=&#39;+req.params.imgname+ &#39;&amp;projection=3158&quot;<br>
<br>
            the issue is that mapserver dose not support projection<br>
        based run<br>
            time substitution and so i was wondering if that is possible<br>
        to add<br>
            and how hard it would be (maybe i could to it myself etc if<br>
        pointed<br>
            in right direction because i have no experience with<br>
        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<br>
<br>
<br>
<br>
<br>
        ______________________________ _________________<br>
        mapserver-dev mailing list<br></div></div>
        <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> &lt;mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>&gt;<br>

        <a href="http://lists.osgeo.org/" target="_blank">http://lists.osgeo.org/</a> mailman/listinfo/mapserver-dev<br>
        &lt;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-dev</a><u></u>&gt;<br>
<br>
<br>
    ______________________________ _________________<br>
    mapserver-dev mailing list<br>
    <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a> &lt;mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>&gt;<br>

    <a href="http://lists.osgeo.org/" target="_blank">http://lists.osgeo.org/</a> mailman/listinfo/mapserver-dev<br>
    &lt;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-dev</a><u></u>&gt;<br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>