<?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 Street Name Index using Arcade in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034086#M38258</link>
    <description>&lt;P&gt;I'm not sure about sorting in the join.&amp;nbsp; You might be best just doing a field calculation:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def my_function(value):
    value_list = value.split(",")
    sorted_list = sorted(value_list)
    string = ''
    for value in sorted_list:
        if string != '':
            string += "," + value
        else:
            string += value
    return string&lt;/LI-CODE&gt;&lt;P&gt;I thought you had repeated roads because of a one-to-many operation.&amp;nbsp; With the join type being concatenated, you would just need a One-to-one join?&amp;nbsp; or am I missing something about your roads data (I can only read between the lines so far)?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 18:59:20 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-03-08T18:59:20Z</dc:date>
    <item>
      <title>Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1033584#M38197</link>
      <description>&lt;P&gt;I am trying to create a street name index as described in this post from 2007&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/product/mapping/creating-street-name-indexes/" target="_blank" rel="noopener"&gt;Creating street name indexes (esri.com)&lt;/A&gt;. I would like to know if it is possible to create an arcade script to create the final table rather than manually manipulating the data in excel. For example, I would like my final GridIndex field attribute to populate on one line as Army Reserve Road-D4, D5&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1614974792180.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7715i69AC15655CDFC2B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1614974792180.png" alt="SarahHartholt_0-1614974792180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 20:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1033584#M38197</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-05T20:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1033598#M38200</link>
      <description>&lt;P&gt;I think you would be best concatenating the D4, D5 in the spatial join initially, then doing any field calculations/arcade labelling.&lt;/P&gt;&lt;P&gt;Where the road intersects each grid in the spatial join, you can set the field mapping to 'Join' and set a delimiter (such as a comma).&lt;/P&gt;&lt;P&gt;A good overview of the process (albeit in ArcMap)&amp;nbsp;&lt;A href="https://esriaustraliatechblog.wordpress.com/2015/06/22/spatial-joins-hidden-trick-or-how-to-transfer-attribute-values-in-a-one-to-many-relationship/" target="_blank"&gt;Spatial Join’s hidden trick or how to transfer attribute values in a One to Many relationship | Esri Australia Technical Blog (wordpress.com)&lt;/A&gt;&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;Spatial Join (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;- look at the filed_mapping parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 21:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1033598#M38200</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-05T21:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034077#M38256</link>
      <description>&lt;P&gt;do you know if there is a way to chose the order of the attribute with the join? I would like the Cell_ID to populate in order (D1, D2, D3, D4, D5). some of my cells are populating with the larger number first (D5,D4), as seen below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1615228425854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7842iC3F22EAE940E5580/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1615228425854.png" alt="SarahHartholt_0-1615228425854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I may have to perform some manual manipulation anyways. I will be left with 4 Army Reserve Roads since there are 4 road segments for this road:&lt;/P&gt;&lt;P&gt;Cell_ID: D5&lt;/P&gt;&lt;P&gt;Cell_ID: D5,D4&lt;/P&gt;&lt;P&gt;Cell_ID: D4&lt;/P&gt;&lt;P&gt;Cell_ID: D4&lt;/P&gt;&lt;P&gt;Using the dissolve tool as suggested in the 2007 post will only remove 1 instance of Army Reserve Rd-D4. I suspect that I will be left with 3 features:&amp;nbsp; Army Reserve Rd-D5,&amp;nbsp; Army Reserve Rd-D5,D4,&amp;nbsp;&amp;nbsp;&amp;amp; Army Reserve Rd-D4&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 18:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034077#M38256</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-08T18:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034086#M38258</link>
      <description>&lt;P&gt;I'm not sure about sorting in the join.&amp;nbsp; You might be best just doing a field calculation:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def my_function(value):
    value_list = value.split(",")
    sorted_list = sorted(value_list)
    string = ''
    for value in sorted_list:
        if string != '':
            string += "," + value
        else:
            string += value
    return string&lt;/LI-CODE&gt;&lt;P&gt;I thought you had repeated roads because of a one-to-many operation.&amp;nbsp; With the join type being concatenated, you would just need a One-to-one join?&amp;nbsp; or am I missing something about your roads data (I can only read between the lines so far)?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 18:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034086#M38258</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-08T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034099#M38260</link>
      <description>&lt;P&gt;I guess it's a bit complicated. My original road layer contains multiple segments for a single road (4 for Army Reserve Rd). 1 in D4, 1 that crosses D4 &amp;amp; D5, and 2 in D5.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_0-1615230565478.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7846i8C45F4D92D5E6EB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_0-1615230565478.png" alt="SarahHartholt_0-1615230565478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The process in the 2007 article states that the duplicated roads/cellID's be removed using the dissolve tool AFtER the spatial join has been performed. in this case I would have 4 features: Army Reserve:D4,&amp;nbsp;Army Reserve:D4,&amp;nbsp;Army Reserve D5,&amp;nbsp;Army Reserve D5. The dissolve would then remove the duplicates and leave me with&amp;nbsp;Army Reserve:D4 &amp;amp;&amp;nbsp;Army Reserve:D5&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahHartholt_1-1615230622874.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7847i888C61F114735AD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahHartholt_1-1615230622874.png" alt="SarahHartholt_1-1615230622874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your original suggestion was to concatenate the CellID's during the spatial join process which, in the 2007 article, is performed BEFORE the duplicated roads are removed. I would again then be left with 4 Army Reserve Rd's:&lt;/P&gt;&lt;P&gt;Army Reserve:D4&lt;/P&gt;&lt;P&gt;Army Reserve:D4&lt;/P&gt;&lt;P&gt;Army Reserve:D5&lt;/P&gt;&lt;P&gt;Army Reserve:D5,D4&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034099#M38260</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-08T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034100#M38261</link>
      <description>&lt;P&gt;Just dissolve on the field ABBR_NAME first, then run the spatial join after that surely?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034100#M38261</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-08T19:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Street Name Index using Arcade</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034158#M38271</link>
      <description>&lt;P&gt;I used the following Arcade expression to reorder my Cell_ID values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var arrName = split($feature.Cell_ID, ",");
return Concatenate(sort(arrName),",")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/populate-street-name-index-using-arcade/m-p/1034158#M38271</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-03-08T21:21:52Z</dc:date>
    </item>
  </channel>
</rss>

