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

Pedro Salazar pedro-b-salazar at ptinovacao.pt
Thu Feb 27 11:26:56 PST 2003


--=-NsaOX/Gl65ENmZeIyXI1
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

OK! It was a *bug* on me! :-)
Thanks Daniel!

thanks,
Pedro Salazar

On Thu, 2003-02-27 at 19:18, Martin, Daniel wrote:
> Try mapsize instead of imgsize.
>=20
> -Dan
>=20
> > -----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?
> >=20
> >=20
> > Greetings,
> >=20
> > I wonder if is it possible change the default map size (SIZE <WIDTH>
> > <HEIGHT>) in the map properties (.map)?=20
> >=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)!!!
> >=20
> > -If I remove my default size parameter "#SIZE 300 200" and pass the
> > imgsize in my query string parameters, it works just fine!!=20
> > But If don't
> > pass it (omit the parameter) , then it will throw an=20
> > error:"msDrawMap():
> > General error message. Image dimensions not specified."!!!
> >=20
> > Is this a feature, a bug or am I doing something wrong?
> >=20
> > 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>
> >=20
--=20
<id name=3D"pedro salazar">=20
<email>pedro-b-salazar at ptinovacao.pt</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>

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

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

iD8DBQA+XmaADhKeMdgDvGERAg/mAJ9ih51uCJ2h40GmNqItu3+spDBwqACgkAr/
gmygVa2ewozNvUAiXOmDRc4=
=o9p5
-----END PGP SIGNATURE-----

--=-NsaOX/Gl65ENmZeIyXI1--




More information about the MapServer-users mailing list