<?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: Lines Intersect, but cannot get a Point that intersects them? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/1000743#M5728</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please share with me the example that you have worked with ... as I have the same task as I want to draw a line on the map that contains a tileLayer and get the intersect of the line with the TileLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with that ?&lt;/P&gt;&lt;P&gt;Many thanks in&amp;nbsp; advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 16:22:47 GMT</pubDate>
    <dc:creator>YassineKha</dc:creator>
    <dc:date>2020-11-12T16:22:47Z</dc:date>
    <item>
      <title>Lines Intersect, but cannot get a Point that intersects them?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/796706#M1811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a photo of my code, with the exception that it is having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I have two lines. One line going through many, many smaller lines (thousands).&lt;/P&gt;&lt;P&gt;Some of the smaller lines I want to label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first step in finding these lines is finding a character code, which I do and find them easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second step is to get the intersecting point between the smaller line and the larger line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I follow the examples and first I need to check if they intersect, so they do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try to get an IntersectingPoint and bam - it's null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bool intersects = GeometryEngine.Instance.Intersects(featureXS.GetShape(), feature.GetShape()); // intersects = true&lt;/P&gt;&lt;P&gt;if (intersects == true) {&lt;BR /&gt; var IntersectingGeometryPoints = GeometryEngine.Instance.Intersection(featureXS.GetShape(), feature.GetShape()) as Multipoint;&lt;BR /&gt; MapPoint intPoint = IntersectingGeometryPoints.Points[0];&lt;/P&gt;&lt;P&gt;Polyline needOriginPointFromGeom = featureXS.GetShape() as Polyline;&lt;/P&gt;&lt;P&gt;for(int i = 0; i &amp;lt; needOriginPointFromGeom.PointCount; i++) {&lt;BR /&gt; if(needOriginPointFromGeom.Points&lt;I&gt; == intPoint) {&lt;BR /&gt; xsPoints.Add(new XsPoint((int)featureXS.GetObjectID(), cursorXSRow.FindField("XS_LETTER"), intPoint, needOriginPointFromGeom.Points[i-1]));&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 13:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/796706#M1811</guid>
      <dc:creator>JamesKennedy1</dc:creator>
      <dc:date>2019-09-18T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lines Intersect, but cannot get a Point that intersects them?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/796707#M1812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha, looks like I didn't see the examples too closely. I just needed to add&amp;nbsp;GeometryDimension.esriGeometry0Dimension&lt;/P&gt;&lt;P&gt;and it fixed!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;var IntersectingGeometryPoints = GeometryEngine.Instance.Intersection(featureXS.GetShape(), feature.GetShape(), &lt;SPAN&gt;GeometryDimension.esriGeometry0Dimension&lt;/SPAN&gt;) as Multipoint;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 13:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/796707#M1812</guid>
      <dc:creator>JamesKennedy1</dc:creator>
      <dc:date>2019-09-18T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lines Intersect, but cannot get a Point that intersects them?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/1000743#M5728</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please share with me the example that you have worked with ... as I have the same task as I want to draw a line on the map that contains a tileLayer and get the intersect of the line with the TileLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me with that ?&lt;/P&gt;&lt;P&gt;Many thanks in&amp;nbsp; advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 16:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/lines-intersect-but-cannot-get-a-point-that/m-p/1000743#M5728</guid>
      <dc:creator>YassineKha</dc:creator>
      <dc:date>2020-11-12T16:22:47Z</dc:date>
    </item>
  </channel>
</rss>

