<?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 Get the true vertex count (Arcade) in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/get-the-true-vertex-count-arcade/idi-p/1148911</link>
    <description>&lt;P&gt;&lt;BR /&gt;Using an Arcade expression:&lt;BR /&gt;I can get a count of a polyline's vertices by looping through the &lt;FONT face="courier new,courier" color="#0000FF"&gt;paths&lt;/FONT&gt; property:&lt;/P&gt;&lt;PRE&gt;var line_geo =  Dictionary(Text(Geometry($feature)));
var paths = line_geo['paths'];
var vertex_count = 0

for (var path_idx in paths){
    for (var vert_idx in paths[path_idx])
        {
        vertex_count++
        }
    }
return vertex_count&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646098954757.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35195iC8C675B4FE9D93A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646098954757.png" alt="Bud_1-1646098954757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That code works, but the vertex count is a&amp;nbsp;&lt;EM&gt;&lt;U&gt;densified&lt;/U&gt;&lt;/EM&gt;&amp;nbsp;vertex count, which isn't what I want...I was expecting the vertex count to be 3 vertices, &lt;A href="https://i.stack.imgur.com/9QjIF.png" target="_self"&gt;not 35 vertices.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could ESRI give us a way to get the true vertex count? For example, a pointCount() geometry function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 16:22:18 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-03-02T16:22:18Z</dc:date>
    <item>
      <title>Get the true vertex count (Arcade)</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/get-the-true-vertex-count-arcade/idi-p/1148911</link>
      <description>&lt;P&gt;&lt;BR /&gt;Using an Arcade expression:&lt;BR /&gt;I can get a count of a polyline's vertices by looping through the &lt;FONT face="courier new,courier" color="#0000FF"&gt;paths&lt;/FONT&gt; property:&lt;/P&gt;&lt;PRE&gt;var line_geo =  Dictionary(Text(Geometry($feature)));
var paths = line_geo['paths'];
var vertex_count = 0

for (var path_idx in paths){
    for (var vert_idx in paths[path_idx])
        {
        vertex_count++
        }
    }
return vertex_count&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646098954757.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35195iC8C675B4FE9D93A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646098954757.png" alt="Bud_1-1646098954757.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That code works, but the vertex count is a&amp;nbsp;&lt;EM&gt;&lt;U&gt;densified&lt;/U&gt;&lt;/EM&gt;&amp;nbsp;vertex count, which isn't what I want...I was expecting the vertex count to be 3 vertices, &lt;A href="https://i.stack.imgur.com/9QjIF.png" target="_self"&gt;not 35 vertices.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could ESRI give us a way to get the true vertex count? For example, a pointCount() geometry function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 16:22:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/get-the-true-vertex-count-arcade/idi-p/1148911</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-02T16:22:18Z</dc:date>
    </item>
  </channel>
</rss>

