[postgis-users] shp2pgsql problem

Tore Halset halset at pvv.ntnu.no
Thu Apr 10 23:44:02 PDT 2008


Hello.

I have installed postgresql-8.3.1, geos-3.0.0, proj-4.6.0,  
postgis-1.3.2 and gdal-1.5.1 on my brand new macbook. Connecting to an  
empty postgis database from uDig and adding some layers and features  
seem to work fine.

shp2pgsql is however a different story. I have not been able to load  
in any shape file. Example.
# download http://udig.refractions.net/files/docs/data-v1_1.zip
# unzip and cd into directory
% shp2pgsql usa_counties.shp mytable
shp2pgsql: shape (.shp) or index files (.shx) can not be opened.
% shp2pgsql usa_counties mytable
shp2pgsql: shape (.shp) or index files (.shx) can not be opened.
% ls -1 usa_counties.*
usa_counties.dbf
usa_counties.prj
usa_counties.qix
usa_counties.shp
usa_counties.shx

What am I doing wrong?

Regards,
  - Tore.



More information about the postgis-users mailing list