<?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: How to add values from polygon to points which are inside it in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224579#M61430</link>
    <description>&lt;P&gt;I will check that might use it in the future. For now it's one time job because points do not changes often. I got 2 new fields in point layers in which I will put 2 polygon layers names for all point layers is the same.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 05:48:38 GMT</pubDate>
    <dc:creator>Carol2</dc:creator>
    <dc:date>2022-10-24T05:48:38Z</dc:date>
    <item>
      <title>How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224509#M61419</link>
      <description>&lt;P&gt;Hello all, I am still learning and now cant find the solution. So, I have points and polygons, polygons have names. I need to select points which are inside polygon and give the same name as polygon. So, should be all points with specific names like polygon in which they are. Spatial&amp;nbsp; join&amp;nbsp;not suitable for me because it creates output and I need to work with the same feature class, just to edit it.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2022 19:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224509#M61419</guid>
      <dc:creator>Carol2</dc:creator>
      <dc:date>2022-10-23T19:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224572#M61426</link>
      <description>&lt;P&gt;Arcade, the script language developed by ESRI for the ArcGIS infrastructure, is perfect for that.&lt;/P&gt;&lt;P&gt;Use the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm" target="_blank" rel="noopener"&gt;Calculate Field&lt;/A&gt; tool on the point feature class, change the language to Arcade. Use this expression, edit the polygon feature class's name (first line) and the name field (last line):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load the polygons
var polygons = FeaturesetByName($datastore, "PolygonFeatureclass")

// get the polygon that intersects the current point
var i_polygon = First(Intersects(polygons, $feature))

// return a default value if no polygon is intersecting
if(i_polygon == null) { return null }

// return the name of the Polygon
return i_polygon.Name&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224572#M61426</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-24T05:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224574#M61428</link>
      <description>&lt;P&gt;Thank you, thats worked! I will try to combine it with iterator and model builder because have 2 polygon layers and more than 10 point layers&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224574#M61428</guid>
      <dc:creator>Carol2</dc:creator>
      <dc:date>2022-10-24T05:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224575#M61429</link>
      <description>&lt;P&gt;If you modify the rule, you can make it so that if it doesn't find an intersecting polygon in the first FC, it tries the second Polygon FC:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load the polygons
var polygons = FeaturesetByName($datastore, "PolygonFeatureclass")

// get the polygon that intersects the current point
var i_polygon = First(Intersects(polygons, $feature))

// if no polygon is intersecting, try the second polygon fc
if(i_polygon == null) { 
    var polygons = FeaturesetByName($datastore, "PolygonFeatureclass_2")
    var i_polygon = First(Intersects(polygons, $feature))
    // if there is no0 intersecting polygon here, too, return null
    if(i_polygon == null) { return null }
}

// return the name of the Polygon
return i_polygon.Name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that what you're trying to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if this is a task you have to do often, you might want to consider making this expression into an &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank" rel="noopener"&gt;Attribute Rule&lt;/A&gt; for each of the point fcs. Attribute Rules can be executed when a feature is inserted or edited. This way, the name would be updated automatically every time you edit a point.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224575#M61429</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-24T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224579#M61430</link>
      <description>&lt;P&gt;I will check that might use it in the future. For now it's one time job because points do not changes often. I got 2 new fields in point layers in which I will put 2 polygon layers names for all point layers is the same.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224579#M61430</guid>
      <dc:creator>Carol2</dc:creator>
      <dc:date>2022-10-24T05:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224580#M61431</link>
      <description>&lt;P&gt;Great, glad I could help. Please mark my answer as solution, so that this question is shown as solved.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 06:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224580#M61431</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-24T06:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224630#M61436</link>
      <description>&lt;P&gt;One more question, if I have point intersecting&amp;nbsp;&lt;SPAN&gt;2 polygons I want to return both (or more) values in one field. How should i do? Something like merge rule Join with delimiter&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 11:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224630#M61436</guid>
      <dc:creator>Carol2</dc:creator>
      <dc:date>2022-10-24T11:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224637#M61439</link>
      <description>&lt;LI-CODE lang="javascript"&gt;// load the polygons
var polygons = FeaturesetByName($datastore, "PolygonFeatureclass")

// get all intersecting polygons (instead of the first one)
polygons = Intersects(polygons, $feature)

// loop through the intersecting polygons and extract the names into an array
var names = []
for(var poly in polygons) {
    Push(names, poly.Name)
}

// concatenate and return
return Concatenate(names, ", ")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Oct 2022 12:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1224637#M61439</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-10-24T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1416298#M82484</link>
      <description>&lt;P&gt;I'm missing something here (but I've ordered an Arcade book).&lt;/P&gt;&lt;P&gt;I have a polygon layer containing 8 polygons and a points layer containing 67,000 locations. I'd like to create a field that uses an approach like this to assigns each point to a polygon based on its location - so that the field being calculated gets the appropriate polygon name.&lt;/P&gt;&lt;P&gt;When I use the above expression every data point gets the same polygon name regardless of its location.&lt;/P&gt;&lt;P&gt;Thanks for any help you can offer - I'm new to using Arcade.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 14:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1416298#M82484</guid>
      <dc:creator>MarkLeander1</dc:creator>
      <dc:date>2024-04-28T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to add values from polygon to points which are inside it</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1440479#M83146</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarkLeander1_0-1715434873651.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103848i76046F765DE906F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarkLeander1_0-1715434873651.png" alt="MarkLeander1_0-1715434873651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Clearly - I'm not getting something... can you help?&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 13:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-add-values-from-polygon-to-points-which-are/m-p/1440479#M83146</guid>
      <dc:creator>MarkLeander1</dc:creator>
      <dc:date>2024-05-11T13:42:10Z</dc:date>
    </item>
  </channel>
</rss>

