<div dir="ltr">Hi everyone,<br><div><div><br></div><div>I'm using QGIS 2.0.1-Dufour from the repository ubuntugis-unstable.</div><div><br></div><div>I have a plugin that is used to translate a vector layer with a shift "delta_x" and "delta_y".</div>
<div>To do this I use the function translateFeature() as you can see from the code below:</div><div><br></div><div>vlayer = iface.activeLayer()</div><div><br></div><div>feature = QgsFeature() </div><div><br></div><div>for feature in vlayer.getFeatures():</div>
<div>    vlayer.translateFeature(<a href="http://feature.id">feature.id</a>(), delta_x, delta_y)</div><div><br></div><div><br></div><div><br></div><div>For every translated feature, the following message is displayed on the screen:</div>
<div><br></div><div>undo index changed 1</div><div>undo index changed 2</div><div>undo index changed 3</div><div>...</div><div><br></div><div><br></div><div>and the plugin execution seems very slow compared to same run under version QGIS 1.6.0-Copiapò.</div>
<div>Looking at the source code it seems that the message is sent through Qdebug().</div><div>This means that the QGIS was compiled with debug system activated?</div><div>How do I get a non-debug version?</div><div><br></div>
<div>Thanks</div></div><div><br></div>-- <br>Pietro Panzeri<br><br><br>
</div>