That worked.

Thanks,
Chad

----- Original Message ----- From: "Steve Lime" <[email protected]> To: "Chad Ringenberg" <[email protected]>; <[email protected]>
Sent: Friday, December 26, 2008 12:30 PM
Subject: Re: [mapserver-users] Re: changing layer projection


Probably need to quote the string within the projection block. :'s probably aren't allowed in unquoted strings. The fact the error is from loadProjection means we're getting to the
right place. Try:

 map_layer[layername]=PROJECTION%20"init%3Depsg%3A26914"%20END

Steve

On 12/26/2008 at 10:41 AM, in message
<d1f8f04d664d401c82baadfaf7df9...@chadsvista>, "Chad Ringenberg"
<[email protected]> wrote:
I hadn't received the previous email for some reason.  I tried the
suggestion below but received the following error.

loadProjection(): Unknown identifier. Parsing error near (:):(line 1)



----- Original Message ----- From: "Steve Lime" <[email protected]>
To: "Chad Ringenberg" <[email protected]>;
<[email protected]>
Sent: Friday, December 26, 2008 9:20 AM
Subject: [mapserver-users] Re: changing layer projection


I sent a reply to the list on the 23rd, did you see/try that? The proper
syntax for
a layer projection is:

  map_layer[layername]=PROJECTION%20init%3Depsg%3A26914%20END

I checked the code and a projection can be modified by URL.

Steve


On 12/26/2008 at 9:07 AM, in message
<288eed89877e4d398c786ce66e114...@chadsvista>, "Chad Ringenberg"
<[email protected]> wrote:
Since I haven't received a response yet on my question I will explain a
little further what I'm am doing.  I have numerous raster images from
different sources that I dynamically load via cgi. Sometimes these images
are in a different projection than my resulting map.  I can still change
the
data parameter for the raster layer but have been unable to change the
projection.  I was able to do this in 4.1 but it appears to have been
removed
in 5.x or a bug was introduced.

Can the projection parameter for a layer be changed in 5.x or should I
file
a bug report?

Thanks,
Chad


----- Original Message ----- From: Chad Ringenberg
  To: [email protected]
  Sent: Monday, December 22, 2008 3:43 PM
  Subject: changing layer projection


  I have been updating my mapserver cgi application from 4.10 to 5.21 and
it
appears we have lost the ability to change a layers projection parameter
from
the url.  In version 4.1 I could change it with
"map_layername_projection=init=epsg:26914".  With 5.21 I have tried
"map_layer[layername]_projection=init=epsg:26914" and numerous other
combinations to no avail.

  Does anyone know how to change a layers projection with 5.21?

  Thanks,
  Chad

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to