<?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: Polygon with null values, I would like to populate null values with adjacent polygon values in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1353091#M27058</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419761"&gt;@JustinBernard1886&lt;/a&gt;&amp;nbsp;- I believe you can do this by using the 'Calculate Field' and an Arcade Expression.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have mocked up a test&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_1-1700795583708.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87017i4D99224D21CA986C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_1-1700795583708.png" alt="gis_KIWI4_1-1700795583708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Arcade Expression updates all the null values with an attribute from the touching polygon.&lt;BR /&gt;Update your Layer Name (TEST in my example) and Field Name (my field name was FIELD_A)&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Var calculated_result = ""
Var touching_polygons = Intersects (FeatureSetByName($datastore, "TEST"),$feature)
Var Cnt = Count(touching_polygons)
If ( IsEmpty($feature.FIELD_A) &amp;amp;&amp;amp; Cnt &amp;gt; 1)

{
  For ( var every_polygon in touching_polygons)
  {
     calculated_result = every_polygon.FIELD_A
     return calculated_result
  }
}

return $feature.FIELD_A
&lt;/LI-CODE&gt;&lt;P&gt;Output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_2-1700796001462.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87018i4A41BDAA333E29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_2-1700796001462.png" alt="gis_KIWI4_2-1700796001462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 03:22:30 GMT</pubDate>
    <dc:creator>gis_KIWI4</dc:creator>
    <dc:date>2023-11-24T03:22:30Z</dc:date>
    <item>
      <title>Polygon with null values, I would like to populate null values with adjacent polygon values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1337006#M26997</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a polygon layer with a number of null values, and i would like to populate the values with the values from ajdacent polygons.&amp;nbsp; The tools that I found merely create a table, but I would like to incorporate a process into a model.&amp;nbsp;&lt;BR /&gt;Is there a tool or python script that would be able perform this?&lt;BR /&gt;I attached a small screenshot to see what i want to do, the shape with no values are circled.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1337006#M26997</guid>
      <dc:creator>JustinBernard1886</dc:creator>
      <dc:date>2023-10-11T16:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon with null values, I would like to populate null values with adjacent polygon values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1353091#M27058</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/419761"&gt;@JustinBernard1886&lt;/a&gt;&amp;nbsp;- I believe you can do this by using the 'Calculate Field' and an Arcade Expression.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have mocked up a test&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_1-1700795583708.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87017i4D99224D21CA986C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_1-1700795583708.png" alt="gis_KIWI4_1-1700795583708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Arcade Expression updates all the null values with an attribute from the touching polygon.&lt;BR /&gt;Update your Layer Name (TEST in my example) and Field Name (my field name was FIELD_A)&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Var calculated_result = ""
Var touching_polygons = Intersects (FeatureSetByName($datastore, "TEST"),$feature)
Var Cnt = Count(touching_polygons)
If ( IsEmpty($feature.FIELD_A) &amp;amp;&amp;amp; Cnt &amp;gt; 1)

{
  For ( var every_polygon in touching_polygons)
  {
     calculated_result = every_polygon.FIELD_A
     return calculated_result
  }
}

return $feature.FIELD_A
&lt;/LI-CODE&gt;&lt;P&gt;Output&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_2-1700796001462.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/87018i4A41BDAA333E29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_2-1700796001462.png" alt="gis_KIWI4_2-1700796001462.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 03:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1353091#M27058</guid>
      <dc:creator>gis_KIWI4</dc:creator>
      <dc:date>2023-11-24T03:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon with null values, I would like to populate null values with adjacent polygon values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1354092#M27063</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/595273"&gt;@gis_KIWI4&lt;/a&gt;&amp;nbsp;offers a solution that will guarantee that empty polygons are given a value, but which one? In their screen shot there are clearly two polygons adjacent to polygons with differing values. So as the code runs now it simply overwrites with the last visited polygon.&lt;/P&gt;&lt;P&gt;If that is sufficient then OK but you might want to explore the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/polygon-neighbors.htm" target="_self"&gt;Polygon Neighbours&lt;/A&gt; tool to help quantify the importance of adjacency by shared boundary length?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-with-null-values-i-would-like-to-populate/m-p/1354092#M27063</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2023-11-28T15:32:33Z</dc:date>
    </item>
  </channel>
</rss>

