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
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