Export of .gmg Elevation Grids: Resampling bug

sonny
Global Mapper UserTrusted User
in Bug Report
Hello!
I think I probably found a bug if working with .gmg Elevation grid files and exporting them using resampling into another grid spacing.
I'm opening a .gmg Elevation grid file and exporting it via "Export Elevation Grid format" into a new Elevation file (for example Global Mapper Grid or GeoTIFF). I want to downsample the source file by a factor of 10 using Bilinear resampling.
example: source file = 10 x 10 meter samples, exported file = 100 x 100 meter samples.
No reprojection takes place, since projection source file = projection exported file.
Since the center of each elevation pixel of the exported grid is exactly at the locaction of the center of an elevation pixel of the source file, both elevation values should be exactly the same. No matter if i'm using "nearest neighbor", "bilinear" or "bicubic" interpolation. In the case of "bilinear" or "bicubic" the value should just differ if both pixel's center's are not exactly at the identical location, for example if a reprojection took place.
But GM by mistake creates new, artificial values for that exported grid pixels. Not only differnet but also wrong. Meaning the elevation value of the 100 x 100 grid is sometimes far different from the values of the underlying 10 x 10 grid.
But GM by mistake creates new, artificial values for that exported grid pixels. Not only differnet but also wrong. Meaning the elevation value of the 100 x 100 grid is sometimes far different from the values of the underlying 10 x 10 grid.
What I noticed:
- problem just occurs if resampling factor is >= 6 (e.g. source = 10m grid, export = 60 m grid). If exporting with a factor <= 5 (e.g. source = 10m, export = 50m grid) than there's no problem, elevation value's stay the same as in the source file.
- just if source file is a .gmg-file. No problem if source file is GeoTIFF or other. Problem independed of fileformat of exported file.
- problem just occurs if using resample methods "bilinear" and "bicubic". Not if using "Nearest neighbor"
Tagged:
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 829 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 179 Announcement and News
- 922 Bug Report
- 559 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 573 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website