Comparing 32 bit and 16 bit elevation GeoPackages: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The tiled gridded coverage GeoPackage extension allows 32 bit source data to be converted to a GeoPackage with 16 bit integer tiles in PNG format, and still retain a significant number of decimals. This is accomplished by calculating a ''scale'' and ''offset'' for each tile, so that every tile utilizes the full space of the UInt16 data type (0- 65536). offset = min(tile) scale = (max(tile) - min(tile)) / (2^16 - 2)") |
No edit summary |
||
Line 2: | Line 2: | ||
offset = min(tile) | offset = min(tile) | ||
scale = (max(tile) - min(tile)) / (2^16 - 2) | scale = (max(tile) - min(tile)) / (2^16 - 2) |
Revision as of 09:44, 14 June 2024
The tiled gridded coverage GeoPackage extension allows 32 bit source data to be converted to a GeoPackage with 16 bit integer tiles in PNG format, and still retain a significant number of decimals. This is accomplished by calculating a scale and offset for each tile, so that every tile utilizes the full space of the UInt16 data type (0- 65536).
offset = min(tile) scale = (max(tile) - min(tile)) / (2^16 - 2)