I would like to know how many features are rendered in my QgsGraduatedSymbolRendererV2 per range. I need to know also the exact range (lower and upper value).
I know how to get each range : QgsVectorLayer.render().ranges() but I can't get the feature count there.
I saw the function QgsVectorLayer.featureCount(QgsSymbolV2) but if I use the symbol that I got in QgsRendererRangeV2.symbol() it always returns 0. I used QgsVectorLayer.countSymbolFeatures() before, it returns True.
If somebody can explain to me if it's possible and how, I'll appreciate that.
أكثر...
I know how to get each range : QgsVectorLayer.render().ranges() but I can't get the feature count there.
I saw the function QgsVectorLayer.featureCount(QgsSymbolV2) but if I use the symbol that I got in QgsRendererRangeV2.symbol() it always returns 0. I used QgsVectorLayer.countSymbolFeatures() before, it returns True.
If somebody can explain to me if it's possible and how, I'll appreciate that.
أكثر...