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(), QgsProject.in

Re: [QGIS-Developer] Digitizing with Edit Menu

2023-05-01 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 curr

[QGIS-Developer] Digitizing with Edit Menu

2023-04-30 Thread Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer
When you digitize a shape using the Edit menu in QGIS is the shape accessible? I am looking to get he area of the shape as it is drawn. I have added an event filter to my code to capture the coordinates and calculate it by creating a QgsGeometry, but my code is getting complicated as there are