UNPKG
geotiff.js
Version:
latest (1.0.1)
1.0.1
GeoTIFF image decoding in JavaScript
github.com/geotiffjs/geotiff.js
geotiffjs/geotiff.js
geotiff.js
/
src
/
compression
/
deflate.js
10 lines
(7 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ inflate }
from
'pako/lib/inflate'
;
import
BaseDecoder
from
'./basedecoder'
;
export
default
class
DeflateDecoder
extends
BaseDecoder
{
decodeBlock
(
buffer
) {
return
inflate
(
new
Uint8Array
(buffer)).
buffer
; } }