enter image description hereI have one road shapfile and one raster which has surface information

How can I combine them and create elevation profile?

enter image description here

enter image description here


If you have access to the 3D Extension, then the Stack Profile tool will create an elevation profile from a line. It doesn't "combine the lines and raster"

If you just want to get Z-values into the lines you can use the the Interpolate Shape tool.

If you don't have access to the 3D extension, you'll need to break out the workflow, doing something like:

  • Raster to Point (ensuring your take the elevation values into a field)
  • You could then run Feature Vertices to Points (advanced license required) to turn the lines into points
  • Spatial Join using the closest function to get the Z values onto your "line-points"
  • At this point you'll need to either construct your lines from the points (Points to Line) or use a conflation technique.

Alternatively you could do this all in Python and an InsertCursor, moving through the line geometry (vertices) using the Get Cell Value tool to pull the elevation from the raster at a given location.

  • Hi KHibma, I followed you advise to use Stack Profile. But I met a new problem, the graph was a mess and FIRST_DIST can't contain all length, I put the screenshot in the original question, could you please see it?
    – WeiYuan Fu
    Sep 15 '19 at 2:30

New in ArcGIS Pro 2.4 : Profile viewing it's fantastic for slicing a UAV derived SLPK mesh and compare to LiDAR from an earlier date as I have in example 2.

Profile Viewing

ESRI Ireland and UK Whats New in ArcGIS 2.4 enter image description here


You may use the Elevation tool for ArcGIS Pro available in the ArcGIS Marketplace. It is especially suited to compare profiles from different DEM, for example, to analyse the evolution of the elevation over time. https://www.esri.com/en-us/arcgis-marketplace/listing/products/4c66005712cd4e9482b4a937dea86819

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.