[postgis-devel] shp2pgsql - Cannot use both -D and -r

Lauri Kajan lauri.kajan at gmail.com
Tue May 15 23:25:47 PDT 2012


Hi all,

When trying to import shape files with a command:
shp2pgsql -c -D -s 3067 -i -N skip -W CP1252 C:\myshape.shp mytable |
psql -d postgis

I got an error "Cannot use both -D and -r". What is the -r parameter?
Should it be -s?
I removed the s parameter and then it worked. But now all my tables
are without srid.
I think the same command has worked before.
Why the srid setting has been disabled when using dump or is this a bug?


I had the latest windows version from the Stack Builder.

-Lauri



More information about the postgis-devel mailing list