[Mapserver-users] perl MapScript "can't locate .../getClass.al"

Matthew Haines mhaines94108 at hotmail.com
Thu Sep 25 17:08:35 EDT 2003


When I invoke the getClass method from perl MapScript (mapserver 4.0 and 
Perl 5.8.0), I get the following error:

Can't locate auto/mapscript/mapObj/getClass.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
/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 makemap.pl 
line 19

Here is the relevant code snippet:

my $map = new 
mapscript::mapObj("/var/www/html/maps/manhattan2/manhattan2.map");
my $selected_layer = $map->getLayer (1);
my $selected_class = $map->getClass (0);

Note that if I comment out the last line, my code runs to completion and 
produces a map.

Anyone know what the cause is?

Matthew

_________________________________________________________________
Get MSN 8 Dial-up Internet Service FREE for one month.  Limited time offer-- 
sign up now!   http://join.msn.com/?page=dept/dialup




More information about the mapserver-users mailing list