<?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>idea Arcade Endpoint() function in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idi-p/1155499</link>
    <description>&lt;P&gt;Could Esri consider adding a Arcade function for getting the endpoint of a polyline?&amp;nbsp;(including multipart lines)&lt;/P&gt;&lt;P&gt;Similar to ST_Geometry’s &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-endpoint.htm" target="_self"&gt;St_Endpoint()&lt;/A&gt; function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related:&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-get-endpoint-coordinates-of-multi-part/m-p/1155581/highlight/true#M53036" target="_self"&gt;&amp;nbsp;Arcade: Get endpoint coordinates of multi-part polyline&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 20:56:33 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-04-06T20:56:33Z</dc:date>
    <item>
      <title>Arcade Endpoint() function</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idi-p/1155499</link>
      <description>&lt;P&gt;Could Esri consider adding a Arcade function for getting the endpoint of a polyline?&amp;nbsp;(including multipart lines)&lt;/P&gt;&lt;P&gt;Similar to ST_Geometry’s &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-endpoint.htm" target="_self"&gt;St_Endpoint()&lt;/A&gt; function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related:&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-get-endpoint-coordinates-of-multi-part/m-p/1155581/highlight/true#M53036" target="_self"&gt;&amp;nbsp;Arcade: Get endpoint coordinates of multi-part polyline&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 20:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idi-p/1155499</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-04-06T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Endpoint() function</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1155577#M19080</link>
      <description>&lt;P&gt;In case you don't know: You can use negative numbers to index arrays from the end. While &lt;STRONG&gt;array[0]&lt;/STRONG&gt; returns the first element, &lt;STRONG&gt;array[-1]&lt;/STRONG&gt; returns the last element, &lt;STRONG&gt;array[-2]&lt;/STRONG&gt; returns the second to last element and so on.&lt;/P&gt;&lt;P&gt;So you can get the last point of a polyline by jumping to the last point of the last line segment:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Geometry($feature).paths[-1][-1]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 06:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1155577#M19080</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-03-21T06:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Endpoint() function</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1158433#M19183</link>
      <description>&lt;P&gt;Whilst&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;has offered up a perfectly acceptable solution, it's a bit of a geeky way of doing things (please don't take offence!). ArcObjects would offer up a&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve_ToPoint.htm" target="_self"&gt;ToPoint&lt;/A&gt; on IPolyline, so getting hold of a start/end point of a line becomes a simple property of the geometry. Navigating arrays by index position just feel like&amp;nbsp;&lt;EM&gt;too much work&lt;/EM&gt; and open to error.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;has recently been suggesting all sorts of ideas that would make geometry manipulation in Arcade a cleaner approach rather than cycling through dictionaries and lists, which seem to me as a desktop nerd a very web-based approach.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 15:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1158433#M19183</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-03-28T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Endpoint() function</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1227817#M21983</link>
      <description>&lt;P&gt;Hi everybody,&lt;BR /&gt;&lt;BR /&gt;I am currently also working on a problem related to this topic and wanted to jump in here as well. Basically I am trying to iterate over a featureset of polylines and check if the currently made feature intersects with any of the endpoints of the feature lines in the feature set. For this to work I created this code:&lt;/P&gt;&lt;P&gt;for(var line in lines){&lt;/P&gt;&lt;P&gt;var endPoint = Geometry(line).paths[-1][-1]&lt;/P&gt;&lt;P&gt;return count(intersects(endPoint, Geometry($feature))) &amp;gt; 0&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;This should return "False" if the created feature is not intersecting on of the line endpoints im trying to iterate over. However all I get is a "unexpected null" error at "var endPoint". Any Ideas how i could solve the problem and get the end points of all the line features im iterating over?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1227817#M21983</guid>
      <dc:creator>StefanAngerer</dc:creator>
      <dc:date>2022-11-02T10:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Endpoint() function</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1227818#M21984</link>
      <description>&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;This is an IDEAS post not a place to ask questions, you need to be asking this under the appropriate question group, I'm guessing &lt;A href="https://community.esri.com/t5/arcgis-online-questions/bd-p/arcgis-online-questions" target="_self"&gt;ArcGIS Online&lt;/A&gt;? Please migrate your question to there and delete your "idea" here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcade-endpoint-function/idc-p/1227818#M21984</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-11-02T10:45:32Z</dc:date>
    </item>
  </channel>
</rss>

