Ah, this happens when you set QgsDataSourceURI.setUseEstimatedMetadata(True).
regards Stefan Mit freundlichem Gruss Stefan Ziegler Leiter amtliche Vermessung Amt für Geoinformation Rötistrasse 4 4501 Solothurn 032 627 75 96 ----- Originalnachricht ----- Von: "Ziegler Stefan" <[email protected]> Gesendet: Die, 1.2.2011 12:05 An: [email protected] Betreff: [Qgis-developer] featureCount() of layer with a subset Hi The featureCount() method of QgsVectorLayer is returning the number of all the features in the layer without considering the sql subset. Is this on purpose? regards Stefan Mit freundlichem Gruss Stefan Ziegler Leiter amtliche Vermessung Amt für Geoinformation Rötistrasse 4 4501 Solothurn 032 627 75 96 _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
