Skip to main content
Solved

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


Forum|alt.badge.img

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.

Best answer by natalieatsafe

@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!

View original
Did this help you find an answer to your question?

2 replies

natalieatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • Best Answer
  • October 31, 2022

@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!


Forum|alt.badge.img
  • Author
  • October 31, 2022

Hi @natalieatsafe​ ,

 

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings