<?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: How to construct intersecting point between two lines with ArcGIS Arcade? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321202#M6717</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/692016"&gt;@Woodpeckerus&lt;/a&gt;&amp;nbsp;If you have access to Pro:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-create-points-on-line-intersections-in-arcgis-pr-000025044" target="_self"&gt;https://support.esri.com/en-us/knowledge-base/how-to-create-points-on-line-intersections-in-arcgis-pr-000025044&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in ArcGIS Online:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-generate-point-features-on-intersections-and-exc-000025487" target="_self"&gt;https://support.esri.com/en-us/knowledge-base/how-to-generate-point-features-on-intersections-and-exc-000025487&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 16:07:09 GMT</pubDate>
    <dc:creator>ArmstKP</dc:creator>
    <dc:date>2023-08-22T16:07:09Z</dc:date>
    <item>
      <title>How to construct intersecting point between two lines with ArcGIS Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321191#M6716</link>
      <description>&lt;P&gt;I need to construct a point on the intersection of 2 lines. How can I do that with Arcade?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intersects() basically return either a boolean or a feature that intersects, which is no good for my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intersection() doesn't seem to be able to return a point geometry? In my case, Intersection() will return a feature with null geometry - assuming the geometry would need to be a polygon in this case?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something really obvious here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321191#M6716</guid>
      <dc:creator>Woodpeckerus</dc:creator>
      <dc:date>2023-08-22T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct intersecting point between two lines with ArcGIS Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321202#M6717</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/692016"&gt;@Woodpeckerus&lt;/a&gt;&amp;nbsp;If you have access to Pro:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-create-points-on-line-intersections-in-arcgis-pr-000025044" target="_self"&gt;https://support.esri.com/en-us/knowledge-base/how-to-create-points-on-line-intersections-in-arcgis-pr-000025044&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in ArcGIS Online:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-generate-point-features-on-intersections-and-exc-000025487" target="_self"&gt;https://support.esri.com/en-us/knowledge-base/how-to-generate-point-features-on-intersections-and-exc-000025487&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 16:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321202#M6717</guid>
      <dc:creator>ArmstKP</dc:creator>
      <dc:date>2023-08-22T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct intersecting point between two lines with ArcGIS Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321204#M6718</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/563014"&gt;@ArmstKP&lt;/a&gt;&amp;nbsp;Thanks for your input, but none of these solutions really utilise Arcade. And I need to do it in Arcade.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 16:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321204#M6718</guid>
      <dc:creator>Woodpeckerus</dc:creator>
      <dc:date>2023-08-22T16:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct intersecting point between two lines with ArcGIS Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321358#M6719</link>
      <description>&lt;P&gt;The only way I could come up with is to use the &lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#cut" target="_self"&gt;Cut&lt;/A&gt; function and get the last vertex of the first polyline in the first geometry in the returned array. This assumes that you have just one line and a simple cut. Otherwise, you'll have to go through the array to make sure you're getting the correct polyline.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 19:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1321358#M6719</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-08-22T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct intersecting point between two lines with ArcGIS Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1322152#M6721</link>
      <description>&lt;P&gt;You're on the right path, Intersection() works when you're working with 2 individual geometries, whereas in your instance it's 1 geometry with a collection (even though your collection is only 1 intersecting geometry)&lt;/P&gt;&lt;P&gt;I suggest digging into the resulting intersects result using:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectsResult = Intersects($feature, otherLayer);

if (Count(intersectsResult) == 1) {
    // Run Intersection and the result will be the intersecting point geometry
    var intersectingPoint = Intersection($feature, Geometry(First(intersectsResult )));
} else {
    // There's more than 1 intersecting line, do nothing
    return null;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do want to work with multiple intersecting lines, using a for loop() will allow you to cycle through the results and work with each intersecting point geometry like line 5.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-construct-intersecting-point-between-two/m-p/1322152#M6721</guid>
      <dc:creator>CarmelConnolly</dc:creator>
      <dc:date>2023-08-24T14:58:59Z</dc:date>
    </item>
  </channel>
</rss>

