How to find the irregular polygons in qgis using python

المشرف العام

Administrator
طاقم الإدارة
I have a vector shape file and i want to find the irregular polygons. What are the parameters to be considered to check the iregularity of the polygon features? Calculating the perimeter and extent will be useful for rectangle so how can i find the irregular polygons in the polygon shapefile?

for f in layer.getFeatures(): perimeter = feat.geometry().length() bbox = geom.boundingBox() width = bbox.xMaximum() - bbox.xMinimum() height = bbox.yMaximum() - bbox.xMinimum()

أكثر...
 
أعلى