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

Attila Csipa plists at prometheus.org.yu
Sat Feb 14 13:24:12 PST 2004


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.




More information about the MapServer-users mailing list