2009/1/10 Tim Sutton <span dir="ltr">&lt;<a href="mailto:tim@linfiniti.com">tim@linfiniti.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<div class="Ih2E3d"><br>
On Fri, 2009-01-09 at 00:04 +0100, Olivier Tournaire wrote:<br>
&gt; Thank you Aaron,<br>
&gt;<br>
&gt; I found the private members, and added const &amp; accessors for each of<br>
&gt; them. I will fill a ticket about it to have a more stable solution.<br>
&gt;<br>
<br>
</div>If you attach your changes as a patch we can just apply it assuming it<br>
does not break public api backwards compatibility. Thats assuming other<br>
devs dont have any objects - I cant see it causing any problems.<br>
<br>
Regards<br>
<br>
Tim<br>
<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>OK, I will attach the patch to ticket #1482 in a few days.<br>Does my proposition in the ticket respect the coding standards ?<br><br>Regards,<br><br>
Olivier<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>
<br>
&gt; Regards,<br>
&gt;<br>
&gt; Olivier<br>
&gt;<br>
&gt; 2009/1/8 Aaron Racicot &lt;<a href="mailto:aaronr@z-pulley.com">aaronr@z-pulley.com</a>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; As far as I know the data exists in the private members of the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; QgsVectorLayer class and currently there are not any access<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; methods (or<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; bindings) to them. &nbsp;Things like:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; QgsFeatureIds mDeletedFeatureIds;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; QgsFeatureList mAddedFeatures;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; QgsGeometryMap mChangedGeometries;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I had a similar need the other day in a python plugin and had<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; to bail and<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ended up doing what I needed another way… but access to these<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; would be<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; great. &nbsp;Maybe file a ticket and see how the devs feel about<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; it.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Aaron<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; From: <a href="mailto:qgis-developer-bounces@lists.osgeo.org">qgis-developer-bounces@lists.osgeo.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; [mailto:<a href="mailto:qgis-developer-bounces@lists.osgeo.org">qgis-developer-bounces@lists.osgeo.org</a>] On Behalf Of<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Olivier<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Tournaire<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Sent: Thursday, January 08, 2009 2:34 PM<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; To: <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject: [Qgis-developer] [Plugin] Added, deleted or changed<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; features in a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; layer<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi all,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; I am wondering how we can get the modified features (added,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; deleted,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; changed) features in a vector layer ? In fact, when commiting<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; changes, I<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; would like to make a special processing on the new, deleted or<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; changed<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; geometries. However, I do not found any method in the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; VectorLayer class to<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; retrieve these geometries. Any idea ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Best regards,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Olivier<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Dr. Olivier Tournaire<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; MATIS - Institut Géographique National<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 73, Ave de Paris<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 94165 St Mandé cedex, France<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; tel: (+33) 1 43 98 80 00 - 71 25<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; fax: (+33) 1 43 98 85 81<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Dr. Olivier Tournaire<br>
&gt; MATIS - Institut Géographique National<br>
&gt; 73, Ave de Paris<br>
&gt; 94165 St Mandé cedex, France<br>
&gt;<br>
&gt; tel: (+33) 1 43 98 80 00 - 71 25<br>
&gt; fax: (+33) 1 43 98 85 81<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
--<br>
</div></div><font color="#888888">Tim Sutton - QGIS Project Steering Committee Member (Release &nbsp;Manager)<br>
==============================================<br>
Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>
&nbsp;* QGIS programming services<br>
&nbsp;* Mapserver and PostGIS based hosting plans<br>
&nbsp;* FOSS Consulting &amp; Support Services<br>
Skype: timlinux Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
==============================================<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Dr. Olivier Tournaire<br>MATIS - Institut Géographique National<br>73, Ave de Paris<br>94165 St Mandé cedex, France<br><br>tel: (+33) 1 43 98 80 00 - 71 25<br>fax: (+33) 1 43 98 85 81<br>