<div dir="ltr">Hi Jurgen,<div>I wouldn't call them errors. GEOSDIfference returned a lot of empty geomcollections, which the QgsVectorFileWriter couldn't manage. Consequently it wrote a log message for each geometry it couldn't write [1].</div>
<div><br></div><div>Surely the logging should be improved in this specific case. Anyway, I think the option to turn QgsMessageLog off could be useful anyway...</div><div><br></div><div>giovanni</div><div><br></div><div>[1] <a href="https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L1718">https://github.com/qgis/QGIS/blob/master/src/core/qgsvectorfilewriter.cpp#L1718</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-05 12:31 GMT+02:00 Jürgen E. <span dir="ltr"><<a href="mailto:jef@norbit.de" target="_blank">jef@norbit.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Giovanni,<br>
<div><div class="h5"><br>
On Sat, 05. Jul 2014 at 10:27:24 +0200, G. Allegri wrote:<br>
> As I reported in a previous post, I was unable to conclude a difference<br>
> operation on a vector because the tool was running in exponential time.<br>
<br>
> Debugging pointed me to the problem: QgsVectoFileWriter was logging tons of<br>
> empty geometres with an incompatible type which will be discarded.<br>
> After commenting the line of logging the process completed in linear time.<br>
<br>
> Shouldn't we offer the opportunity to turn QgsLogger off? This would let<br>
> the user/developer to switch it off whenever he already knows what's<br>
> happening.<br>
> Is it already there and I missed it?<br>
<br>
</div></div>What error message did you get and wouldn't it be better to kill them where it<br>
origins or to issue a final "%n empty geometries skipped" instead of logging<br>
individual errors.<br>
<br>
Alternatively we could issue a "last message repeated %n times" in message log<br>
to make it behave better - although that only works the error message are<br>
identical.<br>
<br>
<br>
Jürgen<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31<br>
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50<br>
Software Engineer           D-26506 Norden             <a href="http://www.norbit.de" target="_blank">http://www.norbit.de</a><br>
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode<br>
<br>
--<br>
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH<br>
Rheinstrasse 13, 26506 Norden<br>
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div>