Is there a possibility to get the number of objects in the attribute table? Using PyQ

المشرف العام

Administrator
طاقم الإدارة
I have a layer and I would like to access the number of rows the attribute table has from my code. Is there a way to do that without doing it like this:

Index = 0

for Feat in Layer.getFeatures(): Index += 1

print Index

Thank you!



أكثر...
 
أعلى