Expand description
Geospatial Information Authority of Japan (GSI / 国土地理院) DEM tile encoding.
Each pixel packs a signed 24-bit integer of 0.01 m units.
The no-data sentinel (128, 0, 0) decodes to NaN.
Constants§
- SENTINEL_
RGB - No-data sentinel
(R=128, G=0, B=0), decoded asNaN.
Functions§
- decode
- Decode RGB bytes into a freshly allocated
Vec<f32>. - decode_
into - Decode RGB bytes into a caller-owned
f32buffer (no allocation). - decode_
pixel - Decode a single GSI
(R, G, B)pixel into elevation (metres). - encode
- Encode
elevationsinto a freshly allocatedVec<u8>. - encode_
into - Encode
elevationsinto a caller-owned RGB buffer (no allocation). - encode_
pixel - Encode a single elevation sample (metres) into GSI
(R, G, B). - encode_
to - Stream-encode
elevationsto a writer.