<?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 Programmatically adding z value to a polyline from a featureserver in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-adding-z-value-to-a-polyline-from/m-p/1098857#M74683</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have googled and tested different approaches for a long while. So I have come here to ask what is the recommended way to programmatically add or change the z values of the two end vertices of a polyline, based on a two values from the feature's attributes table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. change the z value&amp;nbsp; of vertex 1 according to the value found in the height1 attribute&lt;/P&gt;&lt;P&gt;2. change the z value&amp;nbsp; of vertex 2 according to the value found in the height2 attribute&lt;/P&gt;&lt;P&gt;I am having trouble finding the appropriate approach. Do i use applyEdits()&amp;nbsp; and change the polyline in place or build a completely new polyline and add to the featurelayer?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 10:49:46 GMT</pubDate>
    <dc:creator>yunsung</dc:creator>
    <dc:date>2021-09-16T10:49:46Z</dc:date>
    <item>
      <title>Programmatically adding z value to a polyline from a featureserver</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-adding-z-value-to-a-polyline-from/m-p/1098857#M74683</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have googled and tested different approaches for a long while. So I have come here to ask what is the recommended way to programmatically add or change the z values of the two end vertices of a polyline, based on a two values from the feature's attributes table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. change the z value&amp;nbsp; of vertex 1 according to the value found in the height1 attribute&lt;/P&gt;&lt;P&gt;2. change the z value&amp;nbsp; of vertex 2 according to the value found in the height2 attribute&lt;/P&gt;&lt;P&gt;I am having trouble finding the appropriate approach. Do i use applyEdits()&amp;nbsp; and change the polyline in place or build a completely new polyline and add to the featurelayer?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 10:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-adding-z-value-to-a-polyline-from/m-p/1098857#M74683</guid>
      <dc:creator>yunsung</dc:creator>
      <dc:date>2021-09-16T10:49:46Z</dc:date>
    </item>
  </channel>
</rss>

