|
...hmm. Well,
there are a number routes to go down that could help you narrow down your
problem:
1) Your reference
image is a PNG. Looks like you are on Linux / Unix, so, did you compile with PNG
support... are your maps (run as PNGs) showing up? You could comment out the
reference part of your mapfile and see if your main map shows up... if it does,
then you can be relatively sure PNG support is working. You must NOT have GIF
support since that generated an error...
2) I have no idea
if this will help, but you might try adding some color defs to your reference
object -
REFERENCE STATUS ON IMAGE
"C:\Inetpub\wwwroot\Wausau\graphics\reference.png" SIZE 150
150 EXTENT 253388.816486 170076.852191 298268.816481
214956.852186 COLOR -1 -1 -1
OUTLINECOLOR 255 0 0 END
3) Try it on CGI
MapServer.
I am using lat lon for the rest of the map. Here
is the code from the top of the map file,
NAME WORK STATUS ON SIZE 500 250 EXTENT
-129 22 -60 55 UNITS DD SHAPEPATH "./" IMAGECOLOR 255 255
255 INTERLACE ON FONTSET "FONT.LST"
Does any of this help?
----- Original Message -----
Sent: Monday, July 01, 2002 11:07
AM
Subject: RE: [mapserver-users]
reference map
Aaron, it
sounds like your EXTENT for your reference image may not match your EXTENT
for your overall map file. Those look like lat/long coordinates, is that
what you are using for the rest of your map?
Chip
When I draw a reference map, I get an image
but my background image is not there. Below is the code I
used
From map file
REFERENCE EXTENT -125.481 23.17332 -66.5282
51.7963 IMAGE
/usr/home/gui-ads/html/map/framework/ref.png STATUS
on size 124 74 END
Php script
$image_ref=$map->drawReferenceMap(); $image_url_ref=$image_ref->saveWebImage(MS_PNG,1,1,0);
If I try using a gif like to doc tells, I get
a mapscript error.
Thanks for any help
Aaron
|