shp2mysql problems
Paul Smith
paul.oduro at SPPS.ORG
Fri Oct 29 09:14:29 PDT 2004
Hello All
When I run
./shp2mysql /path/to/shpfile/shpfilename (without the .shp extension) on a
SUSE box, I get
"Odd number of elements in hash assignment
at /usr/lib/perl5/site_perl/5.8.3/Geo/ShapeFile/Shape.pm line 30".
The offending line 30 in shape.pm reads
my %args = @_;
Two empty tables are created.
I edited shp2mysql as follows(as per some posting I read from Matt, Lowell
etc)
use Geo::ShapeFile::Shape qw/:all/; #line 9
$shape = new Geo::ShapeFile::Shape $ARGV[0];
Any help would be greatly appreciated
Paul
System info:
SuSE 9
Mapserver 4.2.5
Perl 5.8.3
Shapelib 1.2.10
GeoShapeFile 2.50
MySQL 4.0.18
More information about the MapServer-users
mailing list