[mapserver-users] reference map

Hankley, Chip Chip.Hankley@GASAI.Com
Mon, 1 Jul 2002 13:07:00 -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_01C2212A.18CAEB90
Content-Type: text/plain;
	charset="iso-8859-1"

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
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_01C2212A.18CAEB90
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><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>&nbsp;</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> mapserver-users@lists.gis.umn.edu<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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>From map file</DIV>
  <DIV><BR>REFERENCE<BR>&nbsp;EXTENT -125.481 23.17332 -66.5282 
  51.7963<BR>&nbsp;IMAGE 
  /usr/home/gui-ads/html/map/framework/ref.png<BR>&nbsp;STATUS on<BR>&nbsp;size 
  124 74<BR>END</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Php script</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>$image_ref=$map-&gt;drawReferenceMap();<BR>$image_url_ref=$image_ref-&gt;saveWebImage(MS_PNG,1,1,0);</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2212A.18CAEB90--