Problems with GM_LoadLayerList and VMAP data
Eylon Shachar
Global Mapper User
Hi
We are using Global Mapper SDK (version 12) to convert GIS data in standard formats to our system run-time format.
The conversion process is automatic, whenever the user copy new files they are automatically converted.
In order to load the data we are using GM_LoadLayerList function.
The problem is that when we are loading data in VMAP format the function opens a dialog window where the user is asked to choose the type of data he wants to load, by default all the available types are marked.
Since it is an automatic process there is no one to press O.K and the process stops.
In the aLoadFlags parameter of the function I tried to put GM_LoadFlags_HideAllPrompts but it didn’t help.
Is there a solution for that?
Thanks
Eylon
prompt.PNG
We are using Global Mapper SDK (version 12) to convert GIS data in standard formats to our system run-time format.
The conversion process is automatic, whenever the user copy new files they are automatically converted.
In order to load the data we are using GM_LoadLayerList function.
The problem is that when we are loading data in VMAP format the function opens a dialog window where the user is asked to choose the type of data he wants to load, by default all the available types are marked.
Since it is an automatic process there is no one to press O.K and the process stops.
In the aLoadFlags parameter of the function I tried to put GM_LoadFlags_HideAllPrompts but it didn’t help.
Is there a solution for that?
Thanks
Eylon
prompt.PNG
Comments
-
Eylon,
Yes, what you can do is use GM_LoadLayerListEx instead and in the aExtraLoadOptions string parameter pass "COVERAGES=\"*\"". This will say that you want to use all coverages and it won't show the prompt. If you want to filter the coverages automatically provide a comma-delimited list of coverages to use.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
It works
Thanksglobal_mapper wrote: »Eylon,
Yes, what you can do is use GM_LoadLayerListEx instead and in the aExtraLoadOptions string parameter pass "COVERAGES=\"*\"". This will say that you want to use all coverages and it won't show the prompt. If you want to filter the coverages automatically provide a comma-delimited list of coverages to use.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
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