Select to view content in your preferred language

Trying to export elevation data from a line in a .txt output

2245
4
09-21-2023 06:53 AM
Labels (1)
gs_meyer
New Contributor

Hey all,

I am familiar with ArcMap but not that familiar with ArcGIS pro. In ArcMap the way to do what I would like to do is create a line using the "interpolate line" function, create a profile graph, right click that graph and click export data, then select ".txt" as the export file type. This would give you an elevation for each individual pixel along that line you created. 

I am trying to do exactly this in ArcGIS pro but am having little success. I have used distance and direction to create lines, then used the interpolate shape tool to create a new layer with the elevation data. If I create a profile graph, however, I can only export as an image - I have not been able to find a way to export the exact elevation values as a text file. I need to do this to import the elevation data to MATLAB.

If anyone has any suggestions that would be wonderful.

0 Kudos
4 Replies
AyanPalit
Esri Regular Contributor

@gs_meyer This is a common workflow and thanks for posting your steps.

Please review: Interactive elevation profile basics

There are multiple export options including CSV and GDB table

Ayan Palit | Principal Consultant Esri
0 Kudos
gs_meyer
New Contributor

Hello, 

I have followed the steps provided however I am unable to export the profile elevation data. If I click export for the profile graph, I only get an option to save it as a graphic, not a table as shown.Screenshot 2023-09-23 024521.png

0 Kudos
AyanPalit
Esri Regular Contributor

@gs_meyer Thanks for trying this alternate workflow. The elevation data being used must have the proper attribution and allow export. Here's what I got: 

AyanPalit_0-1695473205025.png

Export as csv:

IDDistanceElevation
102958.4971750815084
28.6556787180010912958.4971750815084
317.3113574360021832958.4971750815084
425.9670361540032742958.4971750815084
534.6227148720043662958.474889195204
643.278393590005452958.3095440401494
751.934072308006552958.3095440401494
860.589751026007642958.3095440401494
969.245429744008732958.4569236734096
1077.901108462009822958.857936267089

 

The UI in screenshot looks different than the interactive Elevation Profile tool located in the Exploratory 3D Analysis drop-down menu in the Workflows group on the Analysis tab. 

Ayan Palit | Principal Consultant Esri
0 Kudos
JustinOdell
Frequent Contributor

So I had the same problem as @gs_meyer and eventually figured this one out. 

  1. Generate your Surface in a Map view.
  2. Draw a profile using a line feature class
  3. Use the 'Interpolate Shape' tool to create a 3D feature by interpolating z-values from the surface
  4. Open attribute table of new 3D feature... (Oh no! There is no distance or elevation information!)
  5. Click 'View' > Convert > Local Scene 
  6. In your Scene, add your surface model as a source for Ground.
  7. Select the 3D line feature for which you want to export X (Distance) and Y (Elevation) data
  8. Click 'Analysis' > Exploratory 3D Analysis > Elevation Profile
  9. Select 'Along a Line' then 'Apply'
  10. Watch the ArcGIS Pro magic happen
  11. In the new 'Elevation Profile' window, click 'Export Graph' in the top right corner and select preferred output (Image, Feature, Geodatabase Table or CSV Table).
  12. Reap the rewards!

It is disappointing this simple process in ArcMap now involves several more steps in ArcGIS Pro.

Goodluck everyone!

0 Kudos