Re: [gdal-dev] ogr python: copying features from postgis to postgis

2016-11-28 Thread Even Rouault
On lundi 28 novembre 2016 18:19:40 CET Stefan Ziegler wrote: > Hi Even > > thanks for the hint: > > ERROR 6: CreateFeature : unsupported operation on a read-only datasource. > ERROR 6: CreateFeature : unsupported operation on a read-only datasource. > ERROR 6: CreateFeature : unsupported operatio

Re: [gdal-dev] ogr python: copying features from postgis to postgis

2016-11-28 Thread Stefan Ziegler
Hi Even thanks for the hint: ERROR 6: CreateFeature : unsupported operation on a read-only datasource. ERROR 6: CreateFeature : unsupported operation on a read-only datasource. ERROR 6: CreateFeature : unsupported operation on a read-only datasource. ERROR 6: CreateFeature : unsupported operation

Re: [gdal-dev] ogr python: copying features from postgis to postgis

2016-11-27 Thread Even Rouault
On samedi 26 novembre 2016 21:18:50 CET Stefan Ziegler wrote: > Hi > > I'm trying to copy some features from one postgis table to another postgis > table: > > dstLayer.StartTransaction() > > srcFeature = srcLayer.GetNextFeature() > while srcFeature is not None: > srcLayerDefn = srcLayer.GetL

[gdal-dev] ogr python: copying features from postgis to postgis

2016-11-26 Thread Stefan Ziegler
Hi I'm trying to copy some features from one postgis table to another postgis table: dstLayer.StartTransaction() srcFeature = srcLayer.GetNextFeature() while srcFeature is not None: srcLayerDefn = srcLayer.GetLayerDefn() dstLayerDefn = dstLayer.GetLayerDefn() dstFeature = ogr.Featur