------------- Begin Forwarded Message -------------
From: "Joseph Archibald" <joea@archtech.ca>
To: <mapserver-info@lists.gis.umn.edu>
Subject: Zooming Problems
Date: Mon, 7 Jan 2002 10:11:33 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Hi
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.
I orginally wrote the code for mapscript 3.3 using IIS and PHP
4.04 on Windows 2000.
I am currently still using Windows 2000 and PHP 4.0.6 and
MapScript Version (Aug 29, 2001)
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
I have tried the gmap demo and it works fine.
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.
My program creates a full view of the area with the extents:
480133,4732449,488288,4740088
The information passed to:
$gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix,
$oGeorefExt);
Before the zoom command
zooming to: 198, 172
210, 156 (PixelRect)
width: 400, height: 300
Geo Coord: 480133, 4732449, 488288, 4740088
Extent minx VALUE="480133.000000" miny VALUE="4732449.000000"
maxx VALUE="488288.000000" maxy VALUE="4740088.000000"
after zoom: 198, 172
210, 156
width: 400, height: 300
Geo Coord: 480133, 4732449, 488288, 4740088
Extent minx VALUE="296614.373568" miny VALUE="4595153.756009"
maxx VALUE="671969.726432" maxy VALUE="4876670.270657"
This takes my zoom from a 5km area to 195km area.
I have tried this with TAB files and ShapeFiles, with the same
result.
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.
Any help would be appreciated.
Joseph Archibald
Archtech Computers/National Amiga
502 Adelaide St N
London, Ont. N6B 3J2
ph: 519 858-8760
fax: 519 858-8762
------------- End Forwarded Message -------------
|
Hi
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.
I orginally wrote the code for mapscript 3.3 using
IIS and PHP 4.04 on Windows 2000.
I am currently still using Windows 2000 and PHP
4.0.6 and
MapScript Version (Aug 29, 2001)
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 I have tried the gmap demo and it works
fine.
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.
My program creates a full view of the area with the
extents:
480133,4732449,488288,4740088
The information passed to: $gpoMap->zoomrectangle($oPixelRect, $dfWidthPix, $dfHeightPix, $oGeorefExt); Before the zoom command
zooming to: 198,
172
210, 156 (PixelRect) width: 400, height: 300 Geo Coord: 480133, 4732449, 488288, 4740088 Extent minx VALUE="480133.000000" miny VALUE="4732449.000000" maxx VALUE="488288.000000" maxy VALUE="4740088.000000" after zoom: 198,
172
210, 156 width: 400, height: 300 Geo Coord: 480133, 4732449, 488288, 4740088 Extent minx VALUE="296614.373568" miny VALUE="4595153.756009" maxx VALUE="671969.726432" maxy VALUE="4876670.270657" This takes my zoom from a 5km area to 195km
area.
I have tried this with TAB files and ShapeFiles,
with the same result.
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.
Any help would be appreciated.
Joseph Archibald
Archtech Computers/National Amiga 502 Adelaide St N London, Ont. N6B 3J2 ph: 519 858-8760 fax: 519 858-8762 |