<?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 Obtaining the intersecting point from a self-intersecting polyline. in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1146364#M5689</link>
    <description>&lt;P&gt;I am able to use&amp;nbsp;GeometryEngine.intersections() in order to obtain a Multipoint object with the intersection points of two poyllines. But if I try with a self-intersecting polyline, I get returned a Polyline object, and I am unsure how to obtain the intersection of such an item.&lt;/P&gt;&lt;P&gt;I don't quite understand the documentation (&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersections(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)" target="_blank" rel="noopener"&gt;GeometryEngine (ArcGIS Runtime SDK for Android 100.13.0)&lt;/A&gt;) when it speaks about this issue, regretfully, so I was hoping for some answers.&lt;/P&gt;&lt;P&gt;Is there a way to obtain the intersection of a Polyline object? Is obtaining the intersection point of a self-intersecting polyline even possible?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 07:42:41 GMT</pubDate>
    <dc:creator>SalvadorApltp</dc:creator>
    <dc:date>2022-02-22T07:42:41Z</dc:date>
    <item>
      <title>Obtaining the intersecting point from a self-intersecting polyline.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1146364#M5689</link>
      <description>&lt;P&gt;I am able to use&amp;nbsp;GeometryEngine.intersections() in order to obtain a Multipoint object with the intersection points of two poyllines. But if I try with a self-intersecting polyline, I get returned a Polyline object, and I am unsure how to obtain the intersection of such an item.&lt;/P&gt;&lt;P&gt;I don't quite understand the documentation (&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/geometry/GeometryEngine.html#intersections(com.esri.arcgisruntime.geometry.Geometry,com.esri.arcgisruntime.geometry.Geometry)" target="_blank" rel="noopener"&gt;GeometryEngine (ArcGIS Runtime SDK for Android 100.13.0)&lt;/A&gt;) when it speaks about this issue, regretfully, so I was hoping for some answers.&lt;/P&gt;&lt;P&gt;Is there a way to obtain the intersection of a Polyline object? Is obtaining the intersection point of a self-intersecting polyline even possible?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1146364#M5689</guid>
      <dc:creator>SalvadorApltp</dc:creator>
      <dc:date>2022-02-22T07:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the intersecting point from a self-intersecting polyline.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1147925#M5694</link>
      <description>&lt;P&gt;Hello and thanks for reaching out,&lt;/P&gt;&lt;P&gt;As you've pointed out, the `GeometryEngine.intersections()`&amp;nbsp; method requires two geometries.&lt;/P&gt;&lt;P&gt;As a result, there is currently no API for obtaining the self-intersection of a single polyline.&lt;/P&gt;&lt;P&gt;It would be possible, howerver, to implement this manually by making a new polyline out of each segment of your original polyline. It would then be possible to iterate over these segments, using ` GeometryEngine.intersections(selfIntersectingPolyline, segment)` to find the intersection points between them and your original geometry.&lt;/P&gt;&lt;P&gt;There may be a few caveats to keep in mind here, for example, if the self-intersecting geometry is very complex (i.e. consists of many segments), then this could result in a quite a few calls to ` GeometryEngine.intersections()`, and might take a fair while to compute.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1147925#M5694</guid>
      <dc:creator>JonL</dc:creator>
      <dc:date>2022-02-25T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining the intersecting point from a self-intersecting polyline.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1147935#M5695</link>
      <description>&lt;P&gt;Thank you very much by your reply, JonL&lt;/P&gt;&lt;P&gt;I didn't think of creating a polyline per segment, that could work. I was hoping I wouldn't have to do any workarounds, but it can't be helped, I'll see what I can do. Thank you for the warning about the possible performance impact, as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd love a "selfIntersections" method or somesuch, it would be appreciated for future versions.&lt;/P&gt;&lt;P&gt;Meanwhile, however, I will test out this method you've pointed out and then get back to you if I am successful, and if I am, I will mark it as the solution.&lt;/P&gt;&lt;P&gt;Thank you kindly for your greatly helpful answer!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/obtaining-the-intersecting-point-from-a-self/m-p/1147935#M5695</guid>
      <dc:creator>SalvadorApltp</dc:creator>
      <dc:date>2022-02-25T12:03:54Z</dc:date>
    </item>
  </channel>
</rss>

