Progress Bar for Scripted Export Actions?
Hi,
I am brand new to the forums and scripting within GM, but have been using GM for the past 4 years. Recently after a training session with Mr. Dave McKittrick, I started tooling around with scripting some actions we do repeatedly with GM. We are always exporting Raster data as GeoTIFFs and ECWs. So this is where I started.
My question is, does anyone know if it is possible to display a progress bar during an export when running a process from a script? An example would be if I set up a script to export an ECW, GM will just churn it out in the background but no one will know when it will finish or how far it is in the process. I noticed that if I open GM and run the script via the menu and have it 'Run Script in the context of the main view' it will show me the necessary progress bars, but if I am scripting it is usually because I am trying to streamline things and dont want to have to open an instance of GM to run the script.
Any ideas? Let me know if my question needs clarification. Sorry, I am new here. Cheers!
I am brand new to the forums and scripting within GM, but have been using GM for the past 4 years. Recently after a training session with Mr. Dave McKittrick, I started tooling around with scripting some actions we do repeatedly with GM. We are always exporting Raster data as GeoTIFFs and ECWs. So this is where I started.
My question is, does anyone know if it is possible to display a progress bar during an export when running a process from a script? An example would be if I set up a script to export an ECW, GM will just churn it out in the background but no one will know when it will finish or how far it is in the process. I noticed that if I open GM and run the script via the menu and have it 'Run Script in the context of the main view' it will show me the necessary progress bars, but if I am scripting it is usually because I am trying to streamline things and dont want to have to open an instance of GM to run the script.
Any ideas? Let me know if my question needs clarification. Sorry, I am new here. Cheers!
Tagged:
Answers
-
Progress bars are always suppressed when running a script from the command line, but there is no reason that couldn't be optional. I have opened feature request #17288 so we can evaluate allowing progress bars to be displayed during a command-line script. We will post a message on this thread when the status of the feature request changes.
What version of Global Mapper are you using? New features are always added to the current version (Global Mapper 17 at the moment.) -
Currently using GM 17. Thanks so much for the response!
-
I have added a new command line parameter that you can use when running a script. Add /showprogress to your command line after the name of the script file if you want to see progress bars. If the command line does not include that parameter, then no progress bars will be displayed.
Example:"C:\Program Files\GlobalMapper17_64bit\global_mapper.exe" "C:\Scripts\export.gms" /showprogress
I have placed new builds with the latest changes at http://data.bluemarblegeo.com/downloads/global-mapper/dailybuilds/. Simply download the appropriate installer and run it to install the latest build.
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website