<?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: Populate point feature with value from underlaying polygon layer in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164473#M26281</link>
    <description>&lt;P&gt;You can use a spatial intersection in a field calculation. I've done a very similar process to what you describe using Arcade:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('your portal url')

var polygons = FeatureSetByPortalItem(
    portal,
    'itemid of polygon layer',
    0,
    ['the field you need'],
    true
)

// get first intersecting polygon
var xs = First(Intersects($feature, polygons))

// return value of desired field
return xs['the field you need']&lt;/LI-CODE&gt;&lt;P&gt;If you're working with local layers as opposed to services, you can still pull in those other features with different FeatureSet functions in Arcade.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 17:12:56 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-04-14T17:12:56Z</dc:date>
    <item>
      <title>Populate point feature with value from underlaying polygon layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164468#M26280</link>
      <description>&lt;P&gt;I am creating a task where there are many steps to create and assign an address to a point feature. One of the steps I am trying to automate is to have information taken from some polygons that the point feature falls within. I know I can do a spatial join but the problem is, I don't want to end up with a bunch of extra tables from the join. Does anyone know another way to accomplish this? Maybe a script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164468#M26280</guid>
      <dc:creator>EricBregant2</dc:creator>
      <dc:date>2022-04-14T17:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Populate point feature with value from underlaying polygon layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164473#M26281</link>
      <description>&lt;P&gt;You can use a spatial intersection in a field calculation. I've done a very similar process to what you describe using Arcade:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var portal = Portal('your portal url')

var polygons = FeatureSetByPortalItem(
    portal,
    'itemid of polygon layer',
    0,
    ['the field you need'],
    true
)

// get first intersecting polygon
var xs = First(Intersects($feature, polygons))

// return value of desired field
return xs['the field you need']&lt;/LI-CODE&gt;&lt;P&gt;If you're working with local layers as opposed to services, you can still pull in those other features with different FeatureSet functions in Arcade.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164473#M26281</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-04-14T17:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Populate point feature with value from underlaying polygon layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164474#M26282</link>
      <description>&lt;P&gt;Thanks! I will check this out.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 17:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164474#M26282</guid>
      <dc:creator>EricBregant2</dc:creator>
      <dc:date>2022-04-14T17:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Populate point feature with value from underlaying polygon layer</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164508#M26283</link>
      <description>&lt;P&gt;So my data is not from Portal so I assume I would use FeatureSetbyName()&lt;/P&gt;&lt;P&gt;Below is what I am working with:&lt;/P&gt;&lt;P&gt;My Zip code layer is named&amp;nbsp; GISMAIN.DBO.qc_ZipCodes&lt;/P&gt;&lt;P&gt;The field I need to grab data from is "GEOID10"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EricBregant2_0-1649960323042.png" style="width: 117px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38915i1C06EF0BB392DA06/image-dimensions/117x102?v=v2" width="117" height="102" role="button" title="EricBregant2_0-1649960323042.png" alt="EricBregant2_0-1649960323042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My dataset that needs the Zip Code appended in is called Addressses_TestData&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EricBregant2_1-1649960587700.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/38916iC3534F9B09624BC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EricBregant2_1-1649960587700.png" alt="EricBregant2_1-1649960587700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I basically need to make the user be able to click to add the address point, and have it populate the Zip field with the data from the layer under it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 18:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/populate-point-feature-with-value-from-underlaying/m-p/1164508#M26283</guid>
      <dc:creator>EricBregant2</dc:creator>
      <dc:date>2022-04-14T18:30:44Z</dc:date>
    </item>
  </channel>
</rss>

