open specific file in a zipfile using SDK library
I try to load a specific file from a zipfile using GM_LoadLayerListEx. I know it's possible by script but I don't know how to write it using C++ library. My example is this one :
GM_LoadLayerlistEx("D:/xxxx.zip", &listlayers, &nb_layers, GM_LoadFlags_UseDefaultProj, "FILENAME='xxx.tif'")
But it doesn't work, I think "filename" isn't recognized.
I can load everything and after close some layers but it's not really optimized. Any help would be appreciated! Thanks
GM_LoadLayerlistEx("D:/xxxx.zip", &listlayers, &nb_layers, GM_LoadFlags_UseDefaultProj, "FILENAME='xxx.tif'")
But it doesn't work, I think "filename" isn't recognized.
I can load everything and after close some layers but it's not really optimized. Any help would be appreciated! Thanks
Tagged:
Answers
-
Hello,
If you are able to get it working in a script, you can use the GM_RunScript() API function to run your script and load the file from your zip archive.
Cheers,
Bob -
OK, thank you for your answer Bob!
Categories
- 12.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 834 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 935 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website

