<?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: Arcade area function discrepancies in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1049992#M39633</link>
    <description>&lt;P&gt;What is the coordinate system?&amp;nbsp; If it is Web Mercator, don't use it...it is notorious for poor area and length calculations.&lt;/P&gt;&lt;P&gt;Do all the functions project to a planar coordinate system prior to doing calculations?&amp;nbsp; If not they may be calculated in native units&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 09:30:53 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-04-22T09:30:53Z</dc:date>
    <item>
      <title>Arcade area function discrepancies</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1049956#M39630</link>
      <description>&lt;P&gt;After noticing some calculated areas using the Area function didn't look correct,&amp;nbsp; I did some testing. I calculated acreage in three ways with arcade, using the 'Shape_Area/43560' method, The Area function, and the AreaGeodetic function. I also included pre-processed acreage for comparison.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone why the "Area" function returns a value so far from the others?&lt;/P&gt;&lt;P&gt;I appreciate any insight.&amp;nbsp; Expressions and screenshot below.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisDeuchars_0-1619065263506.png" style="width: 234px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11518iFB3328E6D9D9D256/image-dimensions/234x255?v=v2" width="234" height="255" role="button" title="ChrisDeuchars_0-1619065263506.png" alt="ChrisDeuchars_0-1619065263506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Acreage (Shape Area/43560) (Pop-up)&lt;BR /&gt;$feature["Shape_Area"]/43560&lt;/P&gt;&lt;P&gt;//Acreage (Arcade Area Function) (Pop-up)&lt;BR /&gt;Area($feature, 'acres')&lt;/P&gt;&lt;P&gt;//Acreage (AreaGeodetic Function) (Pop-up)&lt;BR /&gt;AreaGeodetic($feature, 'acre')&lt;/P&gt;&lt;P&gt;//MHPA Acres (AreaFunction) (Pop-up)&lt;/P&gt;&lt;P&gt;var mhpas = Intersects(FeatureSetByName($map,"Multi Habitat Planning Area"), $feature);&lt;BR /&gt;var cnt = Count(mhpas);&lt;/P&gt;&lt;P&gt;var intersectArea = 0;&lt;BR /&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt;for (var mhpa in mhpas) {&lt;BR /&gt;intersectArea += Area(Intersection($feature, mhpa),"acres")&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return Round(intersectArea, 2);&lt;/P&gt;&lt;P&gt;//MHPA Acres (AreaGeodetic function) (Pop-up)&lt;/P&gt;&lt;P&gt;var mhpas = Intersects(FeatureSetByName($map,"Multi Habitat Planning Area"), $feature);&lt;BR /&gt;var cnt = Count(mhpas);&lt;/P&gt;&lt;P&gt;var intersectArea = 0;&lt;BR /&gt;if (cnt &amp;gt; 0) {&lt;BR /&gt;for (var mhpa in mhpas) {&lt;BR /&gt;intersectArea += AreaGeodetic(Intersection($feature, mhpa),"acres")&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return Round(intersectArea, 2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 04:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1049956#M39630</guid>
      <dc:creator>ChrisDeuchars</dc:creator>
      <dc:date>2021-04-22T04:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade area function discrepancies</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1049992#M39633</link>
      <description>&lt;P&gt;What is the coordinate system?&amp;nbsp; If it is Web Mercator, don't use it...it is notorious for poor area and length calculations.&lt;/P&gt;&lt;P&gt;Do all the functions project to a planar coordinate system prior to doing calculations?&amp;nbsp; If not they may be calculated in native units&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 09:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1049992#M39633</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-22T09:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade area function discrepancies</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1050332#M39651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/356010"&gt;@ChrisDeuchars&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you look at the Arcade help for Area:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#area" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/geometry_functions/#area&lt;/A&gt;&amp;nbsp;and AreaGeodetic&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#areageodetic" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/geometry_functions/#areageodetic&lt;/A&gt;&amp;nbsp;you will notice that the AreaGeodetic function is more precise than the Area function.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the geodetic area of the input geometry or FeatureSet in the given units. This is more reliable measurement of area than Area() because it takes into account the Earth's curvature. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I will be better to use the AreaGeodetic function. However, there is another important note in the help:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Be aware that using $feature as input to this function will yield results only as precise as the view's scale resolution. Therefore values returned from expressions using this function may change after zooming between scales.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Since in your example you mention that you have access to the "&lt;SPAN&gt;Shape_Area", this would be the prefered source of truth. Use Area and AreGeodetic in case you intersect o merge (union) features or when you don't have access to the system maintained area (Shape_Area).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 20:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-area-function-discrepancies/m-p/1050332#M39651</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-04-22T20:22:10Z</dc:date>
    </item>
  </channel>
</rss>

