[Qgis-developer] problem with feature request and updateFeature

Nathan Woodrow madmanwoo at gmail.com
Fri Mar 22 16:49:28 PDT 2013


On Sat, Mar 23, 2013 at 3:00 AM, Jürgen E. <jef at norbit.de> wrote:

I don't see a way to currently get what changed without looking up the
> current
> feature in the process.


Well the feature itself knows what values it started with. Every update in
QgsFeature goes though the setAttribute, etc, call, you can just have an
internal dictionary that logs when one of values is changed using those
methods.


features are not tied to layers.  QgsVectorLayer (and it's edit buffer)
> currently track the changes to features of a layer.
>

That's fine you can still do that on the layer.  I'll write a patch and
show you what I mean.

- Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130323/d2bdea58/attachment.html>


More information about the Qgis-developer mailing list