[QGIS-Developer] Reading current measurement with python

Simon Gröchenig groechenig at zt-gis.at
Wed Oct 4 01:15:16 PDT 2023


Hi Jacky,

thanks for your help and for pointing me to this code snippet.

However, I see that the measurement tools are instances of QgsMapTool with an QAction (and not QgsMapToolDigitizeFeature) and therefore mapTool().pointsZM() is not available.

Now I wonder if I can utilize the QgsRubberBand

Best regards
Simon


------------------------------

Message: 2
Date: Mon, 2 Oct 2023 08:56:58 +0200
From: Jacky Volpes <jacky.volpes at oslandia.com>
To: qgis-developer at lists.osgeo.org
Subject: Re: [QGIS-Developer] Reading current measurement with python
Message-ID: <352a9e94-9010-4f39-8738-89323a87a15a at oslandia.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi,

You can have a look at this snippet: 
https://lists.osgeo.org/pipermail/qgis-developer/2023-May/065789.html

Regards,

--

Jacky Volpes

Ing?nieur SIG - Oslandia

--

Le 02/10/2023 ? 07:05, Simon Gr?chenig via QGIS-Developer a ?crit?:
>
> Hi list,
>
> is it possible to get the current line/area measurement with Python?
>
> Simon
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20231002/ce6f1c41/attachment-0001.htm>



More information about the QGIS-Developer mailing list