Order of operations for .MP compile script

MorganRS
Global Mapper UserTrusted User
I've been fighting this script for a while now and could use some fresh eyes to help me with the order of operations I need. Here's what I'm trying to accomplish with this script.
I want GM to load all files in directory with the .shp extension. Then export into .mp format, tiled out at 0.25,0.25 arc degrees, using a template file that I specify, copying the draw order info from the template into each tile created so they will compile correctly and merge together with the same draw orders at a later time.
Here's where I'm at:
It is loading, tiling, and naming them correctly, but when I open one of the tiles in a text editor, the heading is missing from the tiles, so it is not using the template file.
Are my order of operations correct?
Thanks
I want GM to load all files in directory with the .shp extension. Then export into .mp format, tiled out at 0.25,0.25 arc degrees, using a template file that I specify, copying the draw order info from the template into each tile created so they will compile correctly and merge together with the same draw orders at a later time.
Here's where I'm at:
GLOBAL_MAPPER_SCRIPT VERSION=1.00//Create log file for session
SET_LOG_FILE FILENAME="K:\PNW\CGPSRUN\PNW_script.log"
IMPORT_DIR_TREE DIRECTORY="K:\PNW\SHP" FILENAME_MASKS="*.shp"
EXPORT_VECTOR FILENAME=K:\PNW\PNW.mp TYPE=POLISH_MP GRID_TYPE_CELL_SIZE="0.25,0.25" OVERWRITE_EXISTING=NO TEMPLATE_FILENAME=K:\PNW\CGPSRUN\dict-SMAv27_1629.mp MP_COPY_ENTIRE_TEMPLATE \
MAP_NAME="PNW" //
PLAY_SOUND FILENAME="C:\Windows\Media\beverage.wav"
It is loading, tiling, and naming them correctly, but when I open one of the tiles in a text editor, the heading is missing from the tiles, so it is not using the template file.
Are my order of operations correct?
Thanks
Comments
-
Nevermind, I figured it out
Howdy, Stranger!
Categories
- 12.3K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 581 GM Script Language
- 42 User Scripts
- 112 GPS Features
- 388 Projection Questions
- 789 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 522 Other Discussion
- 126 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 100 Global Mapper Forum Website