[mapserver-users] reference map

Aaron D. Hunt hunt@zedxinc.com
Mon, 1 Jul 2002 13:26:33 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_003D_01C22102.EB2C5EC0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=3D$map->drawReferenceMap();
$image_url_ref=3D$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_000_003D_01C22102.EB2C5EC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>When I draw a reference map, I get an =
image but my=20
background image is not there. Below is the code I used</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>From map file</DIV>
<DIV><BR>REFERENCE<BR>&nbsp;EXTENT -125.481 23.17332 -66.5282=20
51.7963<BR>&nbsp;IMAGE=20
/usr/home/gui-ads/html/map/framework/ref.png<BR>&nbsp;STATUS =
on<BR>&nbsp;size=20
124 74<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>Php script</DIV>
<DIV>&nbsp;</DIV>
<DIV>$image_ref=3D$map-&gt;drawReferenceMap();<BR>$image_url_ref=3D$image=
_ref-&gt;saveWebImage(MS_PNG,1,1,0);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I try using a gif like to doc tells, =
I get a=20
mapscript error.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Aaron</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_003D_01C22102.EB2C5EC0--