<?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: Return attributes from multiple fields on Intersects. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119926#M48258</link>
    <description>&lt;P&gt;Assuming you'd like the "County, State" field in the road layer, here is one way to accomplish that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_0-1637766815936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28170iB90B0BFC6C278456/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_0-1637766815936.png" alt="LeePenney_0-1637766815936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example I have the state of Maine and Aroostook County in two separate feature classes, and a section of road I'd like to update the attributes of as you described.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Run the "Intersect" tool with all layers&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the top ribbon click "Analysis &amp;gt; "Tools" and search "Intersect"&lt;/LI&gt;&lt;LI&gt;Unfortunately I don't think you can select specific attributes to combine, so "All Attributes" is your best option.&lt;/LI&gt;&lt;LI&gt;Choose "Line" as the output type&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_1-1637766958055.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28172iE3320F47548EF674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_1-1637766958055.png" alt="LeePenney_1-1637766958055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Make a new field for the combined attributes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The updated road layer will have the state and county names in separate columns since they came from separate layers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_3-1637767483742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28176i561C750968411FFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_3-1637767483742.png" alt="LeePenney_3-1637767483742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right-click on the new road layer, click "Attribute Table", then click "Add" in the top-left ribbon in the table&lt;/LI&gt;&lt;LI&gt;Fill in the new field's properties. Make sure for 'Data Type" you select "Text"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. Use the field calculator to combine the different attributes into your new field&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right-click your new field in the table view, and select "Calculate Field"&lt;/LI&gt;&lt;LI&gt;In the calculator, under the new field's name, enter the expression below to get the state and county fields separated by a comma:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;!Sate_Field! + ", " + !County_Field!​&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_4-1637767876946.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28179iFAC9CA414DBFD2F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_4-1637767876946.png" alt="LeePenney_4-1637767876946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click 'OK' to run the calculator&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_5-1637767924755.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28180iB4BC375F239732B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_5-1637767924755.png" alt="LeePenney_5-1637767924755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 15:34:21 GMT</pubDate>
    <dc:creator>LeePenney</dc:creator>
    <dc:date>2021-11-24T15:34:21Z</dc:date>
    <item>
      <title>Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119889#M48249</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to return multiple attributes into a single field using attributes rules and Intersects.&lt;/P&gt;&lt;P&gt;For example two polygons overlap, such as a separate county and a separate state feature class, if I have a road how can I pick up the state and county attribute "name" based on intersects and place them into a single field such as "County, State"?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 14:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119889#M48249</guid>
      <dc:creator>AaronCRose</dc:creator>
      <dc:date>2021-11-24T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119904#M48255</link>
      <description>&lt;P&gt;Hello Aaron,&lt;/P&gt;&lt;P&gt;Are you wanting to do this for a one time process or repeated workflow?&amp;nbsp; Also, what version of Pro are you in and what type of dataset?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119904#M48255</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-24T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119923#M48257</link>
      <description>&lt;P&gt;Below is a basic template you can follow: this is an attribute rule that fires upon insertion or modification of a site address point and returns the value of the ZIP field of an underlying polygon called "MSD.SLCOMSD.ZipcodesMSD" (a feature class in our Enterprise/SDE db) to the site address point feature.&lt;/P&gt;&lt;P&gt;The if/else block is key as it checks to be sure there is a valid intersection between the point feature and the respective underlying polygon.&amp;nbsp; Also, all of your features need to be in the same $datastore which is ESRI/Arcade for database.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var zip = FeatureSetByName($datastore,"MSD.SLCOMSD.ZipcodesMSD",["ZIP"], true)
var intersectLayer = Intersects(zip, Geometry($feature))
if (Count(intersectLayer) &amp;gt; 0) {
    var layer = First(intersectLayer);
    return layer.ZIP;    
} else {
    return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119923#M48257</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-11-24T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119926#M48258</link>
      <description>&lt;P&gt;Assuming you'd like the "County, State" field in the road layer, here is one way to accomplish that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_0-1637766815936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28170iB90B0BFC6C278456/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_0-1637766815936.png" alt="LeePenney_0-1637766815936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example I have the state of Maine and Aroostook County in two separate feature classes, and a section of road I'd like to update the attributes of as you described.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Run the "Intersect" tool with all layers&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the top ribbon click "Analysis &amp;gt; "Tools" and search "Intersect"&lt;/LI&gt;&lt;LI&gt;Unfortunately I don't think you can select specific attributes to combine, so "All Attributes" is your best option.&lt;/LI&gt;&lt;LI&gt;Choose "Line" as the output type&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_1-1637766958055.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28172iE3320F47548EF674/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_1-1637766958055.png" alt="LeePenney_1-1637766958055.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Make a new field for the combined attributes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The updated road layer will have the state and county names in separate columns since they came from separate layers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_3-1637767483742.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28176i561C750968411FFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_3-1637767483742.png" alt="LeePenney_3-1637767483742.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right-click on the new road layer, click "Attribute Table", then click "Add" in the top-left ribbon in the table&lt;/LI&gt;&lt;LI&gt;Fill in the new field's properties. Make sure for 'Data Type" you select "Text"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. Use the field calculator to combine the different attributes into your new field&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Right-click your new field in the table view, and select "Calculate Field"&lt;/LI&gt;&lt;LI&gt;In the calculator, under the new field's name, enter the expression below to get the state and county fields separated by a comma:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;!Sate_Field! + ", " + !County_Field!​&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_4-1637767876946.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28179iFAC9CA414DBFD2F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_4-1637767876946.png" alt="LeePenney_4-1637767876946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Click 'OK' to run the calculator&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeePenney_5-1637767924755.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28180iB4BC375F239732B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeePenney_5-1637767924755.png" alt="LeePenney_5-1637767924755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1119926#M48258</guid>
      <dc:creator>LeePenney</dc:creator>
      <dc:date>2021-11-24T15:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1121264#M48460</link>
      <description>&lt;P&gt;This will be a repeated workflow; currently running at 2.6.4 and the dataset consists of 12 feature classes that include points, lines, and polygons.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AaronCRose_0-1638285691682.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28528i9AC3384EFF74E110/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AaronCRose_0-1638285691682.png" alt="AaronCRose_0-1638285691682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is to have the name from multiple polygons returned in the name field for the intersecting feature, see above for an example. The closest solution I could find was from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/help-with-intersect-intersection-attribute-rule/m-p/1103603#M46199" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/help-with-intersect-intersection-attribute-rule/m-p/1103603#M46199&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Points, lines, and polygons will need to have this rule applied, but once I get one its easiest enough to figure out the others.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 15:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1121264#M48460</guid>
      <dc:creator>AaronCRose</dc:creator>
      <dc:date>2021-11-30T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Return attributes from multiple fields on Intersects.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1122473#M48631</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AaronCRose_0-1638529841727.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28774i891D8226A294FC1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AaronCRose_0-1638529841727.png" alt="AaronCRose_0-1638529841727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is to have the name from multiple polygons returned in the name field for the intersecting feature, see above for an example. The closest solution I could find was from&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906" target="_blank"&gt;@jcarlson&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/help-with-intersect-intersection-attribute-rule/m-p/1103603#M46199" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-questions/help-with-intersect-intersection-attribute-rule/m...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Points, lines, and polygons will need to have this rule applied, but once I get one its easiest enough to figure out the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 11:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/return-attributes-from-multiple-fields-on/m-p/1122473#M48631</guid>
      <dc:creator>AaronCRose</dc:creator>
      <dc:date>2021-12-03T11:11:19Z</dc:date>
    </item>
  </channel>
</rss>

