<?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: GeometryEngine.Intersection of Polyline and Polyline in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/geometryengine-intersection-of-polyline-and/m-p/475825#M3193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that you are getting a MULTILINESTRING EMPTY returned to you, which is a valid geometry, just an empty one.&amp;nbsp; Back when I did ArcObjects programming, the Intersection method had a third parameter that specified the dimension of the product you wanted returned.&amp;nbsp; With your example, asking for a point would return the point you seek while asking for a line would return an empty multilinestring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the geometry engine documentation, that doesn't appear to exist anymore.&amp;nbsp; I will have to think about how to work around this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 16:41:04 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-06-23T16:41:04Z</dc:date>
    <item>
      <title>GeometryEngine.Intersection of Polyline and Polyline</title>
      <link>https://community.esri.com/t5/developers-questions/geometryengine-intersection-of-polyline-and/m-p/475824#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Runtime for .NET 10.2.7&lt;/P&gt;&lt;P&gt;I am using GeometryEngine.Intersect to find the intersection of two Polylines. The GeometryEngine.Intersects function returns the correct value, however, GeometryEngine.Intersection&amp;nbsp; returns only an empty geometry, not very useful. I expect a MapPoint.&lt;BR /&gt; How can I retrieve the intersection point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polyline p1 = new Polyline(new List&amp;lt;MapPoint&amp;gt;()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(55.0, 25.0, SpatialReferences.Wgs84),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(57.0, 25.0, SpatialReferences.Wgs84)&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;Polyline p2 = new Polyline(new List&amp;lt;MapPoint&amp;gt;()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(56.0, 24.0, SpatialReferences.Wgs84),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(56.0, 26.0, SpatialReferences.Wgs84)&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;if( GeometryEngine.Intersects(p1, p2))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var intersection = GeometryEngine.Intersection(p1, p2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Diagnostics.Trace.WriteLine(intersection.IsEmpty);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 15:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/geometryengine-intersection-of-polyline-and/m-p/475824#M3192</guid>
      <dc:creator>charlesroberts3</dc:creator>
      <dc:date>2016-06-23T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine.Intersection of Polyline and Polyline</title>
      <link>https://community.esri.com/t5/developers-questions/geometryengine-intersection-of-polyline-and/m-p/475825#M3193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that you are getting a MULTILINESTRING EMPTY returned to you, which is a valid geometry, just an empty one.&amp;nbsp; Back when I did ArcObjects programming, the Intersection method had a third parameter that specified the dimension of the product you wanted returned.&amp;nbsp; With your example, asking for a point would return the point you seek while asking for a line would return an empty multilinestring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the geometry engine documentation, that doesn't appear to exist anymore.&amp;nbsp; I will have to think about how to work around this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 16:41:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/geometryengine-intersection-of-polyline-and/m-p/475825#M3193</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-06-23T16:41:04Z</dc:date>
    </item>
  </channel>
</rss>

