CALC_VOLUME_BETWEEN_SURFACES producing different results than CALC_VOLUMES of subtracted elevations
I wish to measure the volume difference between two elevation models of the same area. I can either a) measure the volume between the two surfaces or b) subtract the surfaces from each other to create an elevation model of the differences, and then measure the volume change from z=0 plane.
Unfortunately when using Global Mapper scripting the results are wildly different. The two scripting files for each method are:
a)
```
Unfortunately when using Global Mapper scripting the results are wildly different. The two scripting files for each method are:
a)
```
GLOBAL_MAPPER_SCRIPT VERSION=1.00 SHOW_WARNINGS=YES LOG_TO_COMMAND_PROMPT=YES
LOG_MESSAGE Starting...
IMPORT FILENAME=%DEM% TYPE="GEOTIFF"
DEFINE_VAR NAME="MINE_SHAPE" VALUE=%SHAPEFILE%
IMPORT FILENAME="%MINE_SHAPE%"
CALC_VOLUMES FILENAME=%MINE_SHAPE% OUTPUT_FILENAME="%CSV%"
```
```
```
```
GLOBAL_MAPPER_SCRIPT VERSION=1.00 SHOW_WARNINGS=YES LOG_TO_COMMAND_PROMPT=YES
LOG_MESSAGE Starting...
IMPORT FILENAME=%DEM1% TYPE="GEOTIFF"
IMPORT FILENAME=%DEM2% TYPE="GEOTIFF"
IMPORT FILENAME=%SHAPEFILE% "
CALC_VOLUME_BETWEEN_SURFACES LAYER1_FILENAME=%DEM1% \
LAYER2_FILENAME=%DEM2% \
AREA_FILENAME=%SHAPEFILE% \
OUTPUT_FILENAME="%CSV%" \
```
```
Tagged:
Answers
-
Method A results: https://pastebin.com/raw/5wwS4y9p
Method B results: https://pastebin.com/raw/0G4Pc4wY
Method B produces the results I am looking for. However Method A is the better process. Can someone please let me now what I'm missing for the data to be so different?
Cheers -
Hi luiender, I believe your question is similar to one I posed on here a few years ago. This thread may help: https://www.globalmapperforum.com/discussion/11974/cut-and-fill-volumes#latest Cheers
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 638 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 914 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website