[Qgis-developer] problem with feature request and updateFeature

Martin Dobias wonder.sk at gmail.com
Mon Apr 15 23:17:04 PDT 2013

On Tue, Apr 16, 2013 at 1:01 AM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> I asked Jurgen to add the updateFeature a while ago in order to make the API
> feel a bit cleaner. My issue was that you could update the attribute values
> on the feature but you then still call changeFeatureAttribute for each
> attribute which seems really crap.  I really only want to update the feature
> and give it to the layer to handle calling the changeFeatureAttribute calls
> with the id, index, value stuff.

I understand the motivation, but unless we have change tracking in
QgsFeature there is little sense to keep the function. And as Jürgen
has noted, adding such tracking just for this particular function does
not seem right.


More information about the Qgis-developer mailing list