<?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: Arcade intersection in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229214#M1172</link>
    <description>&lt;P&gt;Thanks so much!&amp;nbsp; What I am trying to do, is to create a popup for the box and have it populate the total length of the lines that run through the box.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeZuege_0-1667837505244.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55409i7B2FE781A04B9F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeZuege_0-1667837505244.png" alt="MikeZuege_0-1667837505244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 16:16:53 GMT</pubDate>
    <dc:creator>MikeZuege</dc:creator>
    <dc:date>2022-11-07T16:16:53Z</dc:date>
    <item>
      <title>Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228726#M1166</link>
      <description>&lt;P&gt;I would like to know if it is possible to use the intersection function on a polygon and line.&amp;nbsp; An example would be to create a new geometry based on the road centerlines that fall within an urbanized boundary.&amp;nbsp; I have not come across any examples and everything I try, does not work.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 13:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228726#M1166</guid>
      <dc:creator>MikeZuege</dc:creator>
      <dc:date>2022-11-04T13:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228737#M1167</link>
      <description>&lt;P&gt;Can you share what you've tried? And what it is you're trying to accomplish? Intersecting features like you describe is absolutely possible in Arcade, but bringing those intersected features back to a map to actually visualize them (what I assume you mean by "create a new geometry") is not.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 13:50:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228737#M1167</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-04T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228744#M1168</link>
      <description>&lt;P&gt;Take a look at &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#intersection" target="_blank" rel="noopener"&gt;Intersection()&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Calculate a field in the line feature class:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var polygons = FeaturesetByName($datastore, "TestPolygons")
var polygon = First(Intersects(polygons, $feature))
if(polygon == null) { return null }
var i_line = Intersection(polygon, $feature)
return Length(i_line)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Label the line with this expression&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;`line: ${Round(Length($feature))} meters\nintersection: ${Round($feature.DoubleField)} meters`&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1667570466338.png" style="width: 634px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55299i897C1667515E5AC5/image-dimensions/634x453?v=v2" width="634" height="453" role="button" title="JohannesLindner_0-1667570466338.png" alt="JohannesLindner_0-1667570466338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:01:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228744#M1168</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-04T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228751#M1169</link>
      <description>&lt;P&gt;Thanks for the help.&amp;nbsp; Ultimately, what I am looking for is to be able to modify the boundary shape (urbanized area poly) and return the sum of each of the functionally classified road lengths.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228751#M1169</guid>
      <dc:creator>MikeZuege</dc:creator>
      <dc:date>2022-11-04T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228752#M1170</link>
      <description>&lt;P&gt;Is this a field calculation? A popup? An attribute rule?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1228752#M1170</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-11-04T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229214#M1172</link>
      <description>&lt;P&gt;Thanks so much!&amp;nbsp; What I am trying to do, is to create a popup for the box and have it populate the total length of the lines that run through the box.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MikeZuege_0-1667837505244.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55409i7B2FE781A04B9F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MikeZuege_0-1667837505244.png" alt="MikeZuege_0-1667837505244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229214#M1172</guid>
      <dc:creator>MikeZuege</dc:creator>
      <dc:date>2022-11-07T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229429#M1174</link>
      <description>&lt;P&gt;You can use this expression as Attribute Rule (triggers on Insert &amp;amp; Update) or in a popup:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load the line fc
var lines = FeaturesetByName($datastore, "TestLines")
// get all intersecting lines
var i_lines = Intersects($feature, lines)
// for each intersecting line, get the length of the intersection, accumulate
var total = 0
for(var line in i_lines) {
    total += Length(Intersection(line, $feature))
}
return total&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="JohannesLindner_0-1667890197533.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/55461iEBBB3361C9F150B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1667890197533.png" alt="JohannesLindner_0-1667890197533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 06:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229429#M1174</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-08T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229430#M1175</link>
      <description>&lt;P&gt;Depending on the length of your lines, you might want to use &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#lengthgeodetic" target="_blank" rel="noopener"&gt;LengthGeodetic()&lt;/A&gt; instead of Length() to account for Earth's curvature.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 06:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229430#M1175</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-08T06:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade intersection</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229484#M1176</link>
      <description>&lt;P&gt;Thank You Johannes!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 13:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-intersection/m-p/1229484#M1176</guid>
      <dc:creator>MikeZuege</dc:creator>
      <dc:date>2022-11-08T13:11:04Z</dc:date>
    </item>
  </channel>
</rss>

