Export Elevation Data using SDK with Nearest Neighbor Sampling
I was wondering if there was a way to specify the resampling algorithm when exporting elevation data using the SDK. I can do it using the GUI application, but the only option I can see in the documentation regarding resampling or interpolation deals with the layer properties.
Answers
-
There is not currently a way to specify non-default export resampling in the SDK, but I have made todo item GMSDK-285 to add this functionality, likely for the next release. What you could do now is spin through all loaded layers and explicitly set the resampling method for each layer to what you want for the export, then that method should be what is used as the export will detect the layer is using a non-default resampling method already.
Thanks,
Mike
Global Mapper Guru
geohelp@bluemarblegeo.com
-
The only way I see for setting anything with regards to interpolation is the "GM_DrawFlags_NoAutoInterpolation" flag in the DrawFlags. Is that what I set?
-
You would use GM_GetRasterDisplayOptions to get the current settings for the layer, then change the mSamplingMethod for the layer, then call GM_SetRasterDisplayOptions to update the sampling method for the layer.
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