As far as I know, currently the most appropriate thing is to use layer.dataProvider().addFeatures() and to skip the edit buffer. But I think that layers should broadcast information about changing feature ids. This is not a problem unique to the memory provider.
Matthias On Mon 18 Nov 2013 17:25:39 CET, Radim Blazek wrote: > Is there a trick how to keep track of features added to memory provider? > > Say that feature with id is added to a memory provider. Original id is > overwritten by the memory provider. How to access the feature in the > provider by original id without additional attribute or hacks like > counting mNextFeatureId outside the provider. > > Radim > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer