Select to view content in your preferred language

New to Python/Programming - Create 3D Polyline

379
0
08-31-2010 03:03 PM
PeterWilson
Frequent Contributor
I need to generate a 3D polyline and assign Z values for the vertices based on the following method. I have points representing cross sections and a polyline that passes through the cross sections along the river reach. I have delineated the polylines manually snapping to one of the points of each cross section along a river reach. I would like to extract the Z values from the point features that are representing the cross sections and assign the Z value to the vertex within the polyline. I then would like to calculate appropriate Z values for the vertices between the cross sections based on the length of the polyline and the Z values at each cross section. I'm trying to generate a 3D polyline that represents a longitudinal representation of the river channel for hydrological floodplain analysis. Anyone that can provide me with some Python code to get me started and a brief explanation will really help.

Thanks
0 Kudos
0 Replies