<?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: QueryPoint from end of the line....not start in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871568#M5222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3324"&gt;Sean Jones&lt;/A&gt;‌.&amp;nbsp; I ended up just doing math on it, but it's good to know about the ReverseOrientation option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 16:47:05 GMT</pubDate>
    <dc:creator>BrianBulla</dc:creator>
    <dc:date>2020-06-26T16:47:05Z</dc:date>
    <item>
      <title>QueryPoint from end of the line....not start</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871566#M5220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a simple way to use GeometryEngine.Instance.QueryPoint to get a point a specified distance from the end of the line?&amp;nbsp; It seems to default to the start of the line??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do I just need to add some math logic to my code??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 14:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871566#M5220</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-06-26T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPoint from end of the line....not start</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871567#M5221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brian,&lt;/P&gt;&lt;P&gt;Yes you can simply reverse the orientation of your line geometry and do the querypoint using the original distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; reverseGeom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ReverseOrientation&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geometry &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; Multipart&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; qPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;QueryPoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;reverseGeom&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SegmentExtension&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NoExtension&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; dac&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; AsRatioOrLength&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AsLength&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or alternatively get the length of the geometry and work out the new query point distance.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; length2D &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Length&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;   
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; newDistance &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; length2D &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; originalDistance&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; qPoint &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GeometryEngine&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Instance&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;QueryPoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; SegmentExtension&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;NoExtension&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newDistance&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; AsRatioOrLength&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AsLength&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871567#M5221</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: QueryPoint from end of the line....not start</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871568#M5222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3324"&gt;Sean Jones&lt;/A&gt;‌.&amp;nbsp; I ended up just doing math on it, but it's good to know about the ReverseOrientation option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/querypoint-from-end-of-the-line-not-start/m-p/871568#M5222</guid>
      <dc:creator>BrianBulla</dc:creator>
      <dc:date>2020-06-26T16:47:05Z</dc:date>
    </item>
  </channel>
</rss>

