Export elevation difference
I have a loaded 3D point file and an elevation grid loaded. I want to export a report (text file) of the elevation difference between each point and the elevation grid at that point. How can this be done?
Answers
-
Hi rayjoslyn
You can but its a bit fiddly.- Open your grid and point files.
- Use the digitiser tool to select all the points
- Right click and select "Analysis/Measurement" and then "Apply Elevation to Terrain Layers to Selected Features", select the appropriate option. You will now have a new attribute field for each point which is the grid elevation.
- In the Control Centre, right click on the point data entry and select "Layer" and then "Calculate/Copy Layer Attribute Values". In the next dialogue make sure that the point data set is selected.
- Use the simple calculation and subtract your source attribute (e.g. grid height) from the attribute value (e.g. point height). This will write out a new data field to the point features of the height difference.
- Export a CSV file (under "export vector/lidar" option) including "attribute values" option ticked, and you will have the height difference value as a field.
I hope this helps.
Cheers
-
Using this approach I found that my points file already had an elevation field in it, so when I apply the elevation terrain to the points it would either add or overwrite my existing elevation field value. So I had to copy the elevation field to another field then I could apply the elevation from the terrain layer so that I have both the original (point height) and the elevation (grid height) to do the comparison on.
My next step was to try to script this, but I cannot figure out how to get the COPY_ATTRS command to copy an existing field to a new field within the same file. Is this possible?
-
A different approach may be worthwhile. I use this procedure to compare DEM elevation data with field GPS values.
Open the options dialog for your point data file. On the tab "Feature Types/Labels/Elevations" look at the option "Get 'Elevations' From Attribute Value". It may be set to <default>. Change it to <Don't Get Elevation From Attributes>.
Export your point data file: Export > Export Vector/Lidar format > CSV. In the CSV Export Options dialog, select the Options tab, and check "Include Elevation Values for Each Point".
Open the CSV file in a spreadsheet program. Note that you have more than one column for Elevations (or similar names). One should be your point data elevations, and another should be from your elevation grid. Add a column and subtract one elevation column from another.
I have not played with scripting this process.
-
This is a much simpler process. But now I want to import the diffs and plot dots with colors indicating the diffs. Any suggestions?
-
I've been playing with this. I've been using the create density grid (heat map) from the points using a delta z value (Elevation-GPS value). See settings attached:
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website