70
LOAD_PROJECTION - Loads a New Global Projection From a PRJ File
¤
LOAD_STYLE_FILE - Loads a Style/Type File (.gm_style)
¤
LOAD_TYPE_FILTER - Loads a Type Filter from a GMF (Global Mapper Filter) File
¤
PLAY_SOUND - Plays a Beep or a Specified Sound File
¤
RESTORE_LAST_SAVED_VIEW - Restores Last Saved View
¤
RUN_COMMAND - Runs a Command Line
¤
SAVE_CURRENT_VIEW - Saves Current View
¤
SAVE_PROJECTION - Saves the Current Global Projection to a PRJ File
¤
SET_BG_COLOR - Sets the Background Color
¤
SET_LAYER_OPTIONS - Updates Display Options of Loaded Layer
¤
SET_LOG_FILE - Sets the Name of the Log File
¤
SET_VERT_DISP_OPTS - Sets the Vertical Display Options
¤
SHOW_3D_VIEW - Displays the 3D View Window
¤
UNLOAD_ALL - Unloads All Currently Loaded Data
¤
UNLOAD_LAYER - Unloads a Single Layer
¤
VAR_LOOP_END - Ends a Loop of Commands Over a Range of Values
¤
VAR_LOOP_START - Start a Loop of Commands Over a Range of Numeric Values
¤
Special Parameter Types
Attribute Names
¤
Projection Specification
¤
•
Samples
Crop, Merge, and Reproject 4 USGS DRGs into new GeoTIFF and JPEG files
¤
Generate Contours from all USGS DEMs in a Folder and Export them to DXF and Shape
files
¤
Reclassify Features Based on an Attribute and Display Label
¤
•
General Overview
Global Mapper script files allow the user to create custom batch processes that make use of the functionality
built in to Global Mapper. From a script, one can import data in any of the numerous formats supported by
the software, reproject that data if desired, and export it to a new file.
Global Mapper script files consist of a series of command lines. Each command line begins with a command.
A series of parameter/value pairs should follow the command. These pairs should be written as
parameter=value. No spaces should exist before or after the equal sign. Individual parameter/value pairs
should be separated by spaces. If a pair requires spaces internal to the value, quotes may be used around the
entire value. For example, for a filename with spaces, the pair could look like FILENAME="c:\\my
documents\\test.tif". Parameters that expect a value of YES or NO to enable or disable functionality can
(starting with v13.1) be enabled with just the parameter name. So rather than saying
FLAG_PARAM_NAME=YES, you can just say FLAG_PARAM_NAME to get the same behavior as
specifying yes.
Command lines typically consist of one line each. To extend a command to another line, use the backslash
character (\) at the end of the line. There are a few exceptions to this, including the DEFINE_PROJ and
DEFINE_SHAPE commands and the looping functionality provided by the DIR_LOOP_START and
DIR_LOOP_END commands.
Batch Mode Operation
Global Mapper User's Manual
Table of Contents
240