[Mapserver-users] Re: perl MapScript "can't locate .../getClass.al"
pkishor_98
pkishor@geoanalytics.com
Thu, 25 Sep 2003 21:46:58 -0000
--- In mapserver-users@yahoogroups.com, "Matthew Haines"
<mhaines94108@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.
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users