Hi guys, <br><br>I'm creating a lot of QgsVectorLayer within a loop using a custom query <br>(postgres provider).<br>So, if some of the layers I create contain no rows, I see a message box <br>because the provider cannot retrieve the srid and geometry type. <br>
This is a problem within a loop, because these message boxes stop the <br>execution until users press the OK button.<br><br>I think would be a good thing to have a quiet mode and a function to <br>retrieve the error message. <br>
We already have vl.isValid() to test if it's all ok!<br><br>What's your opinion about it?<br><br>Cheers.<br clear="all"><br>-- <br>Giuseppe Sucameli<br>