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

pkishor_98 pkishor at geoanalytics.com
Thu Sep 25 17:46:58 EDT 2003


--- In mapserver-users at yahoogroups.com, "Matthew Haines"
<mhaines94108 at h...> wrote:
> 
> 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 

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


that's because class is not a member of map... it is a member of layer.

$selected_layer->getClass(0) will work fine.




More information about the mapserver-users mailing list