Hello,
Have you tried this following code? Using
iface.mapCanvas().mapTool().pointsZM() is good for me with any
digitizing tool, while drawing.
# Measurement object (adapt with crs/transform context/ellipsoid)
da = QgsDistanceArea()
da.setSourceCrs(QgsProject.instance().crs(),
Have you considered listening to the featureAdded signal instead?
The digitizing shape (aka rubberband) you see while digitizing is not
really accessible. In fact, it isn't guaranteed to be the geometry of the
feature being created. It could even not exist at all ; this is all
dependent on the