<?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 Auto-Calculate First and last Z-Value for Polyline [Arcade] in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1306127#M53252</link>
    <description>&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Project:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am creating a field app to collect precise locations of various infrastructures (pipes, manholes, hydrants, etc.), using the Trimble DA2 external GNSS receiver. The map tied to the field app has roughly 50 individual layers and 40 of those layers are editable by the end-user. Each layer has z-values and m-values turned on, and GPS Metadata Fields have been added as well.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Overall Objective:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;The ability to auto-populate empty fields with vital geometry data, such as elevation, through the use of 'Calculated Expressions' in&amp;nbsp; Field App Builder. (And convert units to 'feet', where necessary)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Success:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am successfully retrieving the elevation data I need for the point feature classes using the following arcade expression:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;if(IsEmpty(Geometry($feature)))&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {return;}&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;else{Round(Geometry($feature).z*3.2808,3)}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am also successful in retrieving the 3-dimensional length value from my polyline features:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;if(IsEmpty(Geometry($feature)))&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {return;}&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;else{Round(Length3D($feature, 'feet'),3)}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Current Issue:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am trying to populate two more fields on my polyline feature classes, the z-value for the first vertices and the last vertices of every polyline:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;Line start z-coordinate&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;Line end z-coordinate&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Thank you very much for your time, in advance. - HC&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 13:18:32 GMT</pubDate>
    <dc:creator>HarrisonCotter</dc:creator>
    <dc:date>2023-07-06T13:18:32Z</dc:date>
    <item>
      <title>Auto-Calculate First and last Z-Value for Polyline [Arcade]</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1306127#M53252</link>
      <description>&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Project:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am creating a field app to collect precise locations of various infrastructures (pipes, manholes, hydrants, etc.), using the Trimble DA2 external GNSS receiver. The map tied to the field app has roughly 50 individual layers and 40 of those layers are editable by the end-user. Each layer has z-values and m-values turned on, and GPS Metadata Fields have been added as well.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Overall Objective:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;The ability to auto-populate empty fields with vital geometry data, such as elevation, through the use of 'Calculated Expressions' in&amp;nbsp; Field App Builder. (And convert units to 'feet', where necessary)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Success:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am successfully retrieving the elevation data I need for the point feature classes using the following arcade expression:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;if(IsEmpty(Geometry($feature)))&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {return;}&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;else{Round(Geometry($feature).z*3.2808,3)}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am also successful in retrieving the 3-dimensional length value from my polyline features:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;if(IsEmpty(Geometry($feature)))&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {return;}&lt;BR /&gt;&lt;FONT face="georgia,palatino"&gt;else{Round(Length3D($feature, 'feet'),3)}&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;&lt;U&gt;&lt;STRONG&gt;Current Issue:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;I am trying to populate two more fields on my polyline feature classes, the z-value for the first vertices and the last vertices of every polyline:&lt;/FONT&gt;&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;Line start z-coordinate&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="georgia,palatino"&gt;&lt;FONT face="georgia,palatino"&gt;Line end z-coordinate&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="georgia,palatino"&gt;Thank you very much for your time, in advance. - HC&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1306127#M53252</guid>
      <dc:creator>HarrisonCotter</dc:creator>
      <dc:date>2023-07-06T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Calculate First and last Z-Value for Polyline [Arcade]</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1306180#M53255</link>
      <description>&lt;P&gt;Found a solution to pull the first and last z-values from polyline:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/calculate-z-value-using-arcade/m-p/1001935#M34326" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/calculate-z-value-using-arcade/m-p/1001935#M34326&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 14:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1306180#M53255</guid>
      <dc:creator>HarrisonCotter</dc:creator>
      <dc:date>2023-07-06T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Auto-Calculate First and last Z-Value for Polyline [Arcade]</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1310235#M53480</link>
      <description>&lt;P&gt;&lt;EM&gt;Edited&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Related (M-values, not Z-values):&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcade-code-review-set-polyline-m-values-to/m-p/1157702/highlight/true#M53244" target="_self"&gt;Arcade Code Review: Set polyline M-values to cumulative length of line&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcade-expressions/pull/72/commits/7a6c0c824dfc3ee24252a7a6dd57556875589399" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcade-expressions/pull/72/commits/7a6c0c824dfc3ee24252a7a6dd57556875589399&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-roads-and-highways-blog/arcade-for-measure-attribute-rule/ba-p/1306711" target="_self"&gt;&lt;SPAN&gt;Arcade for Measure Attribute Rule&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 20 Jul 2023 20:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/auto-calculate-first-and-last-z-value-for-polyline/m-p/1310235#M53480</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-07-20T20:38:15Z</dc:date>
    </item>
  </channel>
</rss>

