mGlobalRect for multiple loaded layers
Mike,
Is there any easy way to grab mGlobalRect values (obtained from GM_GetLayerInfo) when you have multiple layers loaded? I want to just grab a global bounds of all layers.
Thoughts?
Brian
Is there any easy way to grab mGlobalRect values (obtained from GM_GetLayerInfo) when you have multiple layers loaded? I want to just grab a global bounds of all layers.
Thoughts?
Brian
Comments
-
Brian,
Just spin through all of the layers and form a union of all of the mGlobalRect values. The GM_MapWindow::ZoomToAllLayers() function in the C++ sample app does this.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Mike,
Yep - just wanted to make sure I wasn't missing something easy that you already built-in.
I see your c++ example with the min/max ternaries, good enough for me! thanks.
Brian
Categories
- 12.5K All Categories
- 5.5K Features Discussion
- 314 Downloading Imagery
- 1.3K Elevation Data
- 377 Georeferencing Imagery Discussion
- 611 GM Script Language
- 50 User Scripts
- 112 GPS Features
- 397 Projection Questions
- 805 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 161 Announcement and News
- 893 Bug Report
- 557 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 546 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 230 How I use Global Mapper
- 104 Global Mapper Forum Website