13.11.2012 Views

Open Printable/Searchable Copy - Global Mapper

Open Printable/Searchable Copy - Global Mapper

Open Printable/Searchable Copy - Global Mapper

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UNLOAD_ALL<br />

The UNLOAD_ALL command unloads all currently loaded data. This command takes no parameters.<br />

The following parameters are supported by the command:<br />

• VECTOR_ONLY - specifies that only layers containing vector data shall be unloaded. All raster and<br />

gridded elevation layers will remain loaded. Use VECTOR_ONLY=YES to enable unloading just the<br />

vector layers.<br />

UNLOAD_LAYER<br />

The UNLOAD_LAYER command allows you to unload all previous loaded layers with a given filename.<br />

This is useful if you don't want to unload all previously loaded layers just to get rid of a few of them.<br />

The following parameters are supported by the command:<br />

• FILENAME - filename of the layer to unload. If an empty value is passed in, all layers that were<br />

created by the script, such as those from a GENERATE_CONTOURS command, will be unloaded.<br />

You can also pass in the value 'USER CREATED FEATURES' when running a script in the context<br />

of the main map view or loading a workspace to have the 'User Created Features' layer unloaded. You<br />

can also pass in the full description of the loaded layer to use in case you want to unload a layer not<br />

loaded from a file.<br />

VAR_LOOP_END<br />

The VAR_LOOP_END command ends a loop of commands over a range of numeric values. See the<br />

VAR_LOOP_START command for details.<br />

VAR_LOOP_START<br />

<strong>Global</strong> <strong>Mapper</strong> User's Manual<br />

The VAR_LOOP_START command begins a loop of commands over a range of numeric values or through a<br />

sequence of characters. This can be used as a simple counter or for more powerful things like custom gridding<br />

using coordinate values and naming exported files using the coordinates. Note that it is possible to nest loops<br />

and use different variable names for each loop to build complex filenames.<br />

For any commands found within a VAR_LOOP_START...VAR_LOOP_END pair defining a loop, the<br />

current value of the loop variable will be available as a variable name. By default this will be %COUNTER%,<br />

but you can use the VAR_NAME parameter (see below) to make it whatever name that you want. By default<br />

some generic numeric formatting will be provided (i.e. whole numbers won't have a decimal or any leading<br />

0's), but you can also provide custom formatting for the numeric value as a C-style format string like you<br />

would pass to a printf command using the VAL_FORMAT parameter (see below for details).<br />

The following parameters are used by the VAR_LOOP_START command.<br />

Table of Contents 300

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!