[mapserver-users] change image size for REAL

E Perik erwin at perik.nu
Tue Apr 2 14:59:30 EST 2002


Scott,

Think you need to use (PHP) something like this:

$Map = ms_newMapObj("yadayada.map");
// Resize to specific size
$Map->set("width",400);
$Map->set("height",400);

Erwin


-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu] On Behalf Of Scott D
Cogan
Sent: Tuesday, April 02, 2002 8:06 PM
To: MapServer-list
Subject: [mapserver-users] change image size for REAL

i am trying to change the image size that gets drawn with mapscript
using
the $image=$map->draw() function.

i change the dimensions before drawing each time:
$map->width=400;
$map->height=400;

and i have changed the dimensions of the image in the HTML code.
this works, but the problem is that it doesnt REALLY change the output
size
of the actual GIF image i am using.  all that happens is that the
600x600
image gets scaled down to whatever size i told it to.  this is
unacceptable
because in scaling down, many border lines are lost and the image is
confusing.  any ideas?
-scott




More information about the mapserver-users mailing list