<?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: Get the shortest line between 2 features in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-the-shortest-line-between-2-features/m-p/7829#M198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Etienne,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IProximityOperator Interface has a method called &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ReturnNearestPoint&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; You would get a handle on your 2 lines and use this method in both directions to build an ILine geometry from the 2 points?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 13:33:41 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2011-10-26T13:33:41Z</dc:date>
    <item>
      <title>Get the shortest line between 2 features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-the-shortest-line-between-2-features/m-p/7828#M197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to draw (and save in a feature class) the shortest line between two features (lines).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get the shortest distance with the IProximityOperator but I can't find a way to get the actual line (or both points, or angle and point of origin like the generate near table does).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Etienne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 12:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-the-shortest-line-between-2-features/m-p/7828#M197</guid>
      <dc:creator>EtienneDeschenes</dc:creator>
      <dc:date>2011-10-24T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get the shortest line between 2 features</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-the-shortest-line-between-2-features/m-p/7829#M198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Etienne,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IProximityOperator Interface has a method called &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ReturnNearestPoint&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; You would get a handle on your 2 lines and use this method in both directions to build an ILine geometry from the 2 points?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 13:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-the-shortest-line-between-2-features/m-p/7829#M198</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-10-26T13:33:41Z</dc:date>
    </item>
  </channel>
</rss>

