[mapserver-users] Re: changing layer projection

Chad Ringenberg chad at agridatainc.com
Fri Dec 26 08:41:52 PST 2008


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" <Steve.Lime at dnr.state.mn.us>
To: "Chad Ringenberg" <chad at agridatainc.com>; 
<mapserver-users at lists.osgeo.org>
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
<288EED89877E4D398C786CE66E114BAC at ChadsVista>, "Chad Ringenberg"
<chad at agridatainc.com> 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: mapserver-users at lists.osgeo.org
>   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




More information about the MapServer-users mailing list