<?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 Why is Arcade Length() different from Shape_Length? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148772#M52116</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Arcade — ArcGIS Pro 2.9 — FGDB:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;FONT face="courier new,courier" color="#0000FF"&gt;Arcade_Length&lt;/FONT&gt; field in a polyline FGDB FC that I populate using a Calculation Attribute Rule:&lt;/P&gt;&lt;PRE&gt;Length($feature)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Question:&lt;/P&gt;&lt;P&gt;Why is the&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;Length($feature)&lt;/FONT&gt;&amp;nbsp;value&amp;nbsp;&lt;U&gt;different&lt;/U&gt; from the&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;FONT face="courier new,courier"&gt;Shape_Length&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;value?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646080326319.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35177i34C82C8A68A4A8B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646080326319.png" alt="Bud_1-1646080326319.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would have expected the two lengths to be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 22:54:57 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-02-28T22:54:57Z</dc:date>
    <item>
      <title>Why is Arcade Length() different from Shape_Length?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148772#M52116</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Arcade — ArcGIS Pro 2.9 — FGDB:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a &lt;FONT face="courier new,courier" color="#0000FF"&gt;Arcade_Length&lt;/FONT&gt; field in a polyline FGDB FC that I populate using a Calculation Attribute Rule:&lt;/P&gt;&lt;PRE&gt;Length($feature)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Question:&lt;/P&gt;&lt;P&gt;Why is the&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;Length($feature)&lt;/FONT&gt;&amp;nbsp;value&amp;nbsp;&lt;U&gt;different&lt;/U&gt; from the&amp;nbsp;&lt;FONT color="#0000FF"&gt;&lt;FONT face="courier new,courier"&gt;Shape_Length&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;value?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646080326319.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35177i34C82C8A68A4A8B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646080326319.png" alt="Bud_1-1646080326319.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would have expected the two lengths to be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 22:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148772#M52116</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-02-28T22:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Arcade Length() different from Shape_Length?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148853#M52144</link>
      <description>&lt;P&gt;I would image this is why... from&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/geometry_functions/#" target="_blank"&gt;Geometry Functions | ArcGIS Arcade | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646087936495.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35186i5CE735E78A81B1BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646087936495.png" alt="KimGarbade_0-1646087936495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 22:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148853#M52144</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-02-28T22:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Arcade Length() different from Shape_Length?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148889#M52151</link>
      <description>&lt;P&gt;Thanks! I happen to be using a file geodatabase directly, not a feature service. Any idea if that blurb applies to FGDBs?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 00:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148889#M52151</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-01T00:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Arcade Length() different from Shape_Length?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148913#M52153</link>
      <description>&lt;P&gt;You know I don't know that... but I'll run an experiment using similar code at different scales and keep you posted what I find out.&lt;/P&gt;&lt;P&gt;Looks like it doesn't.&amp;nbsp; Here is the Arcade Length of these lines at 1:100 / 1:1,000 / and 1:10,000 (with an extra test for converting $feature to geometry first) all come up with the same (albeit wrong) length value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_0-1646105575200.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35200i71953FB71BC29CF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_0-1646105575200.png" alt="KimGarbade_0-1646105575200.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I thought maybe it had to do with the map being in one spatial reference and the data being in another, but the above numbers were generated when both were set to&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_1-1646106151944.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35202iD3FD74762ED4CFE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_1-1646106151944.png" alt="KimGarbade_1-1646106151944.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I read about the Arcade LengthGeodetic function and thought it might have something to do with the curvature of the Earth.&amp;nbsp; So I created some test data in WGS 84 Web Mercator (aux sphere) and created a map using that same spatial reference and ran a test on that using just straight up&lt;EM&gt; Length($feature,'meters')&lt;/EM&gt; and got the below results, which you might be interested in.&amp;nbsp; The only line who's length was different between shape length and the ArcadeLength in this test was the line that contained the true curve.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KimGarbade_2-1646106615138.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35205iA453D310C119DF98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KimGarbade_2-1646106615138.png" alt="KimGarbade_2-1646106615138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Granted this is a very small test (4 lines), but maybe all this will help you toward you goal.&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 03:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1148913#M52153</guid>
      <dc:creator>KimberlyGarbade</dc:creator>
      <dc:date>2022-03-01T03:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Arcade Length() different from Shape_Length?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1149275#M52194</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I'm wondering if the core issue is that the geometries in Arcade get automatically densified (at least, I &lt;EM&gt;think&lt;/EM&gt; they do).&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/get-the-true-vertex-count-arcade/idi-p/1148911" target="_self"&gt;Get the true vertex count (Arcade)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcade-polyline-paths-documentation-explain-that/idi-p/1148924" target="_self"&gt;Arcade Polyline paths documentation: Explain that lines get automatically densified&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, I think I might have found a workaround.&lt;/P&gt;&lt;P&gt;Instead of using&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;SPAN&gt;Length($feature)&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;which gives the wrong length, I think we can use&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;$feature.shape_length&lt;/FONT&gt;&amp;nbsp; which gives the right length.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1646165284297.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35274i848948A9FDF53AA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1646165284297.png" alt="Bud_1-1646165284297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I wonder if the reason Esri auto-densifies geometries is for the scenario that you mentioned — generalizing in different scales when used in feature services. Maybe that's the&amp;nbsp;&lt;EM&gt;why&lt;/EM&gt; here.&lt;BR /&gt;Or maybe, it's just because true curves are a pain, and are easier to deal with if they're always automatically densified.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&lt;BR /&gt;&lt;A href="https://gis.stackexchange.com/questions/424884/calculate-length-of-line-without-using-length-function-and-without-densifying-c" target="_self"&gt;Calculate length of line without using length function (and without densifying curves)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 20:29:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/why-is-arcade-length-different-from-shape-length/m-p/1149275#M52194</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-01T20:29:39Z</dc:date>
    </item>
  </channel>
</rss>

