13.11.2012 Views

Map GPS Coordinates - GPS Map Coordinates ... - Global Mapper

Map GPS Coordinates - GPS Map Coordinates ... - Global Mapper

Map GPS Coordinates - GPS Map Coordinates ... - Global Mapper

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The DEFINE_VAR command allows you to define a variable and an associated value. You can then use the<br />

defined variable name later wrapped in percent signs to have the defined value replaced in the script. This is<br />

useful for things like defining a path or something at the top of a script that you can easily change in just one<br />

place later.<br />

The following parameters are required by the DEFINE_VAR command.<br />

• NAME - specifies the variable name<br />

• VALUE - specifies the variable value<br />

Here is an example of a DEFINE_VAR command used to define a directory path for later use and then its<br />

subsequent use:<br />

DEFINE_VAR NAME="DATA_DIR" VALUE="c:\temp\export test"<br />

IMPORT FILENAME="%DATA_DIR%\blue_springs.opt"<br />

DIR_LOOP_END<br />

The DIR_LOOP_END command ends a loop of commands over all of the folders within a directory. See the<br />

DIR_LOOP_START command for details.<br />

DIR_LOOP_START<br />

<strong>Global</strong> <strong>Map</strong>per User's Manual<br />

The DIR_LOOP_START command begins a loop of commands over all of the folders within a directory (and<br />

optionally its subdirectories) that match one or more filename masks. This is a powerful feature allowing you<br />

to do things like easily batch convert a collection of files or perform any other supported operation over a<br />

collection of files. You end a loop over the files in a folder using the DIR_LOOP_END command. Note that it<br />

is also possible to nest loops.<br />

For any commands found within a DIR_LOOP_START...DIR_LOOP end pair defining a loop, the following<br />

special character sequences can be used anywhere (examples of what the values will be based on a current<br />

filename of 'C:\data\my_file.dem' are listed):<br />

• %DIR% - full path to current file (value is 'C:\data\')<br />

• %FNAME_W_DIR% - full path and filename of current file (value is 'C:\data\my_file.dem')<br />

• %FNAME% - filename of current file (value is 'my_file.dem')<br />

• %FNAME_WO_EXT% - filename of current file without extension (value is 'my_file')<br />

• %PARENT_DIR% - name of parent directory of file (value is 'data')<br />

For a sample of the DIR_LOOP_START command in use, see the example at the bottom of this reference.<br />

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

• DIRECTORY - specifies the directory to search for files in. If you leave this blank, the operation will<br />

be based in the current folder.<br />

• FILENAME_MASKS - space-separated list of filename masks to import. If no value is provided then<br />

all files will be used.<br />

<strong>Map</strong> <strong>GPS</strong> <strong>Coordinates</strong> - <strong>GPS</strong> <strong>Map</strong> <strong>Coordinates</strong> - <strong>GPS</strong><strong>Coordinates</strong> <strong>Map</strong> 212

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

Saved successfully!

Ooh no, something went wrong!