<?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: Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363648#M76636</link>
    <description>&lt;P&gt;Dear Friend&lt;BR /&gt;Thank you for your contribution.&lt;BR /&gt;Doing it manually is no problem. The aim is to do it automatically by applying a rule to the attribute.&lt;BR /&gt;Any ideas on how to resolve the error?&lt;BR /&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 16:40:15 GMT</pubDate>
    <dc:creator>JoséMartinho</dc:creator>
    <dc:date>2023-12-21T16:40:15Z</dc:date>
    <item>
      <title>Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363534#M76624</link>
      <description>&lt;P&gt;In &lt;STRONG&gt;ArcGIS Pro&lt;/STRONG&gt;, I have a map with a polygon layer, called &lt;STRONG&gt;&lt;EM&gt;Cont_Freg_CAOP2022&lt;/EM&gt;&lt;/STRONG&gt;, which has a text-type attribute, 6 characters long, called &lt;EM&gt;&lt;STRONG&gt;DICOFRE&lt;/STRONG&gt;&lt;/EM&gt; (e.g. "010121").&lt;BR /&gt;In addition to this, I have another layer of points, called &lt;EM&gt;&lt;STRONG&gt;Arvores_PGIFU&lt;/STRONG&gt;&lt;/EM&gt;, which has a text attribute, also called &lt;EM&gt;&lt;STRONG&gt;Dicofre&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;I want to intersect the point layer with the polygon layer, return the value of the &lt;EM&gt;DICOFRE&lt;/EM&gt; attribute of the intersected polygon and write this value in the point &lt;EM&gt;Dicofre&lt;/EM&gt; field.&lt;BR /&gt;To do this, I created the expression:&lt;/P&gt;&lt;P&gt;// Determines the DICOFRE attribute of the Cont_Freg_CAOP2022 layer&lt;BR /&gt;// identified by the intersection with a point in the Arvores_PGIFU layer&lt;/P&gt;&lt;P&gt;var Dicofre_Fregs = FeatureSetByName($map, 'Cont_Freg_CAOP2022', ['DICOFRE'])&lt;/P&gt;&lt;P&gt;// Intersect the current location with the polygons and return the dicofre&lt;/P&gt;&lt;P&gt;var Dicofre_Int = First(Intersects($feature, Dicofre_Fregs))&lt;/P&gt;&lt;P&gt;// If the current location intersects a polygon, return DICOFRE, otherwise return null.&lt;/P&gt;&lt;P&gt;if (!IsEmpty(Dicofre_Int)) {&lt;BR /&gt;return Dicofre_Int['DICOFRE']&lt;BR /&gt;} else {&lt;BR /&gt;return null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;When checking the expression I get the error message:&lt;/P&gt;&lt;P&gt;Invalid expression.&lt;BR /&gt;Error on line 4.&lt;BR /&gt;Object not found $map&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de Ecrã (96).png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/89753iD85DF80B172BE3A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de Ecrã (96).png" alt="Captura de Ecrã (96).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 12:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363534#M76624</guid>
      <dc:creator>JoséMartinho</dc:creator>
      <dc:date>2023-12-21T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363642#M76634</link>
      <description>&lt;P&gt;Might be simpler to split it into a couple steps.&lt;/P&gt;&lt;P&gt;Try spatial join to get the polygon layer attributes on the points&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then use the field calculator to update the values on the target field.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 16:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363642#M76634</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2023-12-21T16:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363648#M76636</link>
      <description>&lt;P&gt;Dear Friend&lt;BR /&gt;Thank you for your contribution.&lt;BR /&gt;Doing it manually is no problem. The aim is to do it automatically by applying a rule to the attribute.&lt;BR /&gt;Any ideas on how to resolve the error?&lt;BR /&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 16:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363648#M76636</guid>
      <dc:creator>JoséMartinho</dc:creator>
      <dc:date>2023-12-21T16:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363653#M76639</link>
      <description>&lt;P&gt;Ah, I did not see that you wanted to do this with attribute rules.&lt;/P&gt;&lt;P&gt;This thread seems to show something like what you want:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/td-p/1072246" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/attribute-rule-drilldown-other-layers/td-p/1072246&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 16:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363653#M76639</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2023-12-21T16:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Intersect point and polygon layers to get an intersected polygon attribute and populate a point attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363656#M76640</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Continues to generate an error, this time:&lt;/P&gt;&lt;P&gt;// Determines the DICOFRE attribute of the Cont_Freg_CAOP2022 layer&lt;BR /&gt;// identified by the intersection with a point in the Arvores_PGIFU layer&lt;/P&gt;&lt;P&gt;var Dicofre_Fregs = Feature&lt;STRONG&gt;Class&lt;/STRONG&gt;ByName($map, 'Cont_Freg_CAOP2022', ['DICOFRE'])&lt;/P&gt;&lt;P&gt;// Intersect the current location with the polygons and return the dicofre&lt;/P&gt;&lt;P&gt;var Dicofre_Int = First(Intersects($feature, Dicofre_Fregs))&lt;/P&gt;&lt;P&gt;// If the current location intersects a polygon, return DICOFRE, otherwise return null.&lt;/P&gt;&lt;P&gt;if (!IsEmpty(Dicofre_Int)) {&lt;BR /&gt;return Dicofre_Int['DICOFRE']&lt;BR /&gt;} else {&lt;BR /&gt;return null&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Invalid expression.&lt;BR /&gt;Error on line 4.&lt;BR /&gt;Unknown function&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 16:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/intersect-point-and-polygon-layers-to-get-an/m-p/1363656#M76640</guid>
      <dc:creator>JoséMartinho</dc:creator>
      <dc:date>2023-12-21T16:58:52Z</dc:date>
    </item>
  </channel>
</rss>

