Accessing Raw Raster Layer Data
Hi
I am planning to use the SDK to develop custom tools and interface for filtering/editing elevation data. I am using Windows WPF, I have the framework in place for the tools I want and am able to load/display/save raster data using the SDK. However, I do not see a GM function to provide direct access to the underlying layer data before rendering. Any suggestions?
Thanks in advance
Tim
I am planning to use the SDK to develop custom tools and interface for filtering/editing elevation data. I am using Windows WPF, I have the framework in place for the tools I want and am able to load/display/save raster data using the SDK. However, I do not see a GM function to provide direct access to the underlying layer data before rendering. Any suggestions?
Thanks in advance
Tim
Comments
-
Tim,
For raster image data you can use the GM_GetPixelColor or GM_GetPixelColorRow functions to get at the raw pixel color data. There is not a method for getting right at the entire color array as most raster formats aren't simply read into memory in Global Mapper but instead streamed from disk as needed and cached in chunks for performance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Blue Marble Geographics for Coordinate Conversion, Image Reprojection and Vector Translation
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 825 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 912 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