Hi Even,

2014-08-02 22:18 GMT+02:00 Even Rouault <[email protected]>:

[...]

> You can use the SetFrom() method.

it solved my problem, but it doesn't seems to copy geometry columns...

"""
            ofeature = ogr.Feature(olayer.GetLayerDefn())
            ofeature.SetFrom(feature)
            print feature.GetDefnRef().GetGeomFieldCount(),
feature.GetDefnRef().GetFieldCount()
            print ofeature.GetDefnRef().GetGeomFieldCount(),
ofeature.GetDefnRef().GetFieldCount()
"""

2 31
0 31          <-- 0!!!

Martin

-- 
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to