AW: [Qgis-developer] featureCount() of layer with a subset

Ziegler Stefan Stefan.Ziegler at bd.so.ch
Tue Feb 1 07:37:20 EST 2011


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" <Stefan.Ziegler at bd.so.ch>
Gesendet: Die, 1.2.2011 12:05
An: qgis-developer at lists.osgeo.org
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
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list