Skip to main content
added 29 characters in body
Source Link
Taras
  • 34k
  • 4
  • 73
  • 148

You can run:

print(d.lengthUnits())

print(d.lengthUnits())

after you have defined your ellipsoid to see what the units of measurement for length are. Using your example code above, it results in DistanceUnit.Meters.

Ref: https://qgis.org/pyqgis/master/core/QgsDistanceArea.html

You can run:

print(d.lengthUnits())

after you have defined your ellipsoid to see what the units of measurement for length are. Using your example code above, it results in DistanceUnit.Meters.

Ref: https://qgis.org/pyqgis/master/core/QgsDistanceArea.html

You can run:

print(d.lengthUnits())

after you have defined your ellipsoid to see what the units of measurement for length are. Using your example code above, it results in DistanceUnit.Meters.

Ref: https://qgis.org/pyqgis/master/core/QgsDistanceArea.html

Source Link
Tom Brennan
  • 5.5k
  • 10
  • 28

You can run:

print(d.lengthUnits())

after you have defined your ellipsoid to see what the units of measurement for length are. Using your example code above, it results in DistanceUnit.Meters.

Ref: https://qgis.org/pyqgis/master/core/QgsDistanceArea.html