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

Olivier Tournaire olitour at gmail.com
Sat Jan 10 12:37:59 EST 2009


2009/1/10 Tim Sutton <tim at linfiniti.com>

> Hi
>
> On Fri, 2009-01-09 at 00:04 +0100, Olivier Tournaire wrote:
> > 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.
> >
>
> If you attach your changes as a patch we can just apply it assuming it
> does not break public api backwards compatibility. Thats assuming other
> devs dont have any objects - I cant see it causing any problems.
>
> Regards
>
> Tim
>

OK, I will attach the patch to ticket #1482 in a few days.
Does my proposition in the ticket respect the coding standards ?

Regards,

Olivier


>
>
> > 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
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> --
> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
> ==============================================
> Visit http://linfiniti.com to find out about:
>  * QGIS programming services
>  * Mapserver and PostGIS based hosting plans
>  * FOSS Consulting & Support Services
> Skype: timlinux Irc: timlinux on #qgis at freenode.net
> ==============================================
>



-- 
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/20090110/20953c83/attachment.html


More information about the Qgis-developer mailing list