[Qgis-developer] [Plugin] Added, deleted or changed features in a layer

Olivier Tournaire olitour at gmail.com
Thu Jan 8 18:04:49 EST 2009


Thank you Aaron,

I found the private members, and added const & accessors for each of them. I
will fill a ticket about it to have a more stable solution.

Regards,

Olivier

2009/1/8 Aaron Racicot <aaronr at z-pulley.com>

> As far as I know the data exists in the private members of the
> QgsVectorLayer class and currently there are not any access methods (or
> bindings) to them.  Things like:
>
> QgsFeatureIds mDeletedFeatureIds;
> QgsFeatureList mAddedFeatures;
> QgsGeometryMap mChangedGeometries;
>
> I had a similar need the other day in a python plugin and had to bail and
> ended up doing what I needed another way… but access to these would be
> great.  Maybe file a ticket and see how the devs feel about it.
>
> Aaron
>
>
> From: qgis-developer-bounces at lists.osgeo.org
> [mailto:qgis-developer-bounces at lists.osgeo.org] On Behalf Of Olivier
> Tournaire
> Sent: Thursday, January 08, 2009 2:34 PM
> To: qgis-developer at lists.osgeo.org
> Subject: [Qgis-developer] [Plugin] Added, deleted or changed features in a
> layer
>
> Hi all,
>
> I am wondering how we can get the modified features (added, deleted,
> changed) features in a vector layer ? In fact, when commiting changes, I
> would like to make a special processing on the new, deleted or changed
> geometries. However, I do not found any method in the VectorLayer class to
> retrieve these geometries. Any idea ?
>
> Best regards,
>
> Olivier
>
> --
> Dr. Olivier Tournaire
> MATIS - Institut Géographique National
> 73, Ave de Paris
> 94165 St Mandé cedex, France
>
> tel: (+33) 1 43 98 80 00 - 71 25
> fax: (+33) 1 43 98 85 81
>
>


-- 
Dr. Olivier Tournaire
MATIS - Institut Géographique National
73, Ave de Paris
94165 St Mandé cedex, France

tel: (+33) 1 43 98 80 00 - 71 25
fax: (+33) 1 43 98 85 81
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090109/75a0aafb/attachment.html


More information about the Qgis-developer mailing list