[Mapserver-users] mapscript/perl: Can't locate object method "new" via package "mapObj"
Pedro Salazar
pedro-b-salazar at ptinovacao.pt
Fri Feb 28 08:28:46 PST 2003
--=-e0zjM0jN2h5mT6aPx/Xb
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Greetings,=20
I'm trying to get in mapscript through perl, and I got this error:
"
Can't locate object method "new" via package "mapObj" (perhaps you
forgot to load "mapObj"?) at ./script.pl line 7.
"
my perl script:
"
#!/usr/bin/perl -w
use strict;
use mapscript;
#use Xbase;
my $map =3D mapObj->new ('aveiro1.map') or die('Unable to open mapfile.');
my $img =3D $map->draw() or die('Unable to draw map');
my $void =3D $img->saveImage('example.png', $mapscript::MS_PNG,
$map->{transparent}, $map->{interlace}, 0);
"
Anyone has a clue about this? (it looks to be a simple issue)
thanks,
Pedro Salazar.
--=20
<id name=3D"pedro salazar">=20
<email>pedro-b-salazar at ptinovacao.pt</email>
<pgp-key-id>0E129E31D803BC61</pgp-key-id>
</id>
--=-e0zjM0jN2h5mT6aPx/Xb
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
iD8DBQA+X44+DhKeMdgDvGERAlzpAKCW++NrgPlZ5wxMmuQfXh/wd9oIaACeLiDV
2gdPrU7rPCs1ndx1x0qfK+k=
=rCtD
-----END PGP SIGNATURE-----
--=-e0zjM0jN2h5mT6aPx/Xb--
More information about the MapServer-users
mailing list