[Mapserver-users] Can't locate 'new' method of mapObj
Lowell Filak
lfilak at medinaco.org
Mon Feb 17 16:53:27 PST 2003
Krung;
There is a syntax change in the MapServer 3.6.4 release:
> There is one small difference. The version of Swig used to build the
> Perl/Python/Tcl interfaces is different than in previous releases. With
> Perl there is a subtle difference in how you instantiate objects:
>
> $map = new mapObj(...);
>
> becomes:
>
> $map = new mapscript::mapObj(...);
>
> This change was made to bring Perl in line with the other language
> modules.
HTH
Lowell F.
The following message was sent by "krung" <krung at cad.go.th> on Tue, 18 Feb 2003 02:03:43 +0700.
> Hi all,
>
> I compiled perl mapscript (mapserver 3.6.4) on RH7.2. When I ran a simple script, it showed the error message below:
>
> Can't locate object method 'new' via package 'mapObj' (Perhaps you forgot to load 'mapObj'?) at ./testgis.pl line 4
>
> # code
> use mapscript;
>
> $ENV{MS_ERRORFILE}="mapserver.log";
> my $map = new mapObj("test.map")or die 'Couldn't open map file";
> $img = $map->draw();
> $img = saveImage("test.png",$mapscript::MS_PNG,1,1,1);
> $img->free();
> undef $map;
>
> No error file created. What I did wrong? Any special to compile mapserver-3.6.4 than mapserver-3.6.3.
>
> Thank you in advance,
>
> Krung.
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list