CALC_VOLUMES

The CALC_VOLUMES command allows you to calculate the volume for each area in the specified layer using the currently loaded terrain data.

The following parameters are supported by the command:

  • FILENAME - filename of the layer containing the areas to be used in the calculations. This parameter can be listed more than once to specify multiple input files, like FILENAME="FILENAME_1" FILENAME="FILENAME_2".
  • OUTPUT_FILENAME - specifies the path and file name of the output file for volume statistics. At least one of this and the ADD_VOLUME_ATTRS parameter is required. Using both is valid also.
  • ADD_VOLUME_ATTRS - indicates whether or not to add the volume measurements to the area features as attributes. Use ADD_VOLUME_ATTRS=YES to add the volume data to the feature attribute list. At least one of this and the OUTPUT_FILENAME parameter is required. Using both is valid also.
  • BASE_ELEVATION - specifies the base elevation in meters for volume calculations. This parameter is optional. The default is 0.
  • BASE_ELEVATION_ABOVE_SEA_LEVEL- Use BASE_ELEVATION_ABOVE_SEA_LEVEL=YES (or don't specify any value) to indicate that the BASE_ELEVATION parameter represents units above sea level. Use BASE_ELEVATION_ABOVE_SEA_LEVEL=NO to indicate that the base elevation is relative to ground. The default is NO, base elevation is relative to ground.
  • VOLUME_UNIT - specifies the unit to be used for the volume calculations. This parameter is optional, and the default is CUBIC_METERS. Valid values are:
    • ACRE_FEET
    • ACRE_INCHES
    • BARRELS
    • BARRELS_OIL
    • CUBIC_FEET
    • CUBIC_METERS
    • CUBIC_YARDS
    • GALLONS

SAMPLE

Here is a sample of calculating volumes in cubic feet, adding the results to the features as attributes.

 GLOBAL_MAPPER_SCRIPT VERSION=1.00
CALC_VOLUMES FILENAME="boundaries 2.dxf" ADD_VOLUME_ATTRS=YES