Skip to main content
2 of 2
added 10 characters in body
Taras
  • 34k
  • 4
  • 73
  • 148

One way could be:

d = QgsDistanceArea()
d.setEllipsoid('WGS84')
layer = iface.activeLayer() 
features = layer.getFeatures()

for feat in features:
    print(
        d.convertAreaMeasurement(
            d.measureLength(feat.geometry()),
            1
        )
    )
cabesuon
  • 1.1k
  • 6
  • 8