Global Mapper v24.0

Order of operations for .MP compile script

MorganRS
MorganRS Global Mapper UserTrusted User
edited January 2015 in GM Script Language
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:

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

  • MorganRS
    MorganRS Global Mapper User Trusted User
    edited January 2015
    Nevermind, I figured it out
Sign In or Register to comment.