Scripting Language: Import GMW files...

michelstosmichelstos Global Mapper UserPosts: 1
edited August 2012 in Technical Support
I'm learning to use the Scripting Language in GM. However, I need a function that does not find. I need to make a simple script to import files in GMW, and in export to TIF...

Have managed to import other types of "physical files", but I need to import this GMW, which is a "project file", containing only an image in jpg and georeferencing (ground points)....

Any help? How can I fix this?
I have about 150 .... jpg files with their respective GWM. I do not want to manually ....
Sorry about my english. I´m brazilian....

My script is, some like that...
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL

// Loop over all GMW files in a folder and convert them...
DIR_LOOP_START DIRECTORY="C:\Teste\" FILENAME_MASKS="*.GMW" RECURSE_DIR=NO

// Import an archived GMW file...
IMPORT FILENAME="%FNAME_W_DIR%" ANTI_ALIAS=YES

// Export the raster to a new TIF file...
EXPORT_RASTER FILENAME="%DIR%%FNAME_WO_EXT%_GE.TIF" TYPE=GEOTIFF PALETTE=JPG

// End the loop
DIR_LOOP_END
Sign In or Register to comment.