[gdal-dev] Append a shapefile to a postgis table using the
GDAL/OGR Python interface
Even Rouault
even.rouault at mines-paris.org
Wed Jul 6 14:47:57 EDT 2011
Le mercredi 06 juillet 2011 17:11:31, Luke Peterson a écrit :
> On Sat, Jul 24, 2010 at 10:31PM, Chaitanya kumar CH <chaitanya.ch at
>
Hum, wait, how come can you use CopyLayer() to append to an existing table ?
CopyLayer() is supposed to create a new layer, so I don't see how it would
work with an existing target layer.
Actually I've just tested it to append to an existing Postgis table, and as
expected, I get :
ERROR 1: Layer XXXXXX already exists, CreateLayer failed.
Use the layer creation option OVERWRITE=YES to replace it.
So, I don't even understand how you manage to get to the point where features
are about to be inserted...
So I'm not sure at all the PRESERVE_FID option makes sense. Or do I miss
something ??
More information about the gdal-dev
mailing list