Hi Matt,
Thank you very much. I am using mapserver as a CGI. Chaing projection
works when there is only one parameter about projection.
For example, &map_projection="proj=latlong" works, but when change map
projection as following:
PROJECTION
"proj=lcc"
"lat_0=0"
"lat_1=20"
"lat_2=60"
"lon_0=-96"
"k_0=1"
END
I don't know how to put all of the parameters in the URL. I tried
&map_projection="proj=lcc lat_0=0 lat_1=20.....".
-- Ning
----- Original Message -----
From: "Matthew Perry" <[EMAIL PROTECTED]>
To: "Ning Liu" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, February 10, 2006 11:34 PM
Subject: Re: [UMN_MAPSERVER-USERS] change projection through CGI parameters
Ning,
Are you using mapserver as a CGI or via mapscript? Using mapscript
might be more flexible for this kind of task. If you're using the CGI,
it's possible to change mapfile parameters via URL:
http://mapserver.gis.umn.edu/docs/reference/cgi/controls
and scroll down to "Changing map file parameters via a form or a URL"
I haven't tried this out so you may need to adjust it but you could
try &map_projection="proj=latlong" .
Also, keep in mind that you'll have to adjust the extents of the image
since that will change with the projection.
matt
On 2/10/06, Ning Liu <[EMAIL PROTECTED]> wrote:
I am trying to build a mapserver application in which ther users can
specify
the parameters of the projection and change the map projection.
Anybody know is it possible with mapserver?
Thanks a lot.
-- Ning
Computer Science Department
Indiana University
--
Matt Perry
[EMAIL PROTECTED]
http://www.perrygeo.net