loading only some part of large map files
Comments
-
You can choose what portion of a map to display simply by providing an appropriate bounding box to the GM_DrawLayerList function. If you pass NULL for the bounding box then all loaded data will be displayed, so you'll want to actually setup a boundign box with your area of interest. The C++ sample application included with the SDK demonstrates how to do this to pan and zoom the map.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
ok
but i want actually "Load" one portion of Large files .
i think this solution "Display" one portion afetr loading hole file !
thanks a lot -
There is not a way to just load a particular portion of a file, but since Global Mapper doesn't read an entire file into memory in most cases (like ECW), there really wouldn't be any point in loading just a portion of a file anyway as there really wouldn't be any difference.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Tanks Mike
Can we found that Global Mapper do this with which types of Map Files ?
or Know when do this ?
or We force it to do this ? (according to the memory size or other thinks ... ) -
There really isn't any support for loading just parts of a map for any formats. For pretty much any raster format Global Mapper will read from disk as needed (with some in-memory caching) rather than keep the entire thing in memory. For those formats that don't support something like that (i.e. JPG, PNG, etc.), large images will be decompressed to disk and read on-demand from a temporary file to avoid excessive memory usage.
So for the most part Global Mapper will automatically handle things to keep memory usage under control. You just need to control which part of the loaded map that you draw.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website