View GM_LayerInfo_t in the GM GUI
Mike,
I'm trying to use the GUI to help validate some math I'm doing via the SDK. Suppose I have a south on my mGlocalRect from the SDK that shows me a value of "20898.489320809844". Where can I see these values in the GUI? If I go to export elevation, I see on the Export Bounds tab, there seems to be values that are "close" filled in to the Global Projection boxes in the middle, but they are not exact (they seem a tad smaller?) - for example, South in the GUI box there says "20897.2389357141".
Is there any way to cross-validate in the GUI the values returned from GM_LayerInfo_t? I ask this because while doing my own gridding, I'm running into some precision rounding issues that I'm trying to alleviate - and I need to start with making sure my boundaries are at least consistent (I don't care about very precise values right now, just consistency).
Brian
I'm trying to use the GUI to help validate some math I'm doing via the SDK. Suppose I have a south on my mGlocalRect from the SDK that shows me a value of "20898.489320809844". Where can I see these values in the GUI? If I go to export elevation, I see on the Export Bounds tab, there seems to be values that are "close" filled in to the Global Projection boxes in the middle, but they are not exact (they seem a tad smaller?) - for example, South in the GUI box there says "20897.2389357141".
Is there any way to cross-validate in the GUI the values returned from GM_LayerInfo_t? I ask this because while doing my own gridding, I'm running into some precision rounding issues that I'm trying to alleviate - and I need to start with making sure my boundaries are at least consistent (I don't care about very precise values right now, just consistency).
Brian
Comments
-
Brian,
If you select a layer in the Control Center and press the Metadata button that will give you most of the same values that are in GM_LayerInfo_t.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Mike,
Yes - that's what I was looking for, thanks - HOWEVER
That gives me an even different number for the same Coord (even less precision): Lower Right Y - 20898.776.
Is there a better way to reconcile all of these precisions? Now I have the SDK telling me 20898.489320809844 and Metadata saying 20898.776 (those are in meters). I realize they are not off by THAT much, but when dealing with bounds in gridding I am trying to make sure I do not grid "out of bounds" and end up with 0 elevations. Thoughts?
Brian -
Brian,
The text metadata dialog will round the coordinates for display rather than showing a bunch of meaningless precision. The GM_LayerInfo_t of course has the full double-precision value. However there will be a difference for elevation in that the layer info would have the outer edge of the cells and the metadata reports the cell centers. For imagery layers they are the same.
If you do it programmatically, just use the bounds right from the GM_LayerInfo_t.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation -
Mike,
Thanks - I understand the metadata reporting the cell centers, makes perfect sense. Thought I wouldn't call the precision "meaningless". I vote to have full precision listed somewhere in the GUI and possibly even to have some identifier saying its from the cell center for elevation (I can't think of an ELEGANT way to show that, but it would be nice in future versions).
Either way, I now know what the deal is - so this works for me, thank you!
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
- 803 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
- 542 Other Discussion
- 128 GIS Data Sources
- 26 Global Mapper Showcase
- 229 How I use Global Mapper
- 104 Global Mapper Forum Website