<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am having a problem with zooming. I had to
reinstall the server after a hard drive crash and since then, I haven't been
able to get the zoom in function to work.</FONT></DIV>
<DIV><FONT face=Arial size=2>I orginally wrote the code for mapscript 3.3 using
IIS and PHP 4.04 on Windows 2000.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am currently still using Windows 2000 and PHP
4.0.6 and</FONT></DIV>
<DIV> </DIV>
<DIV>MapScript Version (Aug 29, 2001)<BR>MapServer version 3.5 (pre-alpha)
OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF
SUPPORTS=WMS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<BR></DIV>
<DIV><FONT face=Arial size=2>I have tried the gmap demo and it works
fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using the standard gmap75.php3, with the check
for layers removed, to see if it was any of the changes that I did to this
file.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My program creates a full view of the area with the
extents:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>480133,4732449,488288,4740088<BR></DIV>
<DIV><FONT face=Arial size=2><FONT size=2>
<P>The information passed to:</P>
<P>$gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix,
$oGeorefExt);</P></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>Before the zoom command</FONT></DIV>
<DIV>zooming to: 198,
172<BR> 210,
156 (PixelRect)<BR>width: 400, height: 300<BR>Geo
Coord: 480133, 4732449, 488288, 4740088</DIV>
<DIV><BR>Extent minx VALUE="480133.000000" miny VALUE="4732449.000000" maxx
VALUE="488288.000000" maxy VALUE="4740088.000000" <BR></DIV>
<DIV>after zoom: 198,
172<BR> 210,
156<BR>width: 400, height: 300<BR>Geo Coord: 480133, 4732449, 488288,
4740088</DIV>
<DIV><BR>Extent minx VALUE="296614.373568" miny VALUE="4595153.756009" maxx
VALUE="671969.726432" maxy VALUE="4876670.270657" <BR></DIV>
<SCRIPT language=JavaScript>
function MapSizeSelected()
{
if (document.forms[0].MapSize.selectedIndex != 0 &&
document.forms[0].MapSize.selectedIndex !=1)
document.forms[0].submit();
}
</SCRIPT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This takes my zoom from a 5km area to 195km
area.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried this with TAB files and ShapeFiles,
with the same result.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am not sure if it is a bug with mapscript, or
PHP, because I can get the demo working, I believe that it is something in
either my .MAP file or my main program that is calling on
gmap75.php.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any help would be appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Joseph Archibald<BR>Archtech Computers/National
Amiga<BR>502 Adelaide St N<BR>London, Ont. N6B 3J2<BR>ph: 519
858-8760<BR>fax: 519 858-8762</FONT></DIV></BODY></HTML>