[Mapserver-users] zoom and pan problem -- help need
Murat Isik
muratisik at megatek.com.tr
Tue Nov 4 08:31:53 PST 2003
Sorry, forgot to bold it. Actually I solved the problem in a manual way. I
read that
$myMap->setextent($extent_to_set[0],$extent_to_set[1],
$extent_to_set[2],$extent_to_set[3]);
line calculates the extend from the map file. I commented it out and
manually assigned the four extent values to all $extent_to_set 's. That
solved the problem (I hope) Would it do any harm in the long run or any
minorty compared to calculating the extent dynamically?
Have a nice day
Murat Isik
----- Original Message -----
From: "Daniel Morissette" <morissette at dmsolutions.ca>
To: "Murat Isik" <muratisik at megatek.com.tr>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, November 04, 2003 6:21 PM
Subject: Re: [Mapserver-users] zoom and pan problem -- help need
> Murat Isik wrote:
> >
> > *Fatal error*: MapServer Error in msCalculateScale(): Invalid image
> > extent. in
> > */var/www/html/mapserver/itasca/demo_try_mysql_alpha_zoom.php* on line
*95*
> > This is the line about extent. I have bolded it below. Please help me
> > understand what is going wrong. Any ideas?
> >
>
> I couldn't see line 95 in bold, but anyway you normally get this error
> if your extents or your map width/height result in a map with 0-width or
> 0-height so you need to make sure the values you set for your extents
> are valid (perhaps print the values before setting the extents).
>
> Daniel
> --
> ------------------------------------------------------------
> Daniel Morissette morissette at dmsolutions.ca
> DM Solutions Group http://www.dmsolutions.ca/
> ------------------------------------------------------------
More information about the MapServer-users
mailing list