How can I combine them and create elevation profile?
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
closestfunction 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.
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.
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