Hi, OGRFeature::Clone() duplicates feature. I found in API manual this sentence: the newly created feature is owned by the caller, and will have it's own reference to the OGRFeatureDefn.
When I try in Python: ofeature = feature.Clone() print feature.GetDefnRef() print ofeature.GetDefnRef() I am getting same reference to OGRFeatureDefn. <osgeo.ogr.FeatureDefn; proxy of <Swig Object of type 'OGRFeatureDefnShadow *' at 0x7f86b7b84a20> > <osgeo.ogr.FeatureDefn; proxy of <Swig Object of type 'OGRFeatureDefnShadow *' at 0x7f86b7b84a20> > ? Thanks for clarification in advance, Martin -- Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev