Programmatically adding z value to a polyline from a featureserver

118
0
09-16-2021 03:49 AM
yunsung
New Contributor

Hello All,

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.  

example: 

1. change the z value  of vertex 1 according to the value found in the height1 attribute

2. change the z value  of vertex 2 according to the value found in the height2 attribute

I am having trouble finding the appropriate approach. Do i use applyEdits()  and change the polyline in place or build a completely new polyline and add to the featurelayer?

0 Kudos
0 Replies