[Mapserver-users] little map in a big box

Ed McNierney ed at topozone.com
Fri Jan 24 16:13:08 EST 2003


Chris -

The EXTENT statement is

	EXTENT minx miny maxx maxy

and you've got

	EXTENT minx maxx miny maxy

so you're defining the X extent of your map to be 462228 to 4082000 (big!) and the Y extent to be equally big, so your map data occupies only a tiny bit of it.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 
-----Original Message-----
From: Chris Black [mailto:cblack at CalAcademy.Org]
Sent: Friday, January 24, 2003 4:03 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] little map in a big box


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


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list