Re: [gdal-dev] copy (duplicate) feature with python ogr?

2013-03-30 Thread Chao YUE
Hi Even, this solves my probelm, the example in the script is quite useful. Thanks. chao On Sat, Mar 30, 2013 at 12:41 PM, Even Rouault wrote: > Le samedi 30 mars 2013 12:22:25, Chao YUE a écrit : > > Dear all, > > > > I am trying to create a new polygon shapefile and copy features from > > e

Re: [gdal-dev] copy (duplicate) feature with python ogr?

2013-03-30 Thread Even Rouault
Le samedi 30 mars 2013 12:22:25, Chao YUE a écrit : > Dear all, > > I am trying to create a new polygon shapefile and copy features from > existing shapefile into it and I have some problems doing this. > the script is below: > > num_feature_multipolygon is a dictionary of (fdi,feature) pairs (se

[gdal-dev] copy (duplicate) feature with python ogr?

2013-03-30 Thread Chao YUE
Dear all, I am trying to create a new polygon shapefile and copy features from existing shapefile into it and I have some problems doing this. the script is below: num_feature_multipolygon is a dictionary of (fdi,feature) pairs (see at the end of mail) dsnew = driver.CreateDataSource('Multi_poly