I have a DEM of Sudety mountains and linear .shp with several hiking paths.

I'm trying solve one problem: How to make a script based on input DEM and input line shapes that would count number of segments of hiking path where the terrain rise is higher than 50 meters or lower than -50 meters and sum these that are >50m to one field and that are <50m to another field.

I was trying to solve this problem with 3D line stack profiles and arcpy.UpdateRowCursor, but don't know how to order an iteration that would compare row.HEIGHT with row.HEIGHT of the previous row.

Another question is how to name stack profile's output tables by a field name of particular row?

  • What about extracting line vertices elevations and looking for your 50 m change there? – Baltok Jan 14 '13 at 14:41
  • What exactly is the "rise"? Is it the absolute value of the difference in elevations at the endpoints, or is it perhaps the range of elevations encountered throughout the segment? How do you propose to distinguish a rise of 50 m from a fall of 50 m? – whuber Jan 14 '13 at 16:05
  • My answer to this question may help you: gis.stackexchange.com/questions/21211/… – blindjesse Jan 14 '13 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.