Awesome thanks much that work i even tried that just for some reason didn't think to add the " 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"><<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>></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+"init=epsg:4326"+<u></u>END<br>
<br>
And you may nee to encode " 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">
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> 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'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>
<<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a> <mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a><u></u>><br></div>
<mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a> <mailto:<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a><u></u>><div class="im">
<br>
>> wrote:<br>
<br>
Zach: You should be able to change the projection through<br>
the URL<br>
like so:<br>
<br>
…&map.projection=EPSG:3158&…<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>
<mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>><br></div>
<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>
<mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>>><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>
<mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>><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><div class="im"><br>
<mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@<u></u>lists.osgeo.org</a>>>] *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>
<mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>><br></div>
<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>
<mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>>><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>
"/getPreviewImg.map&mode=map& mapext='+req.params.extent+'&<br>
filename='+req.params.imgname+ '&projection=3158"<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's src)<br>
<br>
map file example thats what i want to replace<br>
<br>
PROJECTION<br>
"init=epsg:%projection%"<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> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/" target="_blank">http://lists.osgeo.org/</a> mailman/listinfo/mapserver-dev<br>
<<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>><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> <mailto:<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.<u></u>osgeo.org</a>><br>
<a href="http://lists.osgeo.org/" target="_blank">http://lists.osgeo.org/</a> mailman/listinfo/mapserver-dev<br>
<<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>><br>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br>