GlobalMapperHelp 191-325
GlobalMapperHelp 191-325
Click to see a discussion thread that includes several screenshots with custom maps displayed on Garmin
devices.
Contents
• General Overview
• Batch Mode Operation
• Comments
• Commands
♦ ADD_MEASURE_ATTRS - Adds/Updates Measure Attributes to Features in a Layer
♦ ASSIGN_TYPE - Assigns Feature Types Based on Attribute Values
♦ COMBINE_TERRAIN - Combines Two Loaded Terrain Layers to Generate a New Terrain
Layer
♦ DEFINE_PROJ - Define a Projection for Later Use
♦ DEFINE_SHAPE - Define a Shape (i.e. Polygon) for Later Use
♦ DIR_LOOP_END - Ends a Loop of Commands Over Files in a Directory
♦ DIR_LOOP_START - Start a Loop of Commands Over Files in a Directory
♦ EMBED_SCRIPT - Runs Another Script File Within This Script
♦ EXPORT_ELEVATION - Export Elevation Data to a File
♦ EXPORT_METADATA - Export Metadata for a Layer to a File
♦ EXPORT_PACKAGE - Export Data to a Global Mapper Package File
♦ EXPORT_RASTER - Export Raster and Elevation Data to a File
♦ EXPORT_VECTOR - Export Vector Data to a File
♦ GENERATE_CONTOURS - Generate Contours from Elevation Data
♦ GENERATE_ELEV_GRID - Generates an Elevation Grid from Loaded 3D Vector Data
♦ GENERATE_LAYER_BOUNDS - Generates a Layer with Bounding Area Features for each
Loaded Layer
♦ GENERATE_PATH_PROFILE - Generate a 3D Path Profile and Save it to a XYZ File
♦ GENERATE_REPORT - Generates a Report on the Loaded Vector Features
♦ GLOBAL_MAPPER_SCRIPT - Script Header Line
♦ IMPORT - Import Data From a File
♦ IMPORT_ARCHIVE - Import Data From an Archive File (.zip, .tar.gz, etc.)
♦ IMPORT_ASCII - Import Generic ASCII Data from a File
♦ IMPORT_DIR_TREE - Import All Data Files in a Directory Tree
♦ IMPORT_TERRASERVER - Import TerraServer Imagery or Topo Maps
♦ 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
♦ 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_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
• 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
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".
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.
You can run a Global Mapper script file automatically be passing it on the command line to the Global
Mapper .exe file. The script file will be run with no user interface displayed and Global Mapper will
immediately exit when the script file completes processing. This allows you to easily run Global Mapper
scripts from another application or from a DOS batch file. Note that your script files need to have an extension
of .gms for this to work.
Comments
Any lines that begin with the forward slash character (/) are considered comments and are ignored by the
script processing engine. This means that you can use C or C++ style comments like // or /* at the start of your
line.
ADD_MEASURE_ATTRS
The ADD_MEASURE_ATTRS command allows you to add/update feature measure attributes to all of the
line and area features in a loaded vector layer.
• FILENAME - filename of the layer to update. If an empty value is passed in, all layers that were
created by the script, such as those from a GENERATE_CONTOURS command, will be updated.
You can also pass in the value 'USER CREATED FEATURES' when running a script in the context
of the main map view or loading a workspace to have the 'User Created Features' layer updated.
ASSIGN_TYPE
The ASSIGN_TYPE command allows you to assign feature types (classifications) based on one or more
attribute or label values. You can choose to update area, line, and or point features with a single operation.
You can also supply multiple COMPARE_STR parameters to apply multiple criteria, all of which must be
true, in order to assign a type.
• FILENAME - filename of the layer to assign types to. If an empty value is passed in, all layers that
were created by the script, such as those from a GENERATE_CONTOURS command, will be
updated. You can also pass in the value 'USER CREATED FEATURES' when running a script in the
context of the main map view or loading a workspace to have the 'User Created Features' layer
updated.
• AREA_TYPE - specifies the name of the Global Mapper area type to assign to matching area
features.
• LINE_TYPE - specifies the name of the Global Mapper line type to assign to matching line features.
• POINT_TYPE - specifies the name of the Global Mapper point type to assign to matching point
features.
• COMPARE_STR - specifies a comparison operation to perform to see if a feature is one that needs to
be reclassified. The format is attr_name=attr_value. For example if you have an attribute named
CFCC and you want to match when the value of that attribute starts with an 'A', you can use
COMPARE_STR="CFCC=A*" as your parameter. You can add multiple COMPARE_STR
parameters to a single command to combine multiple criteria for your search. If you would like to
compare against a feature label rather than an attribute, use <Feature Name> for your attribute name.
To compare against a feature type name rather than an attribute, use <Feature Type> for your attribute
name. To compare against the feature description, use <Feature Desc> for your attribute name.
• CASE_SENSITIVE - specifies whether or not text comparisons are case sensitive or not. Use
CASE_SENSITIVE=YES to enable, by default comparisons are not case sensitive.
For an example of how to use the ASSIGN_TYPE command, see the sample at the bottom of this document.
COMBINE_TERRAIN
The COMBINE_TERRAIN command generates a new terrain (gridded elevation) layer by combining two
loaded terrain layers through some operation, like addition, subtraction (difference), average, min/max, etc.
The new terrain layer can then be operated on just like any other terrain layer.
• LAYER1_FILENAME - full path and filename of the first loaded terrain layer to use. You can also
pass in the full description of the loaded layer to use in case you want to use a layer not loaded from a
file.
• LAYER2_FILENAME - full path and filename of the second loaded terrain layer to use. You can also
pass in the full description of the loaded layer to use in case you want to use a layer not loaded from a
file.
• COMBINE_OP - defines the operation to perform when combining the layers. The following
operations are supported:
♦ ADD - adds the values from the first layer to the second
♦ SUBTRACT_SIGNED - subtracts the values of the second layer from the first and saves the
signed result.
♦ SUBTRACT_UNSIGNED - subtracts the values of the second layer from the first and saves
the magnitude of the result.
♦ AVERAGE - saves the average of the values from the first and second layers.
♦ MINIMUM - saves the smaller of the values from the first and second layers.
♦ MAXIMUM - saves the larger of the values from the first and second layers.
♦ FILTER_KEEP_FIRST - saves the first layer value if the second layer value is valid.
♦ FILTER_KEEP_FIRST_IF_GT_SECOND - saves the first layer value if the second layer
value is valid and the first layer value is greater than the second layer value.
♦ FILTER_KEEP_FIRST_IF_LT_SECOND - saves the first layer value if the second layer
value is valid and the first layer value is less than the second layer value.
• LAYER_DESC - specifies the name to assign to the newly generated terrain layer. If no layer
description is provided, the default name of "Combined Elevation Grid" will be used.
• ELEV_UNITS - specify elevation units to use in new terrain layer
♦ FEET - export in US feet
♦ DECIFEET - export in 10ths of US feet
♦ METERS - export in meters
♦ DECIMETERS - export in 10ths of meters
♦ CENTIMETERS - export in centimeters
• SPATIAL_RES - specifies spatial resolution. Defaults to the minimum spatial resolution of the two
layers if not specified. Should be formatted as x_resolution,y_resolution. The units are the units of the
current global projection. For example, if UTM was the current global projection and you wanted to
export at 30 meter spacing, the parameter/value pair would look like SPATIAL_RES=30.0,30.0.
• GLOBAL_BOUNDS - specifies the combine bounds in units of the current global projection. There
should be 4 values in a comma-delimited list following the parameter name. The values should be in
order of minimum x, minimum y, maximum x, maximum y.
• GLOBAL_BOUNDS_SIZE - specifies the combine bounds in units of the current global projection.
There should be 4 values in a comma-delimited list following the parameter name. The values should
be in order of minimum x, minimum y, width in x, width in y.
• LAT_LON_BOUNDS - specifies the combine bounds in latitude/longitude degrees. There should be
4 values in a comma-delimited list following the parameter name. The values should be in order of
westmost longitude, southernmost latitude, easternmost longitude, northernmost latitude.
• LAYER_BOUNDS - specifies that the operation should use the bounds of the loaded layer(s) with the
given filename. For example, to export to the bounds of the file "c:\test.tif", you would use
LAYER_BOUNDS="c:\test.tif". Keep in mind that the file must be currently loaded.
• LAYER_BOUNDS_EXPAND - specifies that the operation should expand the used
LAYER_BOUNDS bounding box by some amount. The amount to expand the bounding rectangle by
should be specified in the current global projection. For example, if you have a UTM/meters
projection active and want to expand the bounds retrieved from the LAYER_BOUNDS parameter by
100 meters on the left and right, and 50 meters on the top and bottom, you could use
LAYER_BOUNDS_EXPAND="100.0,50.0". You can also specify a single value to apply to all 4
sides, or supply 4 separate values in the order left,top,right,bottom.
• FILL_GAPS - specifies that small gaps in between and within the data sets being combined will be
filled in by interpolating the surrounding data to come up with an elevation for the point in question.
This option is off by default, specify FILL_GAPS=NO to turn off.
• POLYGON_CROP_FILE - specifies the full path and filename of a vector file containing a polygon
feature to which the operation should be cropped. If multiple polygons are found in the specified file
the polygon which has the largest intersection with the data to be combined will be used as the crop
polygon (see POLYGON_CROP_USE_ALL or POLYGON_CROP_USE_EACH for exceptions).
DEFINE_PROJ
The DEFINE_PROJ command allows a projection (including datum) to be associated with a name. The
projection name can then be used in later IMPORT, IMPORT_ARCHIVE, IMPORT_ASCII, and
LOAD_PROJECTION commands to specify a projection as needed.
The DEFINE_PROJ command consists of a single command line followed by a series of lines describing the
projection in the format of an ESRI PRJ file. The easiest way to determine the text for a projection is to setup
a projection on the Projection tab of the Tools->Configuration and then use the Save to File button to create a
new .prj file. Then just open the .prj file up in Notepad and copy the contents to the lines following the
DEFINE_PROJ command line.
The DEFINE_PROJ command is terminated with a single line containing only the text END_DEFINE_PROJ.
For a sample of the DEFINE_PROJ command in use, load some data and then save a Global Mapper
workspace file from the File->Save Workspace menu command. Open the resulting .gmw file in an editor and
you can see how the DEFINE_PROJ command is used to define a view projection and the set it.
DEFINE_SHAPE
The DEFINE_SHAPE command allows a multi-point shape (like a polygon) to be associated with a name.
The projection name can then be used in later commands for things like cropping and feathering to polygonal
boundaries.
The DEFINE_SHAPE command consists of a single command line followed by a series of lines describing
the series of XY coordinate pairs that define the shape. Each line should have a single coordinate value with
the X and Y coordinates separated by a comma.
The DEFINE_SHAPE command is terminated with a single line containing only the text
END_DEFINE_SHAPE.
Here is an example of a DEFINE_SHAPE command used to define a feather polygon with a name of
'FEATHER_POLY'
DEFINE_SHAPE SHAPE_NAME="FEATHER_POLY"
377493.234,4323974.016
375343.359,4318676.109
381101.953,4314414.750
387014.109,4317178.875
386975.719,4322400.000
381869.766,4324588.266
377493.234,4323974.016
END_DEFINE_SHAPE
DIR_LOOP_END
The DIR_LOOP_END command ends a loop of commands over all of the folders within a directory. See the
DIR_LOOP_START command for details.
DIR_LOOP_START
The DIR_LOOP_START command begins a loop of commands over all of the folders within a directory (and
optionally its subdirectories) that match one or more filename masks. This is a powerful feature allowing you
to do things like easily batch convert a collection of files or perform any other supported operation over a
collection of files. You end a loop over the files in a folder using the DIR_LOOP_END command. Note that it
is also possible to nest loops.
For any commands found within a DIR_LOOP_START...DIR_LOOP end pair defining a loop, the following
special character sequences can be used anywhere (examples of what the values will be based on a current
filename of 'C:\data\my_file.dem' are listed):
For a sample of the DIR_LOOP_START command in use, see the example at the bottom of this reference.
• DIRECTORY - specifies the directory to search for files in. If you leave this blank, the operation will
be based in the current folder.
• FILENAME_MASKS - space-separated list of filename masks to import. If no value is provided then
all files will be used.
• RECURSE_DIR - specifies whether the loop operation will search subdirectories of the specified
directory as well as the current one. Use RECURSE_DIR=YES to enable. The default value is to
NOT search subdirectories.
EMBED_SCRIPT
The EMBED_SCRIPT command allows you to call another script from within a script. This can be useful in
many situations. For example, if you have a common set of data files that you want to load for each script
operation, you could simply create a script that loaded those files, then embed that script within your other
scripts.
EXPORT_ELEVATION
The EXPORT_ELEVATION command exports all currently loaded elevation data to a file. The following
parameters are supported by the command.
• GRID_TYPE_PIXEL_SIZE - specifies that the export should be gridded into multiple tiles with each
tile having the given size in pixels/samples. The value should be specified as cell pixel width,cell pixel
height. For example, if you want to tile the export into cells that are 800 pixels wide by 600 meters
tall, you would use GRID_TYPE_PIXEL_SIZE="800,600".
• GRID_TYPE_ROWS_COLS - specifies that the export should be gridded into multiple tiles with a
given number of rows and columns of tiles. The value should be specified as number of rows,number
of columns. For example, if you want to tile the export into a grid of 8 rows each 4 tiles across, you
would use GRID_TYPE_ROWS_COLS="8,4".
• GRID_OVERLAP - specifies how much to overlap tiles when gridding an export into multiple tiles.
This is a percentage value from 0 to 100 and only applies when on of the GRID_TYPE_* parameters
is used. For example, to make your grid tiles overlap by 5% of the grid tile size, use
GRID_OVERLAP="5.0". The default value is 0.0, meaning that the tiles do not overlap.
• GRID_KEEP_CELL_SIZE - specifies that the size of the grid cells should be maintained over sample
spacing. This means that if you specify a grid of 4 rows and 5 columns, each grid cell will be exactly
25% of the total export height and 20% of the total export width. The sample spacing may be slightly
smaller than what is specified in order to achieve this. By default, the sample spacing is exactly
maintained and each grid cell may be slightly larger than specified to maintain an integer number of
exported cells. Use GRID_KEEP_CELL_SIZE=YES to enable.
• GRID_NAMING - specifies how to name tiles when gridding an export into multiple tiles. The value
should be SEQUENTIAL for sequential numeric naming starting at 1, SEPARATE for separate prefix
appending by row and column, or SEPARATE_COLS_FIRST for separate prefix appending by
columns and rows. For the SEPARATE options, use the GRID_NAMING_COLS and
GRID_NAMING_ROWS parameters to specify the details of how to name the rows and columns. If
no GRID_NAMING parameter is supplied, the last selected grid naming options selected in the user
interface will be used.
• GRID_NAMING_COLS - specifies how to name the column portion of grid cell names when using
the GRID_NAMING=SEPARATE or GRID_NAMING=SEPARATE_COLS_FIRST parameter. The
value of this field is a comma-delimited list with the following field values:
♦ Naming type. Can have the following values:
◊ NUM - name using numbers in ascending order
◊ NUM_REVERSE - name using numbers in descending order
◊ ALPHA - name using letters in ascending order
◊ ALPHA_REVERSE - name using letters in descending order
♦ Starting value for numbering or lettering (i.e. '1', or 'A').
♦ Prefix string to use before the numeric or alphabetic value.
♦ Step value for numeric naming (default is '1')
You can leave values blank if they don't apply or you want to use the default. As an example, to do
numeric naming starting at the number 100, increasing by 10 each time with a prefix of DEM, you
would use GRID_NAMING_COLS="NUM,100,DEM,10".
• GRID_NAMING_ROWS - specifies how to name the row portion of grid cell names when using the
GRID_NAMING=SEPARATE parameter. See the documentation for the GRID_NAMING_COLS
parameter above for details on the format.
• GRID_NAMING_PREPEND_ZEROES - specifies whether or not to prepend zeroes to the start of
grid column/row names. Use GRID_NAMING_PREPEND_ZEROES=NO to disable the prepending
of zeroes.
• GRID_NAMING_SEPARATOR - specifies the separator string to use between pieces of a grid name.
The default is an underscore.
• GRID_CREATE_FOLDERS - specifies that a separate folder should be generated for each row (or
column if GRID_NAMING=SEPARATE_COLS_FIRST is specified) of the export rather than
placing every output file in the same folder.
EXPORT_METADATA
The EXPORT_METADATA command exports the metadata for a specified load layer. The following
parameters are supported by the command.
• FILENAME - full path of file (must already be loaded) that you want to save the metadata for.
• METADATA_FILENAME - full path of new text file to create on disk containing the metadata for
the specified layer.
EXPORT_PACKAGE
The EXPORT_PACKAGE command exports all currently loaded raster, vector, and elevation data to a Global
Mapper Package (GMP) file. The following parameters are supported by the command.
The EXPORT_RASTER command exports all currently loaded raster, vector, and elevation data to a file. The
following parameters are supported by the command.
- The exported file will use the some color configuration (if possible) as the file being
exported. Note that this option is only available if you have only a single layer loaded for
export.
♦ OPTIMIZED (ERDAS, GEOTIFF, and PNG only) - The palette generated will be an optimal
mix of up to 256 colors that will closely represent the full blend of colors in the source
images. This option will generate the best results, but can more than double the export time
required if any high color images are present in the export set.
♦ HALFTONE (ERDAS, GEOTIFF, and PNG only) - use a 256-color halftone palette spread
over the color spectrum
♦ DOQ_DRG (ERDAS, GEOTIFF, and PNG only) - use a 256-color palette optimized for
combined grayscale DOQs and USGS DRGs
♦ DRG (ERDAS, GEOTIFF, and PNG only) - use a 256-color palette optimized for the colors
found in USGS DRGs
♦ GRAYSCALE - use a 256-color grayscale palette
♦ BW (GEOTIFF only) - creates a black and white, 1-bit per pixel image
♦ BLACKISMIN (GEOTIFF only) - creates an 8-bit per pixel grayscale image with no color
map stored in the image. Black will be stored as zero with varying shades of gray up to white
with a value of 255.
♦ WHITEISMIN (GEOTIFF only) - creates an 8-bit per pixel grayscale image with no color
map stored in the image. White will be stored as zero with varying shades of gray up to black
with a value of 255.
♦ JPG (GEOTIFF only) - creates a 24-bit RGB JPG-in-TIFF image. Note that while this creates
a highly compressed GeoTIFF file, many software packages do not recognize JPG-in-TIFF
format files.
♦ MULTIBAND (GEOTIFF only) - creates a multi-band GeoTIFF file with any number of
bands of data. This is useful for multi-spectral imagery. Either 8- or 16-bits per band will be
used depending on what is available in the input data. Use the NUM_BANDS parameter to
specify how many bands to use. You can override the default band setting using the
BAND_EXPORT_SETUP parameter (described below).
♦ Custom palette filename - you can also pass in the full path to a .pal file containing a custom
palette to use for the export.
• NUM_BANDS - specifies how many bands of data to export for a PALETTE=MULTIBAND export.
If you don't specify a value for this the band count will be the maximum available for any of the
loaded layers.
• BAND_BIT_DEPTH - specifies how many bits to use for each band of data for a
PALETTE=MULTIBAND export. If you don't specify a value for this the highest bit depth of any of
the input data layers will be used. The valid values are BAND_BIT_DEPTH=8,
BAND_BIT_DEPTH=16, or BAND_BIT_DEPTH=32.
• BAND_EXPORT_SETUP - allows you to override the default band assignment for a MULTIBAND
export. Use the following format to specify what band from what layer to use for a given export band:
<output_band>?<input_band>?<layer_filename> . So for example to assign the 4th (infrared) band in
an export from the 1st (red) band in a previously loaded file name C:\data\input_file.tif, use the
following parameter: BAND_EXPORT_SETUP="4?1?c:\data\input_file.tif". Note that you would
EXPORT_VECTOR
The EXPORT_VECTOR command exports all currently loaded vector data to a file. The following
parameters are supported by the command.
• COORD_OFFSET (SIMPLE_ASCII only) - specifies the offset to apply to any coordinates written to
the file. This offset will be added to each coordinate written to the file. The offset should be specified
as a comma-delimited list of the X, Y, and Z offsets, such as
COORD_OFFSET=100000.0,200000.0,0.0
• COORD_SCALE (SIMPLE_ASCII only) - specifies the scale factors to apply to any coordinates
written to the file. Each coordinate will be multiplied by these scale factor before being written to the
file. The scale factors should be specified as a comma-delimited list of the X, Y, and Z scale factors,
such as COORD_SCALE=0.1,0.1,1.0
• CDF_MAJOR_CODE (CDF only) - specifies the default major attribute code to use for features when
exporting to a CDF format file (default is 32).
• CDF_MINOR_CODE (CDF only) - specifies the default minor attribute code to use for features when
exporting to a CDF format file (default is 45).
• CDF_USE_DEFAULT_CODE (CDF only) - specifies that the default attribute code pair should be
used for all features written to the CDF file and not just those for which no attribute code pair could
be automatically determined based on the feature classification.
• INC_ELEV_ATTR (MAPINFO only) - specifies whether or not the elevation of a feature should be
added as an attribute to the MapInfo files exported. Use INC_ELEV_ATTR=YES to enable or
INC_ELEV_ATTR=NO to disable. This is enabled by default.
• INC_LAYER_ATTR (SHAPEFILE, MAPINFO, or KML only) - specifies whether or not the layer
(description) of a feature should be added as an attribute to the DBF files exported with the Shapefile
or for KML files whether or not displays labels should be exported for line and area features. Use
INC_LAYER_ATTR=YES to enable or INC_LAYER_ATTR=NO to disable. This is enabled by
default for Shapefile and MapInfo exports and disabled by KML.
• POLYGON_CROP_FILE - specifies the full path and filename of a vector file containing a polygon
feature to which the export should be cropped. If multiple polygons are found in the specified file the
polygon which has the largest intersection with the data to be exported will be used as the crop
polygon (see POLYGON_CROP_USE_ALL and POLYGON_CROP_USE_EACH for exceptions).
Note that line and area features will only be cropped to the bounds of the specified polygon. Point
features from some formats will actually be cropped to the specified polygon boundary.
• POLYGON_CROP_NAME - specifies the name of a polygon shape previously defined using the
DEFINE_SHAPE command to which the export should be cropped. The coordinates in the shape
need to have been provided in whatever projection the export is being done in.
• POLYGON_CROP_USE_ALL - specifies that if a POLYGON_CROP_FILE is specified that
contains multiple polygons, the export will be cropped to all polygons in that file rather than just the
best-fit polygon.
• MAP_NAME (POLISH_MP only) - specifies the map name for the MP file.
• POLYGON_CROP_USE_EACH - specifies that if a POLYGON_CROP_FILE is specified that
contains multiple polygons, the operation will generate a separate export for each polygons in that file
rather than just the best-fit polygon. See the POLYGON_CROP_BBOX_ONLY and
POLYGON_CROP_NAME_ATTR options for naming and other options when using this parameter.
Use POLYGON_CROP_USE_EACH=YES to enable.
• POLYGON_CROP_BBOX_ONLY - specifies that if the POLYGON_CROP_USE_EACH parameter
is specified that each export should just be cropped to the bounding box of each polygon rather than
the actual boundary of the polygon. Use POLYGON_CROP_BBOX_ONLY=YES to enable only
cropping to the bounding box.
• POLYGON_CROP_NAME_ATTR - used to control the filenames generated when cropping to
multiple polygons using the POLYGON_CROP_USE_EACH parameter. This should be the actual
name of the attribute from the polygon features to use for naming, or the special values <Area Display
Label> or <Area Source Filename>. If no value is provided, the exported files will be sequentially
numbered.
GENERATE_CONTOURS
The GENERATE_CONTOURS command allows for the generation of contour lines (isolines of equal
elevation) from any or all currently loaded elevation data. The following parameters are supported by the
command.
GENERATE_ELEV_GRID
The GENERATE_ELEV_GRID command allows for the generation of a gridded elevation layer using loaded
3D vector data. The following parameters are supported by the command.
GENERATE_LAYER_BOUNDS
The GENERATE_LAYER_BOUNDS command create a new layer with a single bounding box area created
from the bounding box of each loaded layer.
GENERATE_PATH_PROFILE
The GENERATE_PATH_PROFILE command allows for the saving of a 3D path profile to an ASCII XYZ
file. This command uses loaded elevation data to generate a list of the 3D coordinates between two given
points in the given elevation units. The following parameters are supported by the command.
GLOBAL_MAPPER_SCRIPT
The GLOBAL_MAPPER_SCRIPT must be the first command in the file. The only parameter supported is the
VERSION parameter. Typically, the entire command line will look like:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
• VERSION - specifies the version of the scripting language used. This parameter is required. You
should always use VERSION=1.00.
• ENABLE_PROGRESS - specifies whether or not any progress dialogs should be displayed while this
script is processing. This is enabled by default. Use ENABLE_PROGRESS=NO to disable the
display of any progress dialogs during the processing of this script.
• REQUIRE_WORKSPACE - name of workspace file that is required to be loaded for this script to
run. If a name is provided for this parameter and that workspace is not currently loaded into Global
Mapper, the script will immediately abort. This can be used if you have different scripts that you only
want to use if other workspaces are active and want to prevent accidentally selecting the wrong script.
GENERATE_REPORT
The GENERATE_REPORT command allows you to generate a CSV text report file on the data in one or
more loaded layers broken down by a particular attribute value, feature name, or type, or just a single line
report about all features. The report will include the count of area, line, and point features matching the
specified criteria as well as the total combined length of the line features and combined covered area of the
area features.
• OUTPUT_FILENAME - specifies the name of the text .csv file to write the report results to.
• FILENAME - filename of the layer to generate the report for. If an empty value is passed in, all layers
that were created by the script, such as those from a GENERATE_CONTOURS command, will be
used to generate the report. You can also pass in the value 'USER CREATED FEATURES' when
running a script in the context of the main map view or loading a workspace to have the 'User Created
Features' layer be used. If no FILENAME parameter is provided, the report will cover all available
vector layers.
• REPORT_ATTR - specifies what to use to divide up the report into categories. This can be an
attribute name, or if you would like to compare against a feature label rather than an attribute, use
<Feature Name>. To compare against a feature type name rather than an attribute, use <Feature
Type> for your attribute name. To compare against the feature description, use <Feature Desc> for
your attribute name. If no REPORT_ATTR parameter is provided or the value is empty, only a single
line concerning all matching features will be generated in the report.
• COMPARE_STR - specifies a comparison operation to perform to see if a feature is one that needs to
be included in the report. The format is attr_name=attr_value. For example if you have an attribute
named CFCC and you want to match when the value of that attribute starts with an 'A', you can use
COMPARE_STR="CFCC=A*" as your parameter. You can add multiple COMPARE_STR
parameters to a single command to combine multiple criteria for your search. If you would like to
compare against a feature label rather than an attribute, use <Feature Name> for your attribute name.
To compare against a feature type name rather than an attribute, use <Feature Type> for your attribute
name. To compare against the feature description, use <Feature Desc> for your attribute name.
• CASE_SENSITIVE - specifies whether or not text comparisons are case sensitive or not. Use
CASE_SENSITIVE=YES to enable, by default comparisons are not case sensitive.
IMPORT
The IMPORT command imports a data file for later use. The following parameters are supported by the
command.
• FILENAME - full path to file to load the data from. This can also be the URL for a file on a web site
that you want Global Mapper to download and load.
• TYPE - type of data file we're loading
♦ AUTO - automatically determine the type (default).
♦ ACE - Altimetry Corrected Elevation (ACE) format file.
♦ ARCASCIIGRID - Arc ASCII Grid format file.
♦ ARCBINARYGRID - Arc Binary Grid format file.
• LABEL_FIELD - specifies the name of the attribute field to use as the label attribute for the features
in the file.
• LABEL_PREFIX - specifies the prefix to prepend to attribute-based labels
• LABEL_SUFFIX - specifies the suffix to append to attribute-based labels
• ELEV_FIELD - specifies the name of the attribute field to use as the elevation value for the features
in the file.
• AREA_TYPE - specifies the name of the Global Mapper type to use for area features imported from
the file.
• LINE_TYPE - specifies the name of the Global Mapper type to use for line features imported from
the file.
• POINT_TYPE - specifies the name of the Global Mapper type to use for point features imported from
the file.
• LAYER_DESC - specifies a description to use for the layer when displaying it in the Overlay Control
Center. This overrides the default description based on the filename or other information within the
file.
• GCP - specifies a single ground control point for use in rectifying a file. The GCP record consists of 5
comma-delimited fields, the control point name, the pixel X and Y coordinates, and the corresponding
ground X and Y coordinates. A separate GCP parameter and value should be used for each control
point used in the rectification. As an alternative, the GCP_FILENAME parameter (see below) can be
used instead.
• GCP_FILENAME - specifies the name of a control point file used to rectify the file being imported.
• GCP_PROJ_NAME - specifies the name of the projection that the ground control points are provided
in. This name must have been defined with a prior DEFINE_PROJ command. Use this if you want to
specify control points in a projection other than what you want to define as the native projection for
the file. Note that you must also explicitly specify the name projection of the file using either the
PROJ_NAME, PROJ_EPSG_CODE or PROJ_FILENAME parameters.
• GCP_PROJ_FILENAME - specifies the name of the projection (.prj) file that contains the projection
definition for the projection that the ground control points are provided in. Use this if you want to
specify control points in a projection other than what you want to define as the native projection for
the file. Note that you must also explicitly specify the name projection of the file using either the
PROJ_NAME, PROJ_EPSG_CODE or PROJ_FILENAME parameters.
• GCP_PROJ_EPSG_CODE - specifies the EPSG code of the projection that the ground control points
are provided in. Use this if you want to specify control points in a projection other than what you want
to define as the native projection for the file. Note that you must also explicitly specify the name
projection of the file using either the PROJ_NAME, PROJ_EPSG_CODE or PROJ_FILENAME
parameters.
• RECTIFY - specifies the rectification method to use for rectifying this file. Valid value are LINEAR,
HELMERT, AFFINE, POLYNOMIAL, and TRIANGULATION. If you do not specify a rectification
type but do provide at least two ground control points, best rectification method will automatically be
chosen based on the number of control points specified.
• ALLOW_SELECTION - set to NO to disable selection of features from this layer using either the Feature
Info or Digitizer Tools.
IMPORT_ARCHIVE
The IMPORT_ARCHIVE command imports a data file from a .tar.gz archive for later use. The only time
you should ever need to use the IMPORT_ARCHIVE command is when you only want to load some of the
data inside a .tar.gz archive. For the typical case of just loading everything in an archive, use the IMPORT
command with AUTO as the value for the TYPE parameter. The following parameters are supported by the
command.
• ARCHIVE_FILENAME - full path to the archive file to load the data from
• FILENAME - filename to load from the archive
• NOTE: All other parameters that are supported by the IMPORT command are also supported by
this command.
IMPORT_ASCII
The IMPORT_ASCII command imports data from a generic ASCII text file for later use. The following
parameters are supported by the command.
CSV files with column headers in the first row, otherwise set it to NO (the default).
• PROJ_NAME - specifies the name of the projection to use for this file (this will override any
projection information stored in the file). This name must have been defined with a prior
DEFINE_PROJ command.
• PROJ_FILENAME - specifies the name of the projection (.prj) file to use for this file (this will
override any projection information stored in the file).
• PROJ_EPSG_CODE - specifies the numeric EPSG projection code that defines the projection for
this file (this will override any projection information stored in the file). For example, use
PROJ_EPSG_CODE=26715 to define a UTM zone 15 projection with NAD27 as the datum and
meters as the units.
• PROMPT_IF_PROJ_UNKNOWN - set to NO if you don't want the user to be prompted to select a
projection if the projection of the file cannot be automatically determined.
• ELEV_UNITS - specify elevation units to use for this file if it contains gridded elevation data
♦ FEET - export in US feet
♦ DECIFEET - export in 10ths of US feet
♦ METERS - export in meters
♦ DECIMETERS - export in 10ths of meters
♦ CENTIMETERS - export in centimeters
• SKIP_COLUMNS - specifies the number of columns (fields) to skip at the start of a coordinate line
before trying to read the coordinates. For example, if the X and Y coordinates of a line were in the
3rd and 4th columns of the coordinate line, you'd use a value of SKIP_COLUMNS=2. The default
value is 0, meaning that coordinates must be in the first two columns.
• SKIP_ROWS - specifies the number of rows to skip at the start of a file before trying to read any
data. For example, if your file has a fixed header of 20 lines, you would use SKIP_ROWS=20 to
skip those header rows.
• COORD_OFFSET - specifies the offset to apply to any coordinates read in from the file. This
offset will be added to each coordinate read in from the file. The offset should be specified as a
comma-delimited list of the X, Y, and Z offsets, such as
COORD_OFFSET=100000.0,200000.0,0.0
• COORD_SCALE - specifies the scale factor to apply to any coordinates read in from the file. Each
coordinate will be multiplied by these scale factor after being read in from the file. The scale
factors should be specified as a comma-delimited list of the X, Y, and Z scale factors, such as
COORD_SCALE=0.1,0.1,1.0
• NO_DATA_DIST_MULT - specifies how far from an actual data point a grid cell has to be before
it is treated as a no data value. This number is given as a multiple of the diagonal size of a single
grid cell as nominally determined by the gridding algorithm or specified with the SPATIAL_RES
parameter. A value of 0 means that all points should be considered as valid.
• SPATIAL_RES - specifies spatial resolution to use when generating an elevation grid from the
data. Defaults to a good value for maintaining the full spatial resolution of the provided point data
if not specified. Should be formatted as x_resolution,y_resolution. The units are the units of the
projection specified for the file. For example, if UTM with meter units was the file projection and
you wanted to export at 30 meter spacing, the parameter/value pair would look like
SPATIAL_RES=30.0,30.0.
• LABEL_FIELD - specifies the name of the attribute field to use as the label attribute for the
features in the file.
• AREA_TYPE - specifies the name of the Global Mapper type to use for area features imported
from the file.
• LINE_TYPE - specifies the name of the Global Mapper type to use for line features imported from
the file.
• POINT_TYPE - specifies the name of the Global Mapper type to use for point features imported
from the file.
• HIDDEN - set to YES to cause this overlay to be hidden from view after it is loaded. The default is
to show the overlay.
SAMPLE:
IMPORT_DIR_TREE
The IMPORT_DIR_TREE command imports all of the data files in a given directory tree that match a list
of filename masks. The following parameters are supported by the command. In addition, all of the display
option parameters for the IMPORT command are also supported for this command.
SAMPLE:
IMPORT_TERRASERVER
The IMPORT_TERRASERVER command imports a chunk of TerraServer data, such as satellite imagery
or topographic maps. The following parameters are supported by the command:
The LOAD_PROJECTION command imports a projection from a PRJ file and makes it the current global
projection. This projection will be used for all exports after this command until another
LOAD_PROJECTION command is encountered to change the global projection. The following parameters
are supported by the command:
LOAD_STYLE_FILE
The LOAD_STYLE_FILE command load a Global Mapper Style (.gm_style) file containing style
definitions for a list of types. You can optionally choose to have any types specified in the style file that
aren't present in the running instance of Global Mapper to be added, providing a script way to add new
custom types. The following parameters are supported by the command:
LOAD_TYPE_FILTER
The LOAD_TYPE_FILTER command load a type filter from a Global Mapper Filter (GMF) file. You can
create new GMF files from the type filter dialogs accessible from the Vector Display tab of the
Configuration dialog. The following parameters are supported by the command:
PLAY_SOUND
The PLAY_SOUND command plays either the information sound for the system or a specified sound file.
This can be useful if you want audible confirmation when a script completes. The following parameters are
supported by the command.
• FILENAME - full path to sound file (like .wav) to play. If not specified the information beep will
play.
The RESTORE_LAST_SAVED_VIEW command restores the last view saved with the
SAVE_CURRENT_VIEW command (or the last view saved with the View->Save Current View menu
command in the Global Mapper user interface). This command does not take any parameters.
SAVE_CURRENT_VIEW
The SAVE_CURRENT_VIEW command saves the current view window for later restoration using the
RESTORE_LAST_SAVED_VIEW command. This command does not take any parameters.
SAVE_PROJECTION
The SAVE_PROJECTION command saves the current global projection to a PRJ file. The following
parameters are supported by the command.
SET_BG_COLOR
The SET_BG_COLOR command sets the color to use for any background pixels when rendering layers.
The following parameters are supported by the command.
• COLOR - specifies the background color to use. The color should be specified as
RGB(<red>,<green>,<blue>). For example, to make white the background color, use
COLOR=RGB(255,255,255).
SET_LOG_FILE
The SET_LOG_FILE command sets the name of the file to log status, warning, and error messages to. If
the log file specified already exists, the messages will be appended to the end of it. The following
parameters are supported by the command.
SET_VERT_DISP_OPTS
The SET_VERT_DISP_OPTS command allows you to modify the options used when rendering elevation
layers, such as the shader to use, if any, as well as the lighting and water setup. The following parameters
are supported by this command:
• ENABLE_HILL_SHADING - this setting controls whether or not hill shading (i.e. lighting,
shadowing) will be done. Use YES to enable hill shading, and NO to disable hill shading.
SHOW_3D_VIEW
The SHOW_3D_VIEW command displays the 3D view window with the loaded data.
• MAXIMIZE - specifies whether or not the 3D view window should be maximized or not. Use
MAXIMIZE=YES to force the window to be maximized when displayed.
UNLOAD_ALL
The UNLOAD_ALL command unloads all currently loaded data. This command takes no parameters.
UNLOAD_LAYER
The UNLOAD_LAYER command allows you to unload all previous loaded layers with a given filename.
This is useful if you don't want to unload all previously loaded layers just to get rid of a few of them.
• FILENAME - filename of the layer to unload. If an empty value is passed in, all layers that were
created by the script, such as those from a GENERATE_CONTOURS command, will be unloaded.
You can also pass in the value 'USER CREATED FEATURES' when running a script in the
context of the main map view or loading a workspace to have the 'User Created Features' layer
unloaded. You can also pass in the full description of the loaded layer to use in case you want to
unload a layer not loaded from a file.
Crop, Merge, and Reproject 4 USGS DRGs into new GeoTIFF and JPEG files
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
// Import the four 24K DRGs that we want to merge. We use the CLIP_COLLAR option
// to indicate that we want the collar to be automatically removed from the
// DRGs when they are imported.
IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094B2.TIF" \
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO
IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094A1.TIF" \
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO
IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094A2.TIF" \
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO
IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094B1.TIF" \
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO
// Use the EXPORT_RASTER command to generate a new 8-bit per pixel GeoTIFF file
EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg_8bpp.tif" \
TYPE=GEOTIFF PALETTE=OPTIMIZED
// Now, use the EXPORT_RASTER command to generate a grayscale GeoTIFF file. Lets
// also create a world file for this one
EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg_gray.tif" \
TYPE=GEOTIFF PALETTE=GRAYSCALE GEN_WORLD_FILE=YES
// Create a JPEG file using the EXPORT_RASTER command. Also create a world file
// and a projection file to make it easier to load in other places.
EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg.jpg" \
TYPE=JPEG GEN_WORLD_FILE=YES GEN_PRJ_FILE=YES
Generate Contours from all USGS DEMs in a Folder and Export them to DXF and Shape files
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
// Export the contours to a new DXF file. The created file will have
// 3D polyline features for the contours.
EXPORT_VECTOR FILENAME="%DIR%%FNAME_WO_EXT%_CONTOURS.DXF" TYPE=DXF GEN_PRJ_FILE=YES
GLOBAL_MAPPER_SCRIPT VERSION=1.00
// Assign the type "railroad" to all features with a CFCC attribute with a value of A41
// and a display label with '74' in it somewhere.
ASSIGN_TYPE LINE_TYPE="RAILROAD" COMPARE_STR="CFCC=A41" COMPARE_STR="<Feature Name>=*74*"
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 234
Global Mapper User's Manual
BUILT-IN AREA TYPES, FILL PATTERNS AND BORDER STYLES
This section reviews the area, line and point styles built into Global Mapper.
• Area Styles
♦ Area Types
♦ Area Fill Patterns
♦ Area Border Styles
Area Styles
Using the Area Styles panel users can configure how areas of a given type will be displayed in Global
Mapper. Area fill, border style and color can be modified on a type-by-type basis. The Show Labels for Areas
of This Type option allows users to turn area labels off on a type-by-type basis.
Area Types are shown in the Global Mapper Area Types table. Tables showing the Global Mapper Fill
Patterns and Border Styles follow the Area Types table.
Global Mapper recognizes five field attributes as containing information for the display appearence of an Area
Type. They are:
GM_TYPE=
BORDER_COLOR=
BORDER_WIDTH=
BORDER_STYLE=
FILL_COLOR=
FILL_STYLE=
The "FILL_ALPHA=" field attribute is recognized by Global Mapper to set an Area Type's transparency.
Values for "FILL_ALPHA=" range from 0 (Transparent) to 255 (Opaque). To determine the transparency
value setting simply multiply the percentage by 255 and round off to the nearest integer (e.g. 75%
transparency 0.75 x 255 = 191.25, use 191).
As an example, the default field attributes for the Anchorage Area Type are:
GM_TYPE=Anchorage Area
BORDER_COLOR=RGB(255,0,255)
BORDER_WIDTH=1
BORDER_STYLE=Comb (Right Only)
FILL_COLOR=RGB(255,0,255)
FILL_STYLE=No Fill
To change the type's transparency to 35% the FILL_ALPHA field attribute value should be set equal to 89
(0.35 x 255 = 89.25).
GM_TYPE=Anchorage Area
BORDER_COLOR=RGB(255,0,255)
BORDER_WIDTH=1
BORDER_STYLE=Comb (Right Only)
FILL_COLOR=RGB(255,0,255)
FILL_STYLE=No Fill
FILL_ALPHA=89
Area Types
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 235
Global Mapper User's Manual
Global Mapper's View --> Background Color... color designation influences which areas can be seen. Any
area whose color is the same as the Global Mapper Backgrond Color will not be seen. Example, for a white
Background Color (RGB 255,255,255), the Snow or Glacier Area will not be visible.
Comb
Anchorage
No Fill 0,0,0 1 (Right 0,0,0
Area
Only)
County
No Fill 0,0,0 2 Solid 128,128,128
Subdivision
Intermittent
Dry Lakebed Water 132,130,255 1 Null 0,0,0
Pattern
Intermittent
Intermittent
Water 132,130,255 1 Null 0,0,0
Lake
Pattern
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 236
Global Mapper User's Manual
Intermittent
Intermittent
Water 132,130,255 1 Null 0,0,0
Stream/River
Pattern
Lake, 0.5 - 1
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Lake, 1 - 5 sq.
Solid Fill 0,0,211 1 Null 0,0,0
mi.
Lake, 10 - 30
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 237
Global Mapper User's Manual
Lake, 30 - 100
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Lake, 5 - 10 sq.
Solid Fill 0,0,211 1 Null 0,0,0
mi.
Lake,
Solid Fill 0,0,211 1 Null 0,0,0
Unknown Area
Large Metro
Solid Fill 255,247,181 1 Null 0,0,0
Area
Major National
Solid Fill 0,235,0 1 Null 0,0,0
Park
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 238
Global Mapper User's Manual
Major State
Solid Fill 0,235,0 1 Null 0,0,0
Park
Comb
Marine Info
No Fill 255,0,255 1 (Right 255,0,0
Area
Only)
Backwards
Marine Traffic
Diagonal 255,0,255 1 Solid 0,0,0
Area
Cross-Hatch
Horizontal
Measurement 255,0,0 5 Striped 255,255,0
Hatch
Misc.
Manmade Solid Fill 255,64,64 1 Null 0,0,0
Structure
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 239
Global Mapper User's Manual
Orchard or
Solid Fill 255,128,0 1 Null 0,0,0
Plantation
Diagonal
Scrub Area 0,128,128 1 Null 0,0,0
Cross-Hatch
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 240
Global Mapper User's Manual
Small Metro
Solid Fill 255,247,181 1 Null 0,0,0
Area
Snow or
Solid Fill 255,255,255 1 Null 0,0,0
Glacier
Unclassified
No Fill 0,0,0 1 Solid 0,0,0
Area Feature
Unknown Area
No Fill 0,0,0 1 Solid 0,0,0
Type
View Shed
No Fill 0,0,0 1 Solid 0,0,0
Coverage Area
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 241
Global Mapper User's Manual
Backwards
Wooded Area Diagonal 165,145,97 1 Null 0,0,0
Cross-Hatch
No Fill
Solid Fill
Cross-Hatch
Diagonal Cross-Hatch
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 242
Global Mapper User's Manual
Horizontal Hatch
Vertical Hatch
Sand_Pattern
Intermittent_Water_Pattern
Salt_Pattern
Coral_Pattern
Black_Cross_Pattern
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 243
Global Mapper User's Manual
Black_Dot_Pattern
Solid
Dash
Dot
Dash - Dot
Null
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 244
Global Mapper User's Manual
Railroad
Striped
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 245
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 246
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 247
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 248
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 249
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 250
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 251
Global Mapper User's Manual
This section reviews the area, line and point styles built into Global Mapper.
• Line Styles
♦ Line Type Features
♦ Drawing Styles
Line Styles
Upper line shows line types normal appearance. Lower line shows how line type appears when "Display
Roads As Fat Lines When Zoomed In" option is checked and display is zoomed in.
Global Mapper's View --> Background Color... color designation influences which lines can be seen. Any line
whose color is the same as the Global Mapper Backgrond Color will not be seen. Example, for a white
Background Color (RGB 255,255,255), the Processing/Closure Line will not be visible.
Bathymetric Contour,
Solid 2 132,130,255
Intermediate
Bathymetric Contour,
Solid 1 132,130,255
Supplementary
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 252
Global Mapper User's Manual
Contour Line,
Solid 1 128,64,0
Supplementary
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 253
Global Mapper User's Manual
International Political
Solid 6 0,0,0
Boundary
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 254
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 255
Global Mapper User's Manual
Drawing Styles
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 256
Global Mapper User's Manual
Solid
Dash
Dot
Dash - Dot
Null
Railroad
Striped
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 257
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 258
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 259
Global Mapper User's Manual
BUILT-IN POINT TYPES AND SYMBOLS
This section reviews the area, line and point styles built into Global Mapper.
• Point Styles
♦ Point Type Features
♦ Symbols - Basic
♦ Symbols - Geology
Point Styles
Using the Point Styles panel users can configure what symbol will be used to display points of a given type. In
addition, the Show Labels for Points of This Type option allows a user to turn point labels off on a
type-by-type basis. The Custom Symbols section allows users to create new symbols from their own bitmap
and icon files which they can then use as the symbol to display for a given type.
Global Mapper's Point Type Features are listed in the Global Mapper Point Type Features table. Symbols are
listed in the Global Mapper Symbols table.
Global Mapper recognizes two field attributes as containing information for the display appearence of a Point
Type. They are:
GM_TYPE=Address Label
POINT_SYMBOL=Dot - Red
Airport Airport
Anchorage Marina
Arch Arch
Bank Bank
Beacon Dot
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 260
Global Mapper User's Manual
Bridge Bridge
Building School
Buoy Dot
Campground Campground
Cemetery Cemetery
Church Church
Cliff Cliff
Country Dot
County Dot
Dam Dam
Danger Dot
Geyser Geyser
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 261
Global Mapper User's Manual
Hospital Hospital
Island Dot
Landmark Dot
Library Library
Lighthouse Lighthouse
Lodging Lodging
Marina Marina
Mine Mine
Park Park
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 262
Global Mapper User's Manual
Resturant Resturant
Restrooms Restrooms
Rock Rock
School School
Shopping Shopping
Stadium Stadium
State Dot
Summit Summit
Tower Tower
Waterfall Waterfall
Waypoint Dot
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 263
Global Mapper User's Manual
Well Well
Wreck Wreck
Symbols
Airport
Amusement Center
Arch
Auto Rental
Bank
Beacon
Big Red X
Big Yellow X
Boat Ramp
Bridge
Bullseye
Campground
Cemetry
Church
Cliff
Dam
Danger Area
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 264
Global Mapper User's Manual
Deer
Dot
Dot - Blue
Dot - Green
Dot - Red
Dot - White
Dot - Yellow
Elevation Shaded
Fish
Fuel
Geyser
Golf
Hospital
Library
Lighthouse
Little Blue X
Lodging
Marina
Mine
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 265
Global Mapper User's Manual
No Symbol
Park
Phone
Picnic Area
Post Office
Resturant
Restroom
Rock
Scenic View
School
Shopping
Skiing
Spot Elevation
Stadium
Stream Origin
Summit
Swimming Area
Tower
Waterfall
Weigh Station
Well
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 266
Global Mapper User's Manual
Well - Active
Well - Active at TD
Well - Dryhole
Well - Gas
Well - Injection
Well - Location
Well - Oil
Well - Suspended
Wreck
Symbols - Geology
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 267
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 268
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 269
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 270
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 271
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 272
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 273
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 274
Global Mapper User's Manual
BUILT-IN AREA, LINE AND POINT TYPES
This section reviews the area, line and point styles built into Global Mapper.
• Area Styles
♦ Area Types
♦ Area Fill Patterns
♦ Area Border Styles
• Line Styles
♦ Line Type Features
♦ Drawing Styles
• Point Styles
♦ Point Type Features
♦ Symbols - Basic
♦ Symbols - Geology
Area Styles
Using the Area Styles panel users can configure how areas of a given type will be displayed in Global
Mapper. Area fill, border style and color can be modified on a type-by-type basis. The Show Labels for Areas
of This Type option allows users to turn area labels off on a type-by-type basis.
Area Types are shown in the Global Mapper Area Types table. Tables showing the Global Mapper Fill
Patterns and Border Styles follow the Area Types table.
Global Mapper recognizes five field attributes as containing information for the display appearence of an Area
Type. They are:
GM_TYPE=
BORDER_COLOR=
BORDER_WIDTH=
BORDER_STYLE=
FILL_COLOR=
FILL_STYLE=
The "FILL_ALPHA=" field attribute is recognized by Global Mapper to set an Area Type's transparency.
Values for "FILL_ALPHA=" range from 0 (Transparent) to 255 (Opaque). To determine the transparency
value setting simply multiply the percentage by 255 and round off to the nearest integer (e.g. 75%
transparency 0.75 x 255 = 191.25, use 191).
As an example, the default field attributes for the Anchorage Area Type are:
GM_TYPE=Anchorage Area
BORDER_COLOR=RGB(255,0,255)
BORDER_WIDTH=1
BORDER_STYLE=Comb (Right Only)
FILL_COLOR=RGB(255,0,255)
FILL_STYLE=No Fill
To change the type's transparency to 35% the FILL_ALPHA field attribute value should be set equal to 89
(0.35 x 255 = 89.25).
GM_TYPE=Anchorage Area
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 275
Global Mapper User's Manual
BORDER_COLOR=RGB(255,0,255)
BORDER_WIDTH=1
BORDER_STYLE=Comb (Right Only)
FILL_COLOR=RGB(255,0,255)
FILL_STYLE=No Fill
FILL_ALPHA=89
Area Types
Global Mapper's View --> Background Color... color designation influences which areas can be seen. Any
area whose color is the same as the Global Mapper Backgrond Color will not be seen. Example, for a white
Background Color (RGB 255,255,255), the Snow or Glacier Area will not be visible.
Comb
Anchorage
No Fill 0,0,0 1 (Right 0,0,0
Area
Only)
County
No Fill 0,0,0 2 Solid 128,128,128
Subdivision
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 276
Global Mapper User's Manual
Intermittent
Dry Lakebed Water 132,130,255 1 Null 0,0,0
Pattern
Intermittent
Intermittent
Water 132,130,255 1 Null 0,0,0
Lake
Pattern
Intermittent
Intermittent
Water 132,130,255 1 Null 0,0,0
Stream/River
Pattern
Lake, 0.5 - 1
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 277
Global Mapper User's Manual
Lake, 1 - 5 sq.
Solid Fill 0,0,211 1 Null 0,0,0
mi.
Lake, 10 - 30
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Lake, 30 - 100
Solid Fill 0,0,211 1 Null 0,0,0
sq. mi.
Lake, 5 - 10 sq.
Solid Fill 0,0,211 1 Null 0,0,0
mi.
Lake,
Solid Fill 0,0,211 1 Null 0,0,0
Unknown Area
Large Metro
Solid Fill 255,247,181 1 Null 0,0,0
Area
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 278
Global Mapper User's Manual
Major National
Solid Fill 0,235,0 1 Null 0,0,0
Park
Major State
Solid Fill 0,235,0 1 Null 0,0,0
Park
Comb
Marine Info
No Fill 255,0,255 1 (Right 255,0,0
Area
Only)
Backwards
Marine Traffic
Diagonal 255,0,255 1 Solid 0,0,0
Area
Cross-Hatch
Horizontal
Measurement 255,0,0 5 Striped 255,255,0
Hatch
Misc.
Manmade Solid Fill 255,64,64 1 Null 0,0,0
Structure
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 279
Global Mapper User's Manual
Orchard or
Solid Fill 255,128,0 1 Null 0,0,0
Plantation
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 280
Global Mapper User's Manual
Diagonal
Scrub Area 0,128,128 1 Null 0,0,0
Cross-Hatch
Small Metro
Solid Fill 255,247,181 1 Null 0,0,0
Area
Snow or
Solid Fill 255,255,255 1 Null 0,0,0
Glacier
Unclassified
No Fill 0,0,0 1 Solid 0,0,0
Area Feature
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 281
Global Mapper User's Manual
Unknown Area
No Fill 0,0,0 1 Solid 0,0,0
Type
View Shed
No Fill 0,0,0 1 Solid 0,0,0
Coverage Area
Backwards
Wooded Area Diagonal 165,145,97 1 Null 0,0,0
Cross-Hatch
No Fill
Solid Fill
Cross-Hatch
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 282
Global Mapper User's Manual
Diagonal Cross-Hatch
Horizontal Hatch
Vertical Hatch
Sand_Pattern
Intermittent_Water_Pattern
Salt_Pattern
Coral_Pattern
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 283
Global Mapper User's Manual
Black_Cross_Pattern
Black_Dot_Pattern
Solid
Dash
Dot
Dash - Dot
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 284
Global Mapper User's Manual
Null
Railroad
Striped
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 285
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 286
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 287
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 288
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 289
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 290
Global Mapper User's Manual
Line Styles
Using the Line Styles panel users can configure how lines of a given type will be displayed in Global Mapper.
The line style, width, color, and label font can be modified on a type-by-type basis. In addition, the Show
Labels for Lines of This Type option allows users to turn line labels off on a type-by-type basis.
The Display Roads As Fat Lines When Zoomed In option allows users to turn on/off the "fattening" of road
lines when zoom in tight on them.
Global Mapper's Line Types are listed in the Global Mapper Line Types table. Drawing Styles are listed in the
Global Mapper Drawing Styles table.
Global Mapper recognizes four field attributes as containing information for the display appearence of a Line
Type. They are:
GM_TYPE=Airport Runway
LINE_WIDTH=1
LINE_COLOR=RGB(0,0,0)
LINE_STYLE=Solid
The "LINE_STYLE=" field attribute can be set to any one of the 60 Drawing Styles shown in the Global
Mapper Drawing Styles table.
Line Types
Upper line shows line types normal appearance. Lower line shows how line type appears when "Display
Roads As Fat Lines When Zoomed In" option is checked and display is zoomed in.
Global Mapper's View --> Background Color... color designation influences which lines can be seen. Any line
whose color is the same as the Global Mapper Backgrond Color will not be seen. Example, for a white
Background Color (RGB 255,255,255), the Processing/Closure Line will not be visible.
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 291
Global Mapper User's Manual
Bathymetric Contour,
Solid 2 132,130,255
Intermediate
Bathymetric Contour,
Solid 1 132,130,255
Supplementary
Contour Line,
Solid 1 128,64,0
Supplementary
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 292
Global Mapper User's Manual
International Political
Solid 6 0,0,0
Boundary
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 293
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 294
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 295
Global Mapper User's Manual
Drawing Styles
Dash
Dot
Dash - Dot
Null
Railroad
Striped
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 296
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 297
Global Mapper User's Manual
Point Styles
Using the Point Styles panel users can configure what symbol will be used to display points of a given type. In
addition, the Show Labels for Points of This Type option allows a user to turn point labels off on a
type-by-type basis. The Custom Symbols section allows users to create new symbols from their own bitmap
and icon files which they can then use as the symbol to display for a given type.
Global Mapper's Point Type Features are listed in the Global Mapper Point Type Features table. Symbols are
listed in the Global Mapper Symbols table.
Global Mapper recognizes two field attributes as containing information for the display appearence of a Point
Type. They are:
GM_TYPE=Address Label
POINT_SYMBOL=Dot - Red
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 298
Global Mapper User's Manual
Airport Airport
Anchorage Marina
Arch Arch
Bank Bank
Beacon Dot
Bridge Bridge
Building School
Buoy Dot
Campground Campground
Cemetery Cemetery
Church Church
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 299
Global Mapper User's Manual
Cliff Cliff
Country Dot
County Dot
Dam Dam
Danger Dot
Geyser Geyser
Hospital Hospital
Island Dot
Landmark Dot
Library Library
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 300
Global Mapper User's Manual
Lighthouse Lighthouse
Lodging Lodging
Marina Marina
Mine Mine
Park Park
Resturant Resturant
Restrooms Restrooms
Rock Rock
School School
Shopping Shopping
Stadium Stadium
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 301
Global Mapper User's Manual
State Dot
Summit Summit
Tower Tower
Waterfall Waterfall
Waypoint Dot
Well Well
Wreck Wreck
Symbols
Airport
Amusement Center
Arch
Auto Rental
Bank
Beacon
Big Red X
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 302
Global Mapper User's Manual
Big Yellow X
Boat Ramp
Bridge
Bullseye
Campground
Cemetry
Church
Cliff
Dam
Danger Area
Deer
Dot
Dot - Blue
Dot - Green
Dot - Red
Dot - White
Dot - Yellow
Elevation Shaded
Fish
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 303
Global Mapper User's Manual
Fuel
Geyser
Golf
Hospital
Library
Lighthouse
Little Blue X
Lodging
Marina
Mine
No Symbol
Park
Phone
Picnic Area
Post Office
Resturant
Restroom
Rock
Scenic View
School
Shopping
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 304
Global Mapper User's Manual
Skiing
Spot Elevation
Stadium
Stream Origin
Summit
Swimming Area
Tower
Waterfall
Weigh Station
Well
Well - Active
Well - Active at TD
Well - Dryhole
Well - Gas
Well - Injection
Well - Location
Well - Oil
Well - Suspended
Wreck
Symbols - Geology
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 305
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 306
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 307
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 308
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 309
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 310
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 311
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 312
Global Mapper User's Manual
Global Mapper Scripting Reference - Aerial View Of Address - Aerial House View 313
Global Mapper User's Manual
Built-in Datums
The following is a list of the datums built in to Global Mapper and the transformation parameters used to
convert those datums. All parameters are given with respect to transforming from the given datum to
WGS-84.
Built-in Ellipsoids
Ellipsoid Name Semi-Major Axis (m)
ATS77 6378135.000
Airy 6377563.396
Australian National 6378160.000
Bessel (Modified) 6377492.018