Interpolate missing z values in polyline

4290
12
Jump to solution
08-25-2016 05:27 AM
HåvardMoe1
New Contributor III

I have a polylinezm imported from data put together from various sources. One issue I have is that some parts of the line are missing the Z value for the vertices:

To the left, a profile graph showing the Z values along the line, to the right sketch properties showing some vertices with a dummy -9999 Z value.

I've been looking for a way to interpolate the values for the missing vertices, but have not managed to find a way. Anyone got a tip on how to do this?

0 Kudos
12 Replies
XanderBakker
Esri Esteemed Contributor

I forgot to mention that since the featureclass is m-enabled, I stored the 2D distance as M too.

Before:                                                                                             After:

HåvardMoe1
New Contributor III

Oh, that looks very nice! Reading through the code I see some nice solutions to a couple of things I was struggling to wrap my head around when I was thinking through this yesterday. 

0 Kudos
XanderBakker
Esri Esteemed Contributor

I'm glad you like it. If you have any problems implementing the Update Cursor, just let me know.

0 Kudos