[Mapserver-users] set zoom level to 1:1?

Twan Kogels twan at twansoft.com
Thu Dec 12 10:01:19 EST 2002


Hello list,

Here comes a quick question:
When i open my raster layer in paint shop pro or photoshop, the raster 
(tiff) file is displayed at zoom level 1. You see the streets and parks the 
way it should be.

When i view the raster layer with mapserver the first view is a resized 
raster layer, so it does fit into the boundries of the map extent.

How can i calculate the zoom/scale level which is needed to get the same 
viewing result in mapserver as viewing the raster layer in paint shop pro? 
With other words, how can i zoom into a map so the zoom level is 1:1.

The following informatie may be usefull:
==================
linux:/usr/local/apache/htdocs/haarlem/data/layer1 # 
/usr/local/bin/gdalinfo 1008060.TIF
Driver: GTiff/GeoTIFF
Size is 8000, 5333
Coordinate System is `'
Origin = (95999.250000,488000.750000)
Pixel Size = (1.500000,-1.500000)
Metadata:
   TIFFTAG_SOFTWARE=Handmade Software, Inc. Image Alchemy v1.7.7
Corner Coordinates:
Upper Left  (   95999.250,  488000.750)
Lower Left  (   95999.250,  480001.250)
Upper Right (  107999.250,  488000.750)
Lower Right (  107999.250,  480001.250)
Center      (  101999.250,  484001.000)
Band 1 Block=8000x2 Type=Byte, ColorInterp=Red
   Min=0.000/0, Max=255.000/0
Band 2 Block=8000x2 Type=Byte, ColorInterp=Green
   Min=0.000/0, Max=255.000/0
Band 3 Block=8000x2 Type=Byte, ColorInterp=Blue
   Min=0.000/0, Max=255.000/0
Band 4 Block=8000x2 Type=Byte, ColorInterp=Alpha
   Min=0.000/0, Max=255.000/0
=====================

=====================
linux:/usr/src/packages/SOURCES/mapserver-3.6.3 # ./mapserv -v
MapServer version 3.6.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ 
SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
=====================

Best regards,
Twan Kogels




More information about the mapserver-users mailing list