<?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: Summarize Intersecting Line Features with Grid in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1340854#M1152</link>
    <description>&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;Try this instead.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectLayer = OrderBy(Intersects(FeatureSetByName($datastore, "Grid", ["GridNum"], true), $feature), "GridNum asc")

var list = [];
var result
for (var f in intersectLayer) {
    var result = f.GridNum
    Push(list,result)

}
return Concatenate(list, ", ");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1698151321994.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83787iF147576A271CECC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_0-1698151321994.png" alt="JS_Esri_0-1698151321994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;~Jake&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 12:42:18 GMT</pubDate>
    <dc:creator>Jake_S</dc:creator>
    <dc:date>2023-10-24T12:42:18Z</dc:date>
    <item>
      <title>Summarize Intersecting Line Features with Grid</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1340625#M1151</link>
      <description>&lt;P&gt;I am trying to create an attribute rule that would automatically update when line features are edited or created. I have gotten half of what I want the rule to accomplish, but am at a loss with the second part. I'm fairly new to Attribute Rules, so the solution may be something I've overlooked or it may not be possible, but any feedback would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Essentially, I have line segments (e.g. Roads) that I want to intersect with a grid (e.g. Map Book Grid). I would like a comma separated list of each road (grouped by Road Name, not for each individual segment) that will update in a separate table (Master Road Names table for those familiar with Address Data Management) that could be exported or added as a Road Index as an appendix to a Map Series.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to populate a field within the roads line layer for individual segments but am struggling with how to group by road name and then write all the intersecting grid values to a single field for all of the segments.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_0-1698079533971.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83725i6061D95FD15D9D75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_0-1698079533971.png" alt="bbaker_tngeo_0-1698079533971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_1-1698079684253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83727i121936FFBF31E865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_1-1698079684253.png" alt="bbaker_tngeo_1-1698079684253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;var intersectLayer = OrderBy(Intersects(FeatureSetByName($datastore, "Grid", ["GridNum"], true), $feature), "GridNum asc")
var zones = ""
var i = 0
for (var f in intersectLayer){
    i++
    if (i == 1){
        zones = f.GridNum
    }
    else {
        zones += ", " + f.GridNum
    }
}

return zones&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 18:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1340625#M1151</guid>
      <dc:creator>bbaker_tngeo</dc:creator>
      <dc:date>2023-10-23T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Intersecting Line Features with Grid</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1340854#M1152</link>
      <description>&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;Try this instead.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectLayer = OrderBy(Intersects(FeatureSetByName($datastore, "Grid", ["GridNum"], true), $feature), "GridNum asc")

var list = [];
var result
for (var f in intersectLayer) {
    var result = f.GridNum
    Push(list,result)

}
return Concatenate(list, ", ");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1698151321994.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83787iF147576A271CECC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_0-1698151321994.png" alt="JS_Esri_0-1698151321994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;~Jake&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1340854#M1152</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2023-10-24T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Intersecting Line Features with Grid</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1341972#M1153</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454087"&gt;@Jake_S&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;That is definitely a cleaner way of summarizing the results. I should have been clearer in my initial post that in my context, each line segment is separate but multiple segments share a common attribute (street name for instance). For a street network, each road (Line 1 for instance) is broken at each intersection, so in my above sample, there are multiple Line 1s, Line 2s, and so forth.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbaker_tngeo_1-1698329738286.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84098iFD3327D69BC79282/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bbaker_tngeo_1-1698329738286.png" alt="bbaker_tngeo_1-1698329738286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to group segments by their name (e.g. Line 1) before creating the results, or would those need to be dissolved by name before being able to summarize the intersecting grids?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/summarize-intersecting-line-features-with-grid/m-p/1341972#M1153</guid>
      <dc:creator>bbaker_tngeo</dc:creator>
      <dc:date>2023-10-30T12:45:08Z</dc:date>
    </item>
  </channel>
</rss>

