dymanic extent in php-mapscript (returning -1,-1,-1,-1)
Shashi Gireddy
gireddy at GMAIL.COM
Mon Apr 18 08:51:31 PDT 2005
Hi all,
I have a problem with dymaic extent from php-mapscript, its not
accepting the change of extent from my php code, here is the code
snippet.
list( $cnty, $cntyname, $minx, $miny, $maxx, $maxy)= split
('[/_]',$cnty1);
$ext = ms_newRectObj();
$ext->{minx} = -86.91;//$minx;
$ext->{miny} = 32.28;//$miny;
$ext->{maxx} = -86.38;//$maxx;
$ext->{maxy} = 32.84;//$maxy;
$map->{extent} = $ext;
echo $minx; echo " "; echo $miny; echo " "; echo $maxx; echo " ";
echo $maxy;
here is the generated map file..
MAP
EXTENT -1 -1 -1 -1
IMAGECOLOR 255 255 255
IMAGETYPE gif
SYMBOLSET "c:/maps/symbols/symbols35.sym"
SHAPEPATH "c:/maps/alabama_maps/tracts/"
SIZE 500 500
STATUS ON
UNITS MILES
NAME "FIRSTMAP"
...
can anybody help me please..
thank you,
shashi.
--
Shashi Kiran Reddy. Gireddy,
Graduate Assistant,
CBER, University of Alabama.
http://www.cs.ua.edu/shashi
Home: 205-752-5137 Cell: 205-657-1438
More information about the MapServer-users
mailing list