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

Pedro Salazar pedro-b-salazar at ptinovacao.pt
Thu Feb 27 10:48:51 PST 2003


--=-2UbwqleTXGWhKVRKDRwG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Greetings,

I wonder if is it possible change the default map size (SIZE <WIDTH>
<HEIGHT>) in the map properties (.map)?=20

-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=3DmyMap.map&mode=3Dmap&imgsize=3D500+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.
--=20
<id name=3D"pedro salazar">=20
<email>pedro-b-salazar at ptinovacao.pt</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>

--=-2UbwqleTXGWhKVRKDRwG
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iD8DBQA+Xl2TDhKeMdgDvGERAvyvAKCG2L0xlKlcDH0x9FAu39QqElHeoACcD2GW
2/DzBoh1eD6ld2XP/S5quMQ=
=6+tW
-----END PGP SIGNATURE-----

--=-2UbwqleTXGWhKVRKDRwG--




More information about the MapServer-users mailing list