[Mapserver-users] perl mapscript error
Aaron D. Hunt
hunt at zedxinc.com
Wed Jun 11 09:03:17 PDT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_008D_01C33011.71D6DDB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
When I run the following script using the 4.0b and perl mapscript.=20
#!/usr/bin/perl
use mapscript;
my $d =3D time();
my $imagename =3D "/home/wcs/html/dy_images/".$d.".png";
my $url =3D "/dy_images/".$d.".png";
$map =3D new mapscript::mapObj('/home/wcs/html/maps/map.map') or =
die('Unable to open mapfile.');
$img =3D $map->draw() or die('Unable to draw map');
$img->saveImage($imagename, $mapscript::MS_PNG, $map->{transparent}, =
$map->{interlace}, 0);
I get this error.
Can't locate auto/mapscript/imageObj/saveImage.al in @INC (@INC =
contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi =
/usr/lib/perl5/5.8.0 =
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi =
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1 =
/usr/lib/perl5/site_perl =
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi =
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at =
./test_map.cgi line 15
It opens the map file and draw just fine, but it dies on the save. Any =
Ideas?
Aaron D. Hunt
Technical Manager
------=_NextPart_000_008D_01C33011.71D6DDB0
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 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>When I run the following script using =
the 4.0b and=20
perl mapscript. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#!/usr/bin/perl</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>use mapscript;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>my $d =3D time();<BR>my $imagename =3D=20
"/home/wcs/html/dy_images/".$d.".png";<BR>my $url =3D=20
"/dy_images/".$d.".png";</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>$map =3D new=20
mapscript::mapObj('/home/wcs/html/maps/map.map') or die('Unable to open=20
mapfile.');<BR>$img =3D $map->draw() or die('Unable to draw=20
map');<BR>$img->saveImage($imagename, $mapscript::MS_PNG,=20
$map->{transparent}, $map->{interlace}, 0);<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I get this error.</DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can't locate =
auto/mapscript/imageObj/saveImage.al=20
in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi=20
/usr/lib/perl5/5.8.0 =
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi=20
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.1=20
/usr/lib/perl5/site_perl=20
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi=20
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at =
./test_map.cgi=20
line 15<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It opens the map file and draw just =
fine, but it=20
dies on the save. Any Ideas?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Aaron D. Hunt<BR>Technical=20
Manager<BR></FONT></DIV></BODY></HTML>
------=_NextPart_000_008D_01C33011.71D6DDB0--
More information about the MapServer-users
mailing list