<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculate Geometry Attributes with geographic coordinates in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316188#M71832</link>
    <description>&lt;P&gt;You can examine the various logic implementations from the script associated with the tool depending on the active document.&amp;nbsp; For instance beginning in line 90 in&lt;/P&gt;&lt;LI-CODE lang="python"&gt;               # Remove Euclidean measurements if the data is GCS/Mercator
                if gcsOrMercator and not self.params[4].value:
                    for propGCS in ["LENGTH", "AREA", "PERIMETER_LENGTH"]:
                        try:
                            propList.remove(propGCS)
                        except:
                            pass
                # Remove Geodesic options if the data SR is Unknown
                if sr.name.upper() == "UNKNOWN":
                    for propUk in ["LENGTH_GEODESIC", "AREA_GEODESIC",
                                   "PERIMETER_LENGTH_GEODESIC"]:
                        try:
                            propList.remove(propUk)
                        except:
                            pass
                self.params[1].filters[1].list = propList
            except:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the tool validator script certain calculation options are removed when the coordinate system is geographic, unknown etc.&lt;/P&gt;&lt;P&gt;See the script located in&amp;nbsp;&amp;nbsp;"C:\...Install path...\Resources\ArcToolBox\toolboxes\Data Management Tools.tbx\CalculateGeometryAttributes.tool\tool.script.validate.py" for more examples.&amp;nbsp; The script is located in&amp;nbsp;..\..\..\scripts\calculategeometry.py path.&lt;/P&gt;&lt;P&gt;When the tool is associated with a script, it is useful to examine the implementation and its restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 20:25:53 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-08-07T20:25:53Z</dc:date>
    <item>
      <title>Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316122#M71824</link>
      <description>&lt;P&gt;When your data is in 'geographic coordinates', the Calculate Geometry tool -- accessed from the Attribute Table -- is grayed-out. ...I thought I've always understood why, but maybe not..?&lt;/P&gt;&lt;P&gt;Because, if I access the Calculate Geometry Attributes tool from ArcToolbox, this restriction is NOT there.&lt;BR /&gt;In fact, I can even calculate the geometry (...say, Area&amp;nbsp; in Acres or Square Miles) using Planar or Geodesic modes and a geographic coordinate system as the basis for that calculation.&lt;/P&gt;&lt;P&gt;Can someone explain this nuance?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 17:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316122#M71824</guid>
      <dc:creator>Craig_Eissler_Iceman</dc:creator>
      <dc:date>2023-08-07T17:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316188#M71832</link>
      <description>&lt;P&gt;You can examine the various logic implementations from the script associated with the tool depending on the active document.&amp;nbsp; For instance beginning in line 90 in&lt;/P&gt;&lt;LI-CODE lang="python"&gt;               # Remove Euclidean measurements if the data is GCS/Mercator
                if gcsOrMercator and not self.params[4].value:
                    for propGCS in ["LENGTH", "AREA", "PERIMETER_LENGTH"]:
                        try:
                            propList.remove(propGCS)
                        except:
                            pass
                # Remove Geodesic options if the data SR is Unknown
                if sr.name.upper() == "UNKNOWN":
                    for propUk in ["LENGTH_GEODESIC", "AREA_GEODESIC",
                                   "PERIMETER_LENGTH_GEODESIC"]:
                        try:
                            propList.remove(propUk)
                        except:
                            pass
                self.params[1].filters[1].list = propList
            except:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the tool validator script certain calculation options are removed when the coordinate system is geographic, unknown etc.&lt;/P&gt;&lt;P&gt;See the script located in&amp;nbsp;&amp;nbsp;"C:\...Install path...\Resources\ArcToolBox\toolboxes\Data Management Tools.tbx\CalculateGeometryAttributes.tool\tool.script.validate.py" for more examples.&amp;nbsp; The script is located in&amp;nbsp;..\..\..\scripts\calculategeometry.py path.&lt;/P&gt;&lt;P&gt;When the tool is associated with a script, it is useful to examine the implementation and its restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 20:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316188#M71832</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-08-07T20:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316195#M71833</link>
      <description>&lt;P&gt;Thanks, but I guess my question is "why" is there a difference with the same tool depending on how you access it? In other words, is there something to really understand here, or did the Developers decide to have 2 versions because they felt like it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 20:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316195#M71833</guid>
      <dc:creator>Craig_Eissler_Iceman</dc:creator>
      <dc:date>2023-08-07T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316263#M71848</link>
      <description>&lt;P&gt;If by chance you have this Application option enabled (the default is not enabled):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryNorthey_0-1691468272269.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77489i9E5D2315D948E286/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryNorthey_0-1691468272269.png" alt="BarryNorthey_0-1691468272269.png" /&gt;&lt;/span&gt;you have to enable editing using the Edit button&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryNorthey_2-1691468426123.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77491i9A381499016E6065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryNorthey_2-1691468426123.png" alt="BarryNorthey_2-1691468426123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;under the Edit core tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 04:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316263#M71848</guid>
      <dc:creator>BarryNorthey</dc:creator>
      <dc:date>2023-08-08T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316371#M71867</link>
      <description>&lt;P&gt;Hello, but not sure what you're taking about.&lt;/P&gt;&lt;P&gt;My question was "why" is there a difference in the two Calculate Geometry versions -- with respect to working with geographic coordinates?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 13:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316371#M71867</guid>
      <dc:creator>Craig_Eissler_Iceman</dc:creator>
      <dc:date>2023-08-08T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316538#M71886</link>
      <description>&lt;P data-unlink="true"&gt;I was addressing the tool "grayed out" situation. If the editing tools are disabled, the Calculate Geometry tool will be grayed out. The default is for editing tools to be enabled and the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/editing/enable-and-disable-editing.htm" target="_self"&gt;Edit&lt;/A&gt;&amp;nbsp; button is hidden but I have exposed the Edit button and sometimes forget to enable them prior to editing, which happened when I first tried a test. I also saw that if a table had a join it could be the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryNorthey_0-1691515104516.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77577i1B89DAD70835CF42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryNorthey_0-1691515104516.png" alt="BarryNorthey_0-1691515104516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I enable the editing tools Calculate Geometry functions the same for me from the table as from the toolbox even on geographic data. So just pointing out a possible source of the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 17:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316538#M71886</guid>
      <dc:creator>BarryNorthey</dc:creator>
      <dc:date>2023-08-08T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry Attributes with geographic coordinates</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316543#M71887</link>
      <description>&lt;P&gt;Umm, I'm not sure about that. Whether I have that box checked or not doesn't seem to change anything.&lt;/P&gt;&lt;P&gt;For as long as I can remember, the Calculate Geometry has always been grayed-out (and is supposed to be) if your Shape_geometry fields (i.e. Shape_length, Shape_Area) are in 'geographic coordinates'. ...SO, I'm totally OK with that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm confused about is when I access the Calculate Geometry tool from ArcToolbox, this is NOT the same behavior. ...So, I'm wondering "why not"?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 17:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-geometry-attributes-with-geographic/m-p/1316543#M71887</guid>
      <dc:creator>Craig_Eissler_Iceman</dc:creator>
      <dc:date>2023-08-08T17:54:55Z</dc:date>
    </item>
  </channel>
</rss>

