CALC_VOLUME_BETWEEN_SURFACES appending CSV wrong
Ellie
Global Mapper User
Hi guys,
Missing something obvious here.
Have the following line in a bigger script:
It looks like when it appends the volume info array to the resulting CSV, it, well, appends to the right instead of merging i.e. if it were an xyz file doing this it would look like this:
id,x,y,z,id,x,y,z,id,x,y,z ...
id1,x1,y1,z1,id2,x2,y2,z2,id3,x3,y3,z3 ...
Version 21.0.2 b101519 63 64bit with LiDAR module. We've just bought a v21 licence, so will be checking out if it happens there on that version.
As it is, it's happening on every instance here. I can script around it, if absolutely necessary, but I'd really rather not.
Seems to only be occurring on script calls; it's responding fine when I use the GUI.
Missing something obvious here.
Have the following line in a bigger script:
'CALC_VOLUME_BETWEEN_SURFACES LAYER1_FILENAME=dem_files.gmc ' \(%s of course has the output file path for the csv; this is substituting fine.)
'LAYER2_FILENAME=base_files.gmc AREA_FILENAME=COVERED<sub>* ' \
'ADD_VOLUME_ATTRS=YES OUTPUT_FILENAME=%s'
It looks like when it appends the volume info array to the resulting CSV, it, well, appends to the right instead of merging i.e. if it were an xyz file doing this it would look like this:
id,x,y,z,id,x,y,z,id,x,y,z ...
id1,x1,y1,z1,id2,x2,y2,z2,id3,x3,y3,z3 ...
Version 21.0.2 b101519 63 64bit with LiDAR module. We've just bought a v21 licence, so will be checking out if it happens there on that version.
As it is, it's happening on every instance here. I can script around it, if absolutely necessary, but I'd really rather not.
Seems to only be occurring on script calls; it's responding fine when I use the GUI.
Answers
-
I can provide the resulting CSV by private means; am testing on client data so cannot just put it on the forum.
-
EDIT: Headers do not repeat, but volumes still appending to the right without newline:id,x,y,z,id,x,y,z,id,x,y,z ...
id1,x1,y1,z1,id2,x2,y2,z2,id3,x3,y3,z3 ...
id,x,y,z,id
id1,x1,y1,z1,id2,x2,y2,z2,id3,x3,y3,z3 ...
(just imagine that with <Feature Name>,<Feature Type>,TOTAL_VOLUME etc!) -
Looks like I was too quick off the mark both times - it's actually only giving the first result of the layer.
Sorry! It's been a long day... -
Okay, I have updated Global Mapper to DailyBuild191120, which has not fixed the problem.
-
Hello Ellie,
I suggest that you contact Blue Marble Support directly via email (geohelp@bluemarblegeo.com) so they can take a look at this issue. Please provided a script and some data that will reproduce the problem. Thanks.
Cheers,
Bob
Categories
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

