Changing projection via cgi request using 5.0
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Mon Oct 1 12:47:52 PDT 2007
Oliver: This is a bug. I filed a ticket and have already fixed the problem in the main SVN
trunk. See http://trac.osgeo.org/mapserver/ticket/2335. There is no workaround but the
change is simple. In maplexer.l, around line 258 change:
<INITIAL,URL_STRING>projection { return(PROJECTION); }
to:
<INITIAL,URL_VARIABLE,URL_STRING>projection { return(PROJECTION); }
and rebuild.
Steve
>>> On 10/1/2007 at 10:22 AM, in message
<LISTSERV%200710011022182805.1605 at LISTS.UMN.EDU>, Oliver Wesp <wesp at GDV.COM>
wrote:
> Dear List,
>
> I'm trying to change the map projection via cgi. To my understanding this
> should work using the map.projection or map_projection syntax. Unfortunatley
> it doesn't. I like to set the projection by using the corresponding espg
> code. I searched the archives and did some experiments using 4.10.2. With
> 4.10.2 it's working using the complete projection string
>
> ...&map_PROJECTION=proj%3dortho,lon_0%3d-90,lat_0%3d-10
>
> or the epsg code like
>
> ...&map_PROJECTION=init%3depsg:4326
>
> With Mapserver 5.0 it seems like map_PROJECTION or map.PROJECTION is simply
> ignored returning the map in the projection defined in the mapfile no matter
> what's passed with the url string. Changing other mapfile parameters like a
> class style or something works fine. Am I missing something?
>
> best regards,
> Oliver
More information about the MapServer-users
mailing list