shp2mysql problems

Paul Smith paul.oduro at SPPS.ORG
Sat Nov 13 10:10:18 EST 2004


On Fri, 29 Oct 2004 11:14:29 -0500, Paul Smith <paul.oduro at SPPS.ORG> wrote:

>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

I forgot to run make install on Geo-shapelib. I am able to export
lakespy2.shp (from the Itasca demo) into a mySQL database.



More information about the mapserver-users mailing list