Solved

How to preserve existing z values in a polyline featureclass using the surfacedraper transformation?

  • 26 October 2022
  • 2 replies
  • 8 views

Badge

I would like to insert new z values in a polyline feature using the surfacedraper while maintaning the existing z values. A feature can have mutiple vertices with and without z values or a combination.

icon

Best answer by natalieatsafe 31 October 2022, 17:48

View original

2 replies

Badge +4

@sibe​ Hi there, thanks for your question. I'll say that I'm not an expert on this topic, but I did come across a couple of interesting workflows in this question thread. It looks like both of the workflows presented in that thread will extract multiple z-values for features, into separate attributes.

 

The first workflow, by redgeographics, essentially grabs the first set of z-values (in your case, the existing z-values), then uses the CoordinateExtractor to extract those z-values to a attribute. If you're looking keep the existing z-values, you would likely need to do something similar where you extract the existing z-values to a new attribute before running features through the SurfaceDraper. The CoordinateExtractor should do this nicely. You'll get a JSON list attribute returned, which you could then pass through a JSONExtractor to pull out those original z-values. Once your original z-values are safely stored in their own attribute, you could then use the SurfaceDraper to replace z-values. Here's a screenshot:

 

Multiple_ZValues_SurfaceDraperHopefully this does the trick for you!

Badge

Hi @natalieatsafe​ ,

 

Thank you very much for this answer. I will test this out in the coming days. It looks promising.

Reply