<?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: Arcade Vertices Count for Polygons with Curves in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510877#M86081</link>
    <description>&lt;P&gt;Thank you Josh. I will give up on using Arcade to calculate the number of vertices. We can get by with just labelling the number of vertices on the polygon (calculated with Python). I was just hoping to use attribute rules to keep a calculated and thus always updated field within the feature class, but it is not essential.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 21:04:57 GMT</pubDate>
    <dc:creator>cquick2</dc:creator>
    <dc:date>2024-07-26T21:04:57Z</dc:date>
    <item>
      <title>Arcade Vertices Count for Polygons with Curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510297#M86022</link>
      <description>&lt;P&gt;I have an arcade question. Essentially, I want each of my land parcels to have the number of vertices labeled on them. It works for the vast majority of parcels, but not those with curves. This is easily reproduceable by creating a basic polygon and one with curves. This is the expression I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var geom = Geometry($feature);
if(TypeOf(geom) == "Polygon") {
   var numVertex = Count(geom.rings[0]);
return numVertex-1;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cquick2_0-1721941170952.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/110704iBF3357F35B12D7F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cquick2_0-1721941170952.png" alt="cquick2_0-1721941170952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With the polygon on the right, it is clear that there are 8 vertices and the expression returns the correct result. On the left parcel, there are 7 vertices, but the expression returns 46. My guess is that the additional vertices do exist and are used to draw smooth curves, but are usually hidden from the user. I need an expression that returns the correct number of vertices (i.e. the count matches the number of vertices identified using the Feature Vertices to Points tool*) even on parcels with curves. Obviously this would be easier if Arcade had a vertex count function but it doesn't appear to.&lt;/P&gt;&lt;P&gt;* it also would match the !GEOM!.pointcount expression in Python&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 21:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510297#M86022</guid>
      <dc:creator>cquick2</dc:creator>
      <dc:date>2024-07-25T21:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Vertices Count for Polygons with Curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510664#M86053</link>
      <description>&lt;P&gt;Be aware that geometry functions in Arcade can be dependent upon the &lt;STRONG&gt;rendered&lt;/STRONG&gt; geometry. The web viewer does not render true curves, so the shape being accessed will have densified curves.&lt;/P&gt;&lt;P&gt;To see this in action, have your polygon labels include the shape's area, perimeter, and vertex count. As you zoom in and out, the numbers change!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 15:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510664#M86053</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-26T15:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Vertices Count for Polygons with Curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510877#M86081</link>
      <description>&lt;P&gt;Thank you Josh. I will give up on using Arcade to calculate the number of vertices. We can get by with just labelling the number of vertices on the polygon (calculated with Python). I was just hoping to use attribute rules to keep a calculated and thus always updated field within the feature class, but it is not essential.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 21:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1510877#M86081</guid>
      <dc:creator>cquick2</dc:creator>
      <dc:date>2024-07-26T21:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Vertices Count for Polygons with Curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1511059#M86093</link>
      <description>&lt;P&gt;Is the layer in an Enterprise GeoDatabase? You could use spatial SQL in a database trigger, maybe. It depends on your RDBMS, but PostGIS, for example, has a &lt;A href="https://postgis.net/docs/ST_NPoints.html" target="_blank"&gt;&lt;STRONG&gt;ST_NPoints &lt;/STRONG&gt;&lt;/A&gt;function that just directly gives you the vertex count for an input geometry.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 15:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1511059#M86093</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-07-27T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Vertices Count for Polygons with Curves</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1512620#M86221</link>
      <description>&lt;P&gt;If I remember correctly, SDE.ST_GEOMETRY automatically densifies as well, just like Arcade does. So that might not help much. Vince, in the Data Management community, could likely shed light on how ST_GEOMETRY vertices are stored -- in the "CAD BLOB," which is separate from the true vertex count.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 20:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-vertices-count-for-polygons-with-curves/m-p/1512620#M86221</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-07-30T20:44:29Z</dc:date>
    </item>
  </channel>
</rss>

