[postgis-users] problem with shp2pgsql

Arnaud Lesauvage thewild at freesurf.fr
Thu Dec 29 01:44:34 PST 2005


henok tadesse wrote:
> perhaps that was the problem,
> 
> the full line is like this...
> 
> /usr/local/pgsql/bin/shp2pgsql -s 26911  river.shp
> River myschema.myRiverdb > ~/River.sql
> 
> 
> and i assumed i should put the shapefiles in the same
> folder as the shp2pgsql because i didnot get any hint
> where to actually put the shapefiles and i could not
> find the 'loader' directory. Where exactly should the
> shapefiles be loaded anyway? Or it could be anywhere
> given the proper path is provided later in the code? 

I believe so. At least my shp2pgsql version, which wass 
precompiled for win32, runs with my shp files called with a full 
path information :
shp2pgsql.exe -s 32631 -d -g my_geometry -I 
D:\Temp\ShapeFiles\my_shape.shp mytable mydb|psql -U myself mydb

--
Arnaud




More information about the postgis-users mailing list