shp2mysql.pl problems

Matthew Holger mholger at OPTERA.NET
Tue Aug 24 09:19:43 PDT 2004


On Mon, Aug 23, 2004 at 10:21:14AM -0400, Lowell Filak wrote:
> I think the documentation points to installing Geo-Shapelib vs.
> Geo-ShapeFile .
>
> HTH
>
> Lowell
>

Even then, I had to make a couple cursory changes to shp2mysql.pl to get it
to work with Geo::Shapelib on my system (Debian 3.0 'sarge' on x86).

Specifically:
use Shape qw/:all/;
becomes
Use Geo::Shapelib qw/:all/;

and
$shape = new Shape $ARGV[0];
becomes
$shape = new Geo::Shapelib $ARGV[0];

After I did that, all was well.

Cheers!
-Matt.



More information about the MapServer-users mailing list