[Mapserver-users] little map in a big box

Chris Black cblack at CalAcademy.Org
Fri Jan 24 13:03:04 PST 2003


I'm just getting started with MapServer, and I'm having problems 
displaying a PNG file.
The visible image of the map takes up only a tiny, postage-stamp-sized 
area of the total
image, most of which is white space.  I looked on the list archive, and 
saw a similar
problem diagnosed as inconsistent use of units, but I really think I got 
all of that
right, with everything in meters -- then redid it with everything in DD, 
and got the same
problem, only my visible map image was even smaller.  I got the bounding 
coordinates from
the theme properties of an ArcView layer using the same image, the image 
size from viewing
the PNG in a Netscape window and reading the document title above the 
menu bar (i.e.
'baymap.png (PNG Image, 721x640 pixels)'), and computed the distance per 
pixel as (xmin -
xmax)/721 and similarly for the y dimension.  I'll attach my .map and 
.wld files (the version in meters) and hope
someone can help.

ecoatlas.map:
------------------ cut here ----------------------


NAME CALCTYEX1
EXTENT 462228 631000 4082000 4303000
SIZE 721 640
UNITS METERS
SHAPEPATH "C:\inetpub\wwwroot\sfbay\data\"
LAYER
    data "c:\inetpub\wwwroot\sfbay\data\baymap.png"
    NAME "bayraster"
    STATUS DEFAULT
    TYPE RASTER
END # LAYER
END # FILE
------------------ cut here ----------------------
baymap.wld:
------------------ cut here ----------------------
234
0
0
345
462228
4303000
------------------ cut here ----------------------


Many thanks for any help you can offer.

-- Chris Black
California Academy of Sciences
cblack at calacademy.org





More information about the MapServer-users mailing list