[Mapserver-users] override SIZE directive in map through CGI parameter?

Martin, Daniel DMartin at erac.com
Thu Feb 27 14:18:45 EST 2003


Try mapsize instead of imgsize.

-Dan

> -----Original Message-----
> From: Pedro Salazar [mailto:pedro-b-salazar at ptinovacao.pt]
> Sent: Thursday, February 27, 2003 12:49 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] override SIZE directive in map through CGI
> parameter?
> 
> 
> Greetings,
> 
> I wonder if is it possible change the default map size (SIZE <WIDTH>
> <HEIGHT>) in the map properties (.map)? 
> 
> -If I define the size statically in map, for instance, "SIZE 300 200",
> and then if I invoke "imgsize" parameter in my query string to the
> mapserver cgi, for example,
> mapserv?map=myMap.map&mode=map&imgsize=500+400, it doesn't change the
> default size (300x200)!!!
> 
> -If I remove my default size parameter "#SIZE 300 200" and pass the
> imgsize in my query string parameters, it works just fine!! 
> But If don't
> pass it (omit the parameter) , then it will throw an 
> error:"msDrawMap():
> General error message. Image dimensions not specified."!!!
> 
> Is this a feature, a bug or am I doing something wrong?
> 
> thanks,
> Pedro Salazar.
> -- 
> <id name="pedro salazar"> 
> <email>pedro-b-salazar at ptinovacao.pt</email>
> <pgp-key-id>0E129E31D803BC61</pgp-key-id>
> </id>
> 



More information about the mapserver-users mailing list