Re: [QGIS-Developer] Digitizing with Edit Menu

2023-05-02 Thread Jacky Volpes via QGIS-Developer
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(),

Re: [QGIS-Developer] Digitizing with Edit Menu

2023-05-02 Thread Yoann Quenach de Quivillic via QGIS-Developer
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