<?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: Labeling polygons with area in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183790#M8152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different data types may have different names for their shape area field. This seems to be a common issue folks run into (stack-overflow example &lt;A href="https://gis.stackexchange.com/questions/90371/determining-shape-area-field-name"&gt;here&lt;/A&gt;). Arcade can help you here by giving you access to the feature geometry, which you can then calculate the area on:&lt;/P&gt;&lt;PRE class="" data-stringify-type="pre" style="color: #1d1c1d; background: rgba(var(--sk_foreground_min,29,28,29),0.04); font-size: 12px; margin: 4px 0px; padding: 8px;"&gt;area(geometry($feature))&lt;/PRE&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Ciara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2019 10:21:07 GMT</pubDate>
    <dc:creator>CiaraRowland-Simms</dc:creator>
    <dc:date>2019-11-20T10:21:07Z</dc:date>
    <item>
      <title>Labeling polygons with area</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183789#M8151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone clarify what the proper way is to create a label expression in ArcGIS Pro that displays the area of a polygon, no matter the source of the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/mapping/text/specify-text-for-labels.htm" title="http://pro.arcgis.com/en/pro-app/help/mapping/text/specify-text-for-labels.htm"&gt;Specify text for labels—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggests using (for Python):&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;round(float([AREA]), 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or for Arcade:&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;round(number($feature.AREA), 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to validate either of those I get the error 'Invalid field AREA'. This happens for polygon datasets I tried both that were hosted in AGOL and from a Portal using Postgres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datasets hosted in AGOL seem to have a 'Shape__Area' field that I can label from, but the dataset from the Portal doesn't have that attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can/should I be labeling the dataset from Portal? Is there something *wrong* with the Portal dataset, or feature service, or is there another way to access the geometry of the feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 02:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183789#M8151</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-10-27T02:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling polygons with area</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183790#M8152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different data types may have different names for their shape area field. This seems to be a common issue folks run into (stack-overflow example &lt;A href="https://gis.stackexchange.com/questions/90371/determining-shape-area-field-name"&gt;here&lt;/A&gt;). Arcade can help you here by giving you access to the feature geometry, which you can then calculate the area on:&lt;/P&gt;&lt;PRE class="" data-stringify-type="pre" style="color: #1d1c1d; background: rgba(var(--sk_foreground_min,29,28,29),0.04); font-size: 12px; margin: 4px 0px; padding: 8px;"&gt;area(geometry($feature))&lt;/PRE&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Ciara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 10:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183790#M8152</guid>
      <dc:creator>CiaraRowland-Simms</dc:creator>
      <dc:date>2019-11-20T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling polygons with area</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183791#M8153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/53832"&gt;Paul Haakma&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/279005"&gt;Ciara Rowland-Simms&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I understand it is not necessary to convert the $feature to a Geometry. You can use the Area directly on the $feature. According to the documentation, the AreaGeodetic function is more accurate, but only works when your source is using&amp;nbsp;Web Mercator (wkid 3857) or a WGS 84 (wkid 4326) spatial reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also recommend specifying the units in which you want to specify the&amp;nbsp;area. See a list of valid values here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#units-reference" title="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#units-reference"&gt;Geometry Functions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;. Something like this:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;AreaGeodetic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'square-meters'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/183791#M8153</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2019-11-20T22:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling polygons with area</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/1105260#M46405</link>
      <description>&lt;P&gt;You need to use the AreaGeodetic function if you are working with a hosted feature layer.&amp;nbsp; The Shape__Area field is always populated with the planar area and not the geodesic area.&amp;nbsp; Web Mercator does not preserve area!&amp;nbsp; The difference between geodesic and planar area is really significant as you move away from the equator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 17:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-polygons-with-area/m-p/1105260#M46405</guid>
      <dc:creator>JCooley_ClackamasSWCD</dc:creator>
      <dc:date>2021-10-06T17:12:02Z</dc:date>
    </item>
  </channel>
</rss>

