[Mapserver-users] Re: Mapserver-users digest, Vol 1 #431 - 24 msgs

Attila Csipa plists@prometheus.org.yu
Sat, 14 Feb 2004 22:24:12 +0100


On Saturday 14 February 2004 20:44, Gregorio Greco wrote:
> i want to use the script shp2mysql.pl for to convert a shapefile.
> My environment is Win XP with WebServer Apache running!
> When i compile the script it's all ok! when I execute the script "
> shp2mysql.pl name_file"
>
> it's an error , that:
>  "Can't locate object method "new" via package "Shape" (....)'.
>
>  I believe that the problem is the subroutine "new" in the package
> Shapefile.pm and I attach the first code line :

Do you have shapelib installed ? In perl, the "new" subroutine is actually the 
constructor of the shape class - every class HAS to have a constructor. Check 
out the wiki for additional info regarding windows installations.

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users