[mapserver-users] reference map
Hankley, Chip
Chip.Hankley@GASAI.Com
Mon, 1 Jul 2002 14:56:44 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C22139.6CE20740
Content-Type: text/plain;
charset="iso-8859-1"
...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.
-----Original Message-----
From: Aaron D. Hunt [mailto:hunt@zedxinc.com]
Sent: Monday, July 01, 2002 5:52 PM
To: Hankley, Chip
Subject: Re: [mapserver-users] reference map
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 -----
From: Hankley, Chip <mailto:Chip.Hankley@GASAI.Com>
To: 'Aaron D. Hunt' <mailto:hunt@zedxinc.com> ;
mapserver-users@lists.gis.umn.edu <mailto:mapserver-users@lists.gis.umn.edu>
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
-----Original Message-----
From: Aaron D. Hunt [mailto:hunt@zedxinc.com]
Sent: Monday, July 01, 2002 3:27 PM
To: mapserver-users@lists.gis.umn.edu
<mailto:mapserver-users@lists.gis.umn.edu>
Subject: [mapserver-users] reference map
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
------_=_NextPart_001_01C22139.6CE20740
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff size=2><SPAN class=342365019-01072002>...hmm. Well,
there are a number routes to go down that could help you narrow down your
problem:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN
class=342365019-01072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2><SPAN class=342365019-01072002>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...</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN
class=342365019-01072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2><SPAN class=342365019-01072002>2) I have no idea
if this will help, but you might try adding some color defs to your reference
object -</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN
class=342365019-01072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2><SPAN
class=342365019-01072002>REFERENCE<BR> STATUS ON<BR> IMAGE
"C:\Inetpub\wwwroot\Wausau\graphics\reference.png"<BR> SIZE 150
150<BR> EXTENT 253388.816486 170076.852191 298268.816481
214956.852186<BR><FONT color=#ff0000> COLOR -1 -1 -1<BR>
OUTLINECOLOR 255 0 0</FONT><BR>END</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2><SPAN
class=342365019-01072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2><SPAN class=342365019-01072002>3) Try it on CGI
MapServer.</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Aaron D. Hunt
[mailto:hunt@zedxinc.com]<BR><B>Sent:</B> Monday, July 01, 2002 5:52
PM<BR><B>To:</B> Hankley, Chip<BR><B>Subject:</B> Re: [mapserver-users]
reference map<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I am using lat lon for the rest of the map. Here
is the code from the top of the map file,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>NAME WORK<BR>STATUS ON<BR>SIZE 500 250<BR>EXTENT
-129 22 -60 55<BR>UNITS DD<BR>SHAPEPATH "./"<BR>IMAGECOLOR 255 255
255<BR>INTERLACE ON<BR>FONTSET "FONT.LST"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Does any of this help?</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Chip.Hankley@GASAI.Com
href="mailto:Chip.Hankley@GASAI.Com">Hankley, Chip</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=hunt@zedxinc.com
href="mailto:hunt@zedxinc.com">'Aaron D. Hunt'</A> ; <A
title=mapserver-users@lists.gis.umn.edu
href="mailto:mapserver-users@lists.gis.umn.edu">mapserver-users@lists.gis.umn.edu</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 01, 2002 11:07
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [mapserver-users]
reference map</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=137320518-01072002><FONT color=#0000ff size=2>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?</FONT></SPAN></DIV>
<DIV><SPAN class=137320518-01072002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=137320518-01072002><FONT color=#0000ff
size=2>Chip</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Aaron D. Hunt
[mailto:hunt@zedxinc.com]<BR><B>Sent:</B> Monday, July 01, 2002 3:27
PM<BR><B>To:</B> <A
href="mailto:mapserver-users@lists.gis.umn.edu">mapserver-users@lists.gis.umn.edu</A><BR><B>Subject:</B>
[mapserver-users] reference map<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>When I draw a reference map, I get an image
but my background image is not there. Below is the code I
used</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>From map file</DIV>
<DIV><BR>REFERENCE<BR> EXTENT -125.481 23.17332 -66.5282
51.7963<BR> IMAGE
/usr/home/gui-ads/html/map/framework/ref.png<BR> STATUS
on<BR> size 124 74<BR>END</DIV>
<DIV> </DIV>
<DIV>Php script</DIV>
<DIV> </DIV>
<DIV>$image_ref=$map->drawReferenceMap();<BR>$image_url_ref=$image_ref->saveWebImage(MS_PNG,1,1,0);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I try using a gif like to doc tells, I get
a mapscript error.</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks for any help</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2></FONT> </DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C22139.6CE20740--