[postgis-devel] shp2pgsql - Cannot use both -D and -r
Sandro Santilli
strk at keybit.net
Wed May 16 01:02:08 PDT 2012
On Wed, May 16, 2012 at 09:25:47AM +0300, Lauri Kajan wrote:
> 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?
It's a bug, could you file it on http://trac.osgeo.org/postgis please ?
TIA
--strk;
,------o-.
| __/ | Delivering high quality PostGIS 2.0 !
| / 2.0 | http://strk.keybit.net - http://vizzuality.com
`-o------'
More information about the postgis-devel
mailing list