Global Mapper v25.0

help with scripting - IMPORT FILENAME=variable

benkelman
benkelman Global Mapper User
edited March 2008 in Technical Support
Sorry if I should have been able to resolve this on my own, but I can't seem to find what I need.

I need to process a batch of KML files, but haven't found a way to either
a) call "Batch Convert/Reproject" from a script, or
b) pass in "inputfilename" as a variable.

The only solution I can think of is to build an external script (DOS, Python, PERL) that copies each input file to "temp.KML", then call a GMS script that reads & processes "temp.KML" to output "temp.SHP", then use my external script to rename "temp.SHP" before proceeding.

Am I missing a tutorial or FAQ that addresses this?

Thanks
Cody Benkelman

Comments

  • global_mapper
    global_mapper Administrator
    edited March 2008
    Cody,

    You aren't missing anything, the GM scripting language does not have any support for variables, so your approach of creating an external script to do the copying as you describe is the best approach. Or you could create an external script to generate a single Global Mapper script to do all of the conversions that you want all at once.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com