<p dir="ltr">Allar,</p>
<p dir="ltr">We will have to see some code to be of any help.  Why not consider putting it up on GitHub if you haven't already</p>
<p dir="ltr">-Nathan</p>
<div class="gmail_quote">On 24 Jan 2013 01:09, "Allar Haav" <<a href="mailto:allar.haav@gmail.com">allar.haav@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I recently started learning Python and I'm currently finishing my first plugin that I really needed for QGIS - it performs a simple similarity transform on point layer. While the familiar qgsAffine presupposes that I know exactly the translation and rotation parameters, there often cases when I do not. What I might have is just information (GPS measurements for example) that points A and B should have coordinates x1,y1 and x2,y2. And that's it.<br>

So far I've managed to get everything working, but I have run into weird problems. When I perform the operations on really small datasets, everything is working fine. But when I have a layer with, say 600 points, QGIS starts acting weird. Sometimes it performs ok, yet once in a while some points aren't affected by the transformation, basically it starts skipping features. It seems as if the memory buffer is overloaded (?). Any ideas on that? The code in main transformation method is put between beginEditCommand() and endEditCommand(), the points are moved using moveVertex() function.<br>

<br>
Regards,<br>
Allar<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div>