<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Thanks.  That works.   But looks like it only works when initially drawing the polygon as opposed to also working when editing an existing polygon.  I have a similar tool to this that shows the area when drawing, just trying to figure out how to get it to work when editing an existing polygon.  I was hoping to build on my own tool if there was an easy what to get a hold of some other signal that gets fired while editing.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Sylvain Théry <sylvain.thery@cnrs.fr> <br><b>Sent:</b> Tuesday, March 11, 2025 12:05 PM<br><b>To:</b> Catania, Luke A ERDC-RDE-GRL-VA CIV <Luke.A.Catania@erdc.dren.mil>; DelazJ <delazj@gmail.com><br><b>Cc:</b> qgis-developer@lists.osgeo.org<br><b>Subject:</b> Re: [QGIS-Developer] Calculate area/perimtere/length of polygon/line while editing<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Hello, <o:p></o:p></p><p>It seems there is a fix here : <a href="Blockedhttps://github.com/agiudiceandrea/calcarea2/blob/a6a3d7c5a98e64573731cd6a005da4e2d9836fdd/calcareaevent.pyBlocked">https://github.com/agiudiceandrea/calcarea2/blob/a6a3d7c5a98e64573731cd6a005da4e2d9836fdd/calcareaevent.py</a><o:p></o:p></p><p>All the best, <br>S.<o:p></o:p></p><p><o:p> </o:p></p><div><p class=MsoNormal>Le 11/03/2025 à 16:14, Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer a écrit :<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-size:11.0pt'>Thanks. Plugin installed but will not run.  I get the error below.  I have QGIS 3.34.4.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:11.0pt'>TypeError: QgisInterface missing 'mActionDigitizeWithCurve' action </span></b><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'>Traceback (most recent call last):<br>  File "C:\PROGRA~1/QGIS33~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 423, in _startPlugin<br>    plugins[packageName] = package.classFactory(iface)<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\__init__.py", line 29, in classFactory<br>    return CalcAreaPlugin( iface )<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\plugin.py", line 66, in __init__<br>    self.toolEvent = CalcAreaEvent( self.iface )<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\calcareaevent.py", line 478, in __init__<br>    self.addFeatureEvent = AddFeatureEvent( iface )<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\calcareaevent.py", line 213, in __init__<br>    self.geomPolygon = self.GeomPolygon( iface )<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\calcareaevent.py", line 316, in __init__<br>    self.actionDigitizeWithCurve = getActionDigitizeWithCurve( iface )<br>  File "C:\Users/RDTECLAC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\calcarea2\calcareaevent.py", line 308, in getActionDigitizeWithCurve<br>    raise TypeError(f"QgisInterface missing '{name}' action")<br>TypeError: QgisInterface missing 'mActionDigitizeWithCurve' action</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt'> </span><o:p></o:p></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> DelazJ <a href="mailto:delazj@gmail.com"><delazj@gmail.com></a> <br><b>Sent:</b> Tuesday, March 11, 2025 11:08 AM<br><b>To:</b> Catania, Luke A ERDC-RDE-GRL-VA CIV <a href="mailto:Luke.A.Catania@erdc.dren.mil"><Luke.A.Catania@erdc.dren.mil></a><br><b>Cc:</b> <a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a><br><b>Subject:</b> Re: [QGIS-Developer] Calculate area/perimtere/length of polygon/line while editing</span><o:p></o:p></p></div><p class=MsoNormal> <o:p></o:p></p><div><div><p class=MsoNormal>Hi,<o:p></o:p></p></div><div><p class=MsoNormal>There is a CalcArea2 plugin whose description mentions it should be doing that for polygons. You might want to take ispiration from their code.<o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal>Harrissou<o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><div><p class=MsoNormal>Le mar. 11 mars 2025 à 15:55, Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> a écrit :<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I need to calculate these values on the fly while I am in an edit session resizing a polygon or a line.  I need the user to see this calculation while they are editing not after the edits are committed. I already have the UI set up to capture after commit, but I need to capture while they are moving vertices and update the values in the UI, so they don’t keep editing and then committing just to see if they are close.  I want them to know before they commit.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Any idea how to achieve this?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Luke Catania<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>US Army ERDC-GRL<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>JCMS Site Planning Developer<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div><p class=MsoNormal>_______________________________________________<br>QGIS-Developer mailing list<br><a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>List info: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>Unsubscribe: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></p></div></blockquote></div><p class=MsoNormal><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>QGIS-Developer mailing list<o:p></o:p></pre><pre><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><o:p></o:p></pre><pre>List info: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre><pre>Unsubscribe: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></pre></blockquote><pre>-- <o:p></o:p></pre><pre>Sylvain THÉRY - Ingénieur d'études CNRS en géomatique<o:p></o:p></pre><pre>UMR 5281 ART-Dev - Acteurs, Ressources et Territoires dans le Développement <a href="Blockedhttps://art-dev.cnrs.fr/Blocked">https://art-dev.cnrs.fr/</a><o:p></o:p></pre><pre><a href="mailto:sylvain.thery@cnrs.fr">sylvain.thery@cnrs.fr</a>  - +33.4.11.75.70.98<o:p></o:p></pre><pre>Université Paul-Valéry Montpellier 3 - Site St Charles - Bureau 239<o:p></o:p></pre><pre>@ postale : ART-Dev - St Charles - Route de Mende - 34 199 Montpellier Cedex 5 <o:p></o:p></pre><pre><a href="Blockedhttps://www.researchgate.net/profile/Sylvain-TheryBlocked">https://www.researchgate.net/profile/Sylvain-Thery</a><o:p></o:p></pre></div></body></html>