<?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: QueryPointAndDistance  in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503835#M13522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don’t get it&lt;/P&gt;&lt;P&gt;The output point is supposed to be on the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 14:06:10 GMT</pubDate>
    <dc:creator>AviSaroussi1</dc:creator>
    <dc:date>2017-09-19T14:06:10Z</dc:date>
    <item>
      <title>QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503833#M13520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a piece of code that uses the&amp;nbsp;method&amp;nbsp;&lt;/P&gt;&lt;H1 class="" style="font-weight: bold; font-size: 13.44px; margin-left: -18px; margin-top: 0em; margin-bottom: 0.2em;"&gt;&amp;nbsp; &amp;nbsp; QueryPointAndDistance .&lt;/H1&gt;&lt;P&gt;the method accepts a line and a point and is supposed to return &amp;nbsp;a point that is closest to the given point on the line.&lt;/P&gt;&lt;P&gt;it also returns a few more details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;one of them is&amp;nbsp;bRightSide&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;esri defines it as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"bRightSide&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;&amp;nbsp;is an output parameter that tells if the output point is on the right side of the curve. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;what does on the right side mean ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;close to the from point ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;close to the to point?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;what is defined as close ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;help will be appreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;Avi Saroussi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 11.2px;"&gt;Raven Radio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503833#M13520</guid>
      <dc:creator>AviSaroussi1</dc:creator>
      <dc:date>2017-09-19T10:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503834#M13521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, the direction of the line (start to end) defines if a point is on the left or right side of the line:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/371701_pastedImage_2.png" style="width: 620px; height: 248px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503834#M13521</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-09-19T11:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503835#M13522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still don’t get it&lt;/P&gt;&lt;P&gt;The output point is supposed to be on the line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503835#M13522</guid>
      <dc:creator>AviSaroussi1</dc:creator>
      <dc:date>2017-09-19T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503836#M13523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/371731_pastedImage_1.png" style="width: 620px; height: 441px;" /&gt;&lt;/P&gt;&lt;P&gt;i run&amp;nbsp;the function on the selected line and the green point(see drawing) .&lt;/P&gt;&lt;P&gt;the result point is the red one. and the bisright return false.&lt;/P&gt;&lt;P&gt;1.according to the help the result should be on the line and if so what does left or right mean in that case.&lt;/P&gt;&lt;P&gt;2. why when i run the code on the above geometries the result &amp;nbsp;isnt on the line .&lt;/P&gt;&lt;P&gt;am i missing something?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503836#M13523</guid>
      <dc:creator>AviSaroussi1</dc:creator>
      <dc:date>2017-09-19T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503837#M13524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I remember that in ArcObjects you can actually enable the extension of the line, which will simulate the line and will use the nearest point to project the point onto. It looks a bit weird, but I think it should be possible to switch that option off. In Python it would project the point to the nearest point on the line.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503837#M13524</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-09-19T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPointAndDistance</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503838#M13525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌ is correct, the first parameter on the method&amp;nbsp;QueryPointAndDistance is &lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#esriSegmentExtension.htm"&gt;extension&lt;/A&gt;, for you to get the red point location you must have set it to&amp;nbsp;&lt;EM&gt;esriExtendTangentAtTo&lt;/EM&gt;. In your screen shot the nearest point would be the node of the network junction. To get that point you want extension to be&amp;nbsp;&lt;EM&gt;esriNoExtension&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bRightSide parameter is telling you which side of the line your input point is. Assuming your network is a river network I would expect it to be returning TRUE for your green point as it is on the right bank side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/querypointanddistance/m-p/503838#M13525</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2017-09-25T09:54:45Z</dc:date>
    </item>
  </channel>
</rss>

