change projection through CGI parameters
Ning Liu
ninliu at INDIANA.EDU
Thu Mar 16 08:09:31 PST 2006
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" <perrygeo at gmail.com>
To: "Ning Liu" <ninliu at indiana.edu>
Cc: <MAPSERVER-USERS at lists.umn.edu>
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 <ninliu at indiana.edu> 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
perrygeo at gmail.com
http://www.perrygeo.net
More information about the MapServer-users
mailing list