<?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: Using Arcade to calculate percent coverage in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012799#M10338</link>
    <description>&lt;P&gt;Thanks Angela;&amp;nbsp; I see what you mean about using the other Functions.&amp;nbsp; Below is the espression using the Intersection function and the result &lt;STRONG&gt;(Illegal Argumemt).&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;do you see where the illegal argument might be?&amp;nbsp; Any help would be great?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&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="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2948i2F9636D41D00AA0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" alt="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 01:38:36 GMT</pubDate>
    <dc:creator>James_Armstrong</dc:creator>
    <dc:date>2020-12-30T01:38:36Z</dc:date>
    <item>
      <title>Using Arcade to calculate percent coverage</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012701#M10336</link>
      <description>&lt;P&gt;I have two layers:&amp;nbsp; 1-Parcels, 2-Soils.&amp;nbsp; I am trying to create an Arcade expression that would return the percentage of soil types within the selected property.&amp;nbsp; I have been successful to some degree, but it appears that the percentages return are not clearing.&amp;nbsp; The expression is below.&amp;nbsp; I have published a web map application which uses the expression for purpose of illustration. Any suggestion, advice, or idea is most appreciated.&amp;nbsp; - James Armstrong&lt;/P&gt;&lt;P&gt;&lt;A title="Soils Calculator" href="https://gis3.richmondnc.com/portal/apps/webappviewer/index.html?id=95822adfdee0458f9837093ee6157d30" target="_blank" rel="noopener"&gt;Soils Calculator&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;var gensoils = FeatureSetById($datastore, /* GeneralSoils */ "1")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var soils_int = Intersects($feature, gensoils)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var numsoil = Count(soils_int)&lt;/P&gt;&lt;P&gt;var sum_area = SUM(soils_int, 'Acreage')&lt;/P&gt;&lt;P&gt;var results = 'There are '+ numsoil +' type(s) of General Soils.'+TextFormatting.NewLine&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for (var s in soils_int){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var soilarea = s.Acreage&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var percent = (s.Acreage / sum_area)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var soilname = s.SOIL_NAME2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var soilpercent = Round(percent,2 ) * 100 +'%'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;results += TextFormatting.NewLine + soilname + '---- ' + soilpercent&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return results&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 18:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012701#M10336</guid>
      <dc:creator>James_Armstrong</dc:creator>
      <dc:date>2020-12-29T18:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to calculate percent coverage</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012728#M10337</link>
      <description>&lt;P&gt;I think you may need to use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersection" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersection&lt;/A&gt;&amp;nbsp;function in addition to the&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersects" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersects&lt;/A&gt;&amp;nbsp;function. I can't see the layers you're working with, but unless they have coincident boundaries, seems like you'd need to "cut" the soils layer using the parcels layer and looks like the intersection function would do that for you.&lt;BR /&gt;&lt;BR /&gt;Also, you might want to use the&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;function on the $feature to set the sum_area. Seems like that would be more straightforward.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 19:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012728#M10337</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2020-12-29T19:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to calculate percent coverage</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012799#M10338</link>
      <description>&lt;P&gt;Thanks Angela;&amp;nbsp; I see what you mean about using the other Functions.&amp;nbsp; Below is the espression using the Intersection function and the result &lt;STRONG&gt;(Illegal Argumemt).&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;do you see where the illegal argument might be?&amp;nbsp; Any help would be great?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&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="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2948i2F9636D41D00AA0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" alt="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 01:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012799#M10338</guid>
      <dc:creator>James_Armstrong</dc:creator>
      <dc:date>2020-12-30T01:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to calculate percent coverage</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012805#M10339</link>
      <description>&lt;P&gt;I'm not clear why you're buffering the parcel. And by using a negative number I think you may be "shrinking" the parcel by that footage. That could cause a problem if a parcel is less than 25 feet wide in places.&lt;/P&gt;&lt;P&gt;Also, looking at the documentation, it appears that the arguments for Intersection must be either a geometry or feature. It doesn't appear to allow a featureset as an argument. You are passing in 'gensoils' (a featureset) as an argument.&lt;/P&gt;&lt;P&gt;I'm guessing you'd need to run Intersection on any geometry in gensoils recursively.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 02:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012805#M10339</guid>
      <dc:creator>AngelaDeegan</dc:creator>
      <dc:date>2020-12-30T02:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to calculate percent coverage</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012989#M10344</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Angela,&amp;nbsp; Thanks for your help&lt;/STRONG&gt;.&amp;nbsp; I was able to wrap my head around what you were saying regarding the featureset vs&amp;nbsp; feature.&amp;nbsp; The following code works and is relatively quick to respond.&lt;/P&gt;&lt;P&gt;James Armstrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" style="width: 957px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2999iA1EF76DE9FA54E57/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" alt="2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;2020-12-29 18_54_31-ArcGIS Enterprise - RichmondPArcelAssessment.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 18:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/using-arcade-to-calculate-percent-coverage/m-p/1012989#M10344</guid>
      <dc:creator>James_Armstrong</dc:creator>
      <dc:date>2020-12-30T18:20:10Z</dc:date>
    </item>
  </channel>
</rss>

