Select to view content in your preferred language

combining a line with a DEM to create an elevation profile

1042
6
01-03-2023 02:16 AM
LeaSchmid
New Contributor

Hi,

I need to create an elevation profile of a line by combining the line with a high resolution DEM. The goal ist to generate a table with the z values spaced by 1 meter. 

I tried to use the profile tool, but this does not work.

Could somebody maybe help me out?

Best,
Lea Schmid

 

0 Kudos
6 Replies
LeaSchmid
New Contributor

Thank you for your reply.  I've already tried this, unfortunately, it only gives me a graph without the necessary values... 

therefore i am wondering how to combine the line with the DEM.

0 Kudos
JohannesBierer
Regular Contributor

Sorry I did overread that you need a table, I think you could use this tool:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/3d-analyst/stack-profile.htm

LeaSchmid
New Contributor

No Problem! This helps a bit, i am able to generate the height, but the distance is wrong...

0 Kudos
JohannesBierer
Regular Contributor

If you are not happy with the proposed solutions maybe there is a way to create a profile table with python?

Don't know if you use python?

Some years ago XanderBakker wrote a script for profile graphs, perhaps it's possible to use this script to export excel tables with the profile data with 1m spacing? The script is here:

https://community.esri.com/t5/python-documents/using-python-and-matplotlib-to-create-profile/ta-p/91...

0 Kudos
DougGreen
Occasional Contributor II

You might also use the Divide a Polyline functionality to chop up your line into 1 m chunks and then generate points at each midpoint along that line. Or you could use the Generate Points Along Lines tool which would be faster. You could then extract values to points from the DEM and then the attribute table of your point layer would be your table.