<?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: How Arcade can access Z coordinates when calculating field values in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735408#M5011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌, Can you confirm this behavior? Is there a way to use Arcade in ArcGIS Online and have access to the 3D properties of a geometry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2018 23:11:10 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2018-12-27T23:11:10Z</dc:date>
    <item>
      <title>How Arcade can access Z coordinates when calculating field values</title>
      <link>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735405#M5008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;try to calculate de mean of Z coordinates of my polylines using Arcade expression.&amp;nbsp;I use&amp;nbsp;the&amp;nbsp;expression below on a feature layer of Polylines (with not null Z coordinates) but&amp;nbsp;the Z values of&amp;nbsp;each&amp;nbsp;vertices&amp;nbsp;returned by the Arcade expression is always "null". The "IsEmpty" console message return "true" for each vertices. Is there a way to get the Z coordinates with the "calculate field" Arcade profile ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var myPaths = Geometry($feature).paths;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;var points_Z = [];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;for (var i=0;i&amp;lt;Count(myPaths);i++){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var myPath = myPaths&lt;I&gt;;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for (var j=0;j&amp;lt;Count(myPath);j++){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console(IsEmpty(myPath&lt;J&gt;.z));&lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;points_Z&lt;/SPAN&gt;[Count(&lt;SPAN&gt;points_Z&lt;/SPAN&gt;)] = myPath&lt;J&gt;.z;&lt;/J&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;return Mean(&lt;SPAN&gt;points_Z&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Gaëtan Lavenu&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Esri France&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735405#M5008</guid>
      <dc:creator>GaëtanLAVENU</dc:creator>
      <dc:date>2018-12-26T18:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Arcade can access Z coordinates when calculating field values</title>
      <link>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735406#M5009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the Z values get stripped off when you publish the layer. I just published a polyline 3D based on the sample here:&amp;nbsp;&lt;A href="https://community.esri.com/people/xander_bakker/blog/2016/07/08/working-with-3d-and-m-aware-geometries-in-arcpy"&gt;https://community.esri.com/people/xander_bakker/blog/2016/07/08/working-with-3d-and-m-aware-geometries-in-arcpy&lt;/A&gt;&amp;nbsp;and when I publish the layer to ArcGIS Online&amp;nbsp;and consult the layer through the REST API I notice that it does have the property Z enabled, but doing a query returns a geometry without Z values. In addition when you do a "Text($feature)" in the Arcade window you will see that the geometry does not have any Z values:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="429" src="https://community.esri.com/legacyfs/online/432285_pastedImage_2.png" width="561" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 17:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735406#M5009</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-27T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How Arcade can access Z coordinates when calculating field values</title>
      <link>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735407#M5010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I have the same issue. When I query the Rest API the feature layer has z enabled but when using Arcade with the "Text($feature)" instruction, Z values are not returned in the paths arrays. I don't know why ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 22:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735407#M5010</guid>
      <dc:creator>GaëtanLAVENU</dc:creator>
      <dc:date>2018-12-27T22:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How Arcade can access Z coordinates when calculating field values</title>
      <link>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735408#M5011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3063"&gt;Kelly Gerrow&lt;/A&gt;‌, Can you confirm this behavior? Is there a way to use Arcade in ArcGIS Online and have access to the 3D properties of a geometry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 23:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-arcade-can-access-z-coordinates-when/m-p/735408#M5011</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-12-27T23:11:10Z</dc:date>
    </item>
  </channel>
</rss>

