@developmentseed/deck.gl-geotiff 0.3.0-beta.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -4
- package/dist/cog-layer.d.ts +42 -29
- package/dist/cog-layer.d.ts.map +1 -1
- package/dist/cog-layer.js +146 -38
- package/dist/cog-layer.js.map +1 -1
- package/dist/geotiff/geotiff.d.ts.map +1 -1
- package/dist/geotiff/geotiff.js +6 -2
- package/dist/geotiff/geotiff.js.map +1 -1
- package/dist/geotiff/render-pipeline.d.ts +7 -4
- package/dist/geotiff/render-pipeline.d.ts.map +1 -1
- package/dist/geotiff/render-pipeline.js +119 -16
- package/dist/geotiff/render-pipeline.js.map +1 -1
- package/dist/geotiff-layer.d.ts +5 -4
- package/dist/geotiff-layer.d.ts.map +1 -1
- package/dist/geotiff-layer.js.map +1 -1
- package/dist/geotiff-reprojection.d.ts +2 -1
- package/dist/geotiff-reprojection.d.ts.map +1 -1
- package/dist/geotiff-reprojection.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/proj.d.ts +20 -0
- package/dist/proj.d.ts.map +1 -1
- package/dist/proj.js +44 -0
- package/dist/proj.js.map +1 -1
- package/package.json +12 -12
- package/dist/cog-tile-matrix-set.d.ts +0 -3
- package/dist/cog-tile-matrix-set.d.ts.map +0 -1
- package/dist/cog-tile-matrix-set.js +0 -23
- package/dist/cog-tile-matrix-set.js.map +0 -1
- package/dist/ellipsoids.d.ts +0 -153
- package/dist/ellipsoids.d.ts.map +0 -1
- package/dist/ellipsoids.js +0 -153
- package/dist/ellipsoids.js.map +0 -1
- package/dist/geotiff/high-level/affine.d.ts +0 -16
- package/dist/geotiff/high-level/affine.d.ts.map +0 -1
- package/dist/geotiff/high-level/affine.js +0 -2
- package/dist/geotiff/high-level/affine.js.map +0 -1
- package/dist/geotiff/high-level/array.d.ts +0 -37
- package/dist/geotiff/high-level/array.d.ts.map +0 -1
- package/dist/geotiff/high-level/array.js +0 -2
- package/dist/geotiff/high-level/array.js.map +0 -1
- package/dist/geotiff/high-level/geotiff.d.ts +0 -63
- package/dist/geotiff/high-level/geotiff.d.ts.map +0 -1
- package/dist/geotiff/high-level/geotiff.js +0 -135
- package/dist/geotiff/high-level/geotiff.js.map +0 -1
- package/dist/geotiff/high-level/index.d.ts +0 -8
- package/dist/geotiff/high-level/index.d.ts.map +0 -1
- package/dist/geotiff/high-level/index.js +0 -5
- package/dist/geotiff/high-level/index.js.map +0 -1
- package/dist/geotiff/high-level/options.d.ts +0 -11
- package/dist/geotiff/high-level/options.d.ts.map +0 -1
- package/dist/geotiff/high-level/options.js +0 -2
- package/dist/geotiff/high-level/options.js.map +0 -1
- package/dist/geotiff/high-level/overview.d.ts +0 -46
- package/dist/geotiff/high-level/overview.d.ts.map +0 -1
- package/dist/geotiff/high-level/overview.js +0 -124
- package/dist/geotiff/high-level/overview.js.map +0 -1
- package/dist/geotiff/high-level/tile.d.ts +0 -11
- package/dist/geotiff/high-level/tile.d.ts.map +0 -1
- package/dist/geotiff/high-level/tile.js +0 -2
- package/dist/geotiff/high-level/tile.js.map +0 -1
- package/dist/geotiff/high-level/transform.d.ts +0 -23
- package/dist/geotiff/high-level/transform.d.ts.map +0 -1
- package/dist/geotiff/high-level/transform.js +0 -55
- package/dist/geotiff/high-level/transform.js.map +0 -1
- package/dist/geotiff/high-level/window.d.ts +0 -23
- package/dist/geotiff/high-level/window.d.ts.map +0 -1
- package/dist/geotiff/high-level/window.js +0 -31
- package/dist/geotiff/high-level/window.js.map +0 -1
- package/dist/geotiff/types.d.ts +0 -5
- package/dist/geotiff/types.d.ts.map +0 -1
- package/dist/geotiff/types.js +0 -7
- package/dist/geotiff/types.js.map +0 -1
- package/dist/geotiff-types.d.ts +0 -13
- package/dist/geotiff-types.d.ts.map +0 -1
- package/dist/geotiff-types.js +0 -2
- package/dist/geotiff-types.js.map +0 -1
- package/dist/geotiff.d.ts +0 -50
- package/dist/geotiff.d.ts.map +0 -1
- package/dist/geotiff.js +0 -135
- package/dist/geotiff.js.map +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.d.ts +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.d.ts.map +0 -1
- package/dist/mosaic-layer/mosaic-tile-traversal.js +0 -2
- package/dist/mosaic-layer/mosaic-tile-traversal.js.map +0 -1
- package/dist/mosaic-layer.d.ts +0 -1
- package/dist/mosaic-layer.d.ts.map +0 -1
- package/dist/mosaic-layer.js +0 -2
- package/dist/mosaic-layer.js.map +0 -1
- package/dist/texture.d.ts +0 -10
- package/dist/texture.d.ts.map +0 -1
- package/dist/texture.js +0 -135
- package/dist/texture.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/ellipsoids.d.ts
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vendored and edited from proj4.js.
|
|
3
|
-
*
|
|
4
|
-
* In the implementation of metersPerUnit while generating a COG TileMatrixSet,
|
|
5
|
-
* we need to know the size of the semi major axis in the case the CRS is in
|
|
6
|
-
* degrees.
|
|
7
|
-
*
|
|
8
|
-
* https://github.com/proj4js/proj4js/blob/e90e5fa6872a1ffc40edb161cbeb4bd5e3bd9db5/lib/constants/Ellipsoid.js
|
|
9
|
-
*/
|
|
10
|
-
declare const ellipsoids: {
|
|
11
|
-
MERIT: {
|
|
12
|
-
a: number;
|
|
13
|
-
};
|
|
14
|
-
SGS85: {
|
|
15
|
-
a: number;
|
|
16
|
-
};
|
|
17
|
-
GRS80: {
|
|
18
|
-
a: number;
|
|
19
|
-
};
|
|
20
|
-
IAU76: {
|
|
21
|
-
a: number;
|
|
22
|
-
};
|
|
23
|
-
airy: {
|
|
24
|
-
a: number;
|
|
25
|
-
b: number;
|
|
26
|
-
};
|
|
27
|
-
APL4: {
|
|
28
|
-
a: number;
|
|
29
|
-
};
|
|
30
|
-
NWL9D: {
|
|
31
|
-
a: number;
|
|
32
|
-
};
|
|
33
|
-
mod_airy: {
|
|
34
|
-
a: number;
|
|
35
|
-
b: number;
|
|
36
|
-
};
|
|
37
|
-
andrae: {
|
|
38
|
-
a: number;
|
|
39
|
-
};
|
|
40
|
-
aust_SA: {
|
|
41
|
-
a: number;
|
|
42
|
-
};
|
|
43
|
-
GRS67: {
|
|
44
|
-
a: number;
|
|
45
|
-
};
|
|
46
|
-
bessel: {
|
|
47
|
-
a: number;
|
|
48
|
-
};
|
|
49
|
-
bess_nam: {
|
|
50
|
-
a: number;
|
|
51
|
-
};
|
|
52
|
-
clrk66: {
|
|
53
|
-
a: number;
|
|
54
|
-
b: number;
|
|
55
|
-
};
|
|
56
|
-
clrk80: {
|
|
57
|
-
a: number;
|
|
58
|
-
};
|
|
59
|
-
clrk80ign: {
|
|
60
|
-
a: number;
|
|
61
|
-
b: number;
|
|
62
|
-
};
|
|
63
|
-
clrk58: {
|
|
64
|
-
a: number;
|
|
65
|
-
};
|
|
66
|
-
CPM: {
|
|
67
|
-
a: number;
|
|
68
|
-
};
|
|
69
|
-
delmbr: {
|
|
70
|
-
a: number;
|
|
71
|
-
};
|
|
72
|
-
engelis: {
|
|
73
|
-
a: number;
|
|
74
|
-
};
|
|
75
|
-
evrst30: {
|
|
76
|
-
a: number;
|
|
77
|
-
};
|
|
78
|
-
evrst48: {
|
|
79
|
-
a: number;
|
|
80
|
-
};
|
|
81
|
-
evrst56: {
|
|
82
|
-
a: number;
|
|
83
|
-
};
|
|
84
|
-
evrst69: {
|
|
85
|
-
a: number;
|
|
86
|
-
};
|
|
87
|
-
evrstSS: {
|
|
88
|
-
a: number;
|
|
89
|
-
};
|
|
90
|
-
fschr60: {
|
|
91
|
-
a: number;
|
|
92
|
-
};
|
|
93
|
-
fschr60m: {
|
|
94
|
-
a: number;
|
|
95
|
-
};
|
|
96
|
-
fschr68: {
|
|
97
|
-
a: number;
|
|
98
|
-
};
|
|
99
|
-
helmert: {
|
|
100
|
-
a: number;
|
|
101
|
-
};
|
|
102
|
-
hough: {
|
|
103
|
-
a: number;
|
|
104
|
-
};
|
|
105
|
-
intl: {
|
|
106
|
-
a: number;
|
|
107
|
-
};
|
|
108
|
-
kaula: {
|
|
109
|
-
a: number;
|
|
110
|
-
};
|
|
111
|
-
lerch: {
|
|
112
|
-
a: number;
|
|
113
|
-
};
|
|
114
|
-
mprts: {
|
|
115
|
-
a: number;
|
|
116
|
-
};
|
|
117
|
-
new_intl: {
|
|
118
|
-
a: number;
|
|
119
|
-
b: number;
|
|
120
|
-
};
|
|
121
|
-
plessis: {
|
|
122
|
-
a: number;
|
|
123
|
-
};
|
|
124
|
-
krass: {
|
|
125
|
-
a: number;
|
|
126
|
-
};
|
|
127
|
-
SEasia: {
|
|
128
|
-
a: number;
|
|
129
|
-
b: number;
|
|
130
|
-
};
|
|
131
|
-
walbeck: {
|
|
132
|
-
a: number;
|
|
133
|
-
b: number;
|
|
134
|
-
};
|
|
135
|
-
WGS60: {
|
|
136
|
-
a: number;
|
|
137
|
-
};
|
|
138
|
-
WGS66: {
|
|
139
|
-
a: number;
|
|
140
|
-
};
|
|
141
|
-
WGS7: {
|
|
142
|
-
a: number;
|
|
143
|
-
};
|
|
144
|
-
WGS84: {
|
|
145
|
-
a: number;
|
|
146
|
-
};
|
|
147
|
-
sphere: {
|
|
148
|
-
a: number;
|
|
149
|
-
b: number;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export default ellipsoids;
|
|
153
|
-
//# sourceMappingURL=ellipsoids.d.ts.map
|
package/dist/ellipsoids.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ellipsoids.d.ts","sourceRoot":"","sources":["../src/ellipsoids.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6If,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/ellipsoids.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vendored and edited from proj4.js.
|
|
3
|
-
*
|
|
4
|
-
* In the implementation of metersPerUnit while generating a COG TileMatrixSet,
|
|
5
|
-
* we need to know the size of the semi major axis in the case the CRS is in
|
|
6
|
-
* degrees.
|
|
7
|
-
*
|
|
8
|
-
* https://github.com/proj4js/proj4js/blob/e90e5fa6872a1ffc40edb161cbeb4bd5e3bd9db5/lib/constants/Ellipsoid.js
|
|
9
|
-
*/
|
|
10
|
-
const ellipsoids = {
|
|
11
|
-
MERIT: {
|
|
12
|
-
a: 6378137,
|
|
13
|
-
},
|
|
14
|
-
SGS85: {
|
|
15
|
-
a: 6378136,
|
|
16
|
-
},
|
|
17
|
-
GRS80: {
|
|
18
|
-
a: 6378137,
|
|
19
|
-
},
|
|
20
|
-
IAU76: {
|
|
21
|
-
a: 6378140,
|
|
22
|
-
},
|
|
23
|
-
airy: {
|
|
24
|
-
a: 6377563.396,
|
|
25
|
-
b: 6356256.91,
|
|
26
|
-
},
|
|
27
|
-
APL4: {
|
|
28
|
-
a: 6378137,
|
|
29
|
-
},
|
|
30
|
-
NWL9D: {
|
|
31
|
-
a: 6378145,
|
|
32
|
-
},
|
|
33
|
-
mod_airy: {
|
|
34
|
-
a: 6377340.189,
|
|
35
|
-
b: 6356034.446,
|
|
36
|
-
},
|
|
37
|
-
andrae: {
|
|
38
|
-
a: 6377104.43,
|
|
39
|
-
},
|
|
40
|
-
aust_SA: {
|
|
41
|
-
a: 6378160,
|
|
42
|
-
},
|
|
43
|
-
GRS67: {
|
|
44
|
-
a: 6378160,
|
|
45
|
-
},
|
|
46
|
-
bessel: {
|
|
47
|
-
a: 6377397.155,
|
|
48
|
-
},
|
|
49
|
-
bess_nam: {
|
|
50
|
-
a: 6377483.865,
|
|
51
|
-
},
|
|
52
|
-
clrk66: {
|
|
53
|
-
a: 6378206.4,
|
|
54
|
-
b: 6356583.8,
|
|
55
|
-
},
|
|
56
|
-
clrk80: {
|
|
57
|
-
a: 6378249.145,
|
|
58
|
-
},
|
|
59
|
-
clrk80ign: {
|
|
60
|
-
a: 6378249.2,
|
|
61
|
-
b: 6356515,
|
|
62
|
-
},
|
|
63
|
-
clrk58: {
|
|
64
|
-
a: 6378293.645208759,
|
|
65
|
-
},
|
|
66
|
-
CPM: {
|
|
67
|
-
a: 6375738.7,
|
|
68
|
-
},
|
|
69
|
-
delmbr: {
|
|
70
|
-
a: 6376428,
|
|
71
|
-
},
|
|
72
|
-
engelis: {
|
|
73
|
-
a: 6378136.05,
|
|
74
|
-
},
|
|
75
|
-
evrst30: {
|
|
76
|
-
a: 6377276.345,
|
|
77
|
-
},
|
|
78
|
-
evrst48: {
|
|
79
|
-
a: 6377304.063,
|
|
80
|
-
},
|
|
81
|
-
evrst56: {
|
|
82
|
-
a: 6377301.243,
|
|
83
|
-
},
|
|
84
|
-
evrst69: {
|
|
85
|
-
a: 6377295.664,
|
|
86
|
-
},
|
|
87
|
-
evrstSS: {
|
|
88
|
-
a: 6377298.556,
|
|
89
|
-
},
|
|
90
|
-
fschr60: {
|
|
91
|
-
a: 6378166,
|
|
92
|
-
},
|
|
93
|
-
fschr60m: {
|
|
94
|
-
a: 6378155,
|
|
95
|
-
},
|
|
96
|
-
fschr68: {
|
|
97
|
-
a: 6378150,
|
|
98
|
-
},
|
|
99
|
-
helmert: {
|
|
100
|
-
a: 6378200,
|
|
101
|
-
},
|
|
102
|
-
hough: {
|
|
103
|
-
a: 6378270,
|
|
104
|
-
},
|
|
105
|
-
intl: {
|
|
106
|
-
a: 6378388,
|
|
107
|
-
},
|
|
108
|
-
kaula: {
|
|
109
|
-
a: 6378163,
|
|
110
|
-
},
|
|
111
|
-
lerch: {
|
|
112
|
-
a: 6378139,
|
|
113
|
-
},
|
|
114
|
-
mprts: {
|
|
115
|
-
a: 6397300,
|
|
116
|
-
},
|
|
117
|
-
new_intl: {
|
|
118
|
-
a: 6378157.5,
|
|
119
|
-
b: 6356772.2,
|
|
120
|
-
},
|
|
121
|
-
plessis: {
|
|
122
|
-
a: 6376523,
|
|
123
|
-
},
|
|
124
|
-
krass: {
|
|
125
|
-
a: 6378245,
|
|
126
|
-
},
|
|
127
|
-
SEasia: {
|
|
128
|
-
a: 6378155,
|
|
129
|
-
b: 6356773.3205,
|
|
130
|
-
},
|
|
131
|
-
walbeck: {
|
|
132
|
-
a: 6376896,
|
|
133
|
-
b: 6355834.8467,
|
|
134
|
-
},
|
|
135
|
-
WGS60: {
|
|
136
|
-
a: 6378165,
|
|
137
|
-
},
|
|
138
|
-
WGS66: {
|
|
139
|
-
a: 6378145,
|
|
140
|
-
},
|
|
141
|
-
WGS7: {
|
|
142
|
-
a: 6378135,
|
|
143
|
-
},
|
|
144
|
-
WGS84: {
|
|
145
|
-
a: 6378137,
|
|
146
|
-
},
|
|
147
|
-
sphere: {
|
|
148
|
-
a: 6370997,
|
|
149
|
-
b: 6370997,
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
export default ellipsoids;
|
|
153
|
-
//# sourceMappingURL=ellipsoids.js.map
|
package/dist/ellipsoids.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ellipsoids.js","sourceRoot":"","sources":["../src/ellipsoids.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,WAAW;QACd,CAAC,EAAE,UAAU;KAC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AO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,QAAQ,EAAE;QACR,CAAC,EAAE,SAAS;QACZ,CAAC,EAAE,SAAS;KACb;IACD,OAAO,EAAE;QACP,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,MAAM,EAAE;QACN,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,YAAY;KAChB;IACD,OAAO,EAAE;QACP,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,YAAY;KAChB;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,OAAO;KACX;IACD,KAAK,EAAE;QACL,CAAC,EAAE,OAAO;KACX;IACD,MAAM,EAAE;QACN,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,OAAO;KACX;CACF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A 2-D affine transform as a six-element tuple in row-major order:
|
|
3
|
-
*
|
|
4
|
-
* x_crs = a * col_px + b * row_px + c
|
|
5
|
-
* y_crs = d * col_px + e * row_px + f
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export type Affine = [
|
|
9
|
-
a: number,
|
|
10
|
-
b: number,
|
|
11
|
-
c: number,
|
|
12
|
-
d: number,
|
|
13
|
-
e: number,
|
|
14
|
-
f: number
|
|
15
|
-
];
|
|
16
|
-
//# sourceMappingURL=affine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/affine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;CACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affine.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/affine.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { TypedArray } from "geotiff";
|
|
2
|
-
import type { Affine } from "./affine";
|
|
3
|
-
/**
|
|
4
|
-
* Decoded raster data from a GeoTIFF region.
|
|
5
|
-
*
|
|
6
|
-
* Data is stored in pixel-interleaved order (the native layout returned by
|
|
7
|
-
* geotiff.js with `interleave: true`): for each pixel in row-major order, all
|
|
8
|
-
* band values are contiguous. The flat array length is `height * width * bands`.
|
|
9
|
-
*/
|
|
10
|
-
export type RasterArray = {
|
|
11
|
-
/** Pixel-interleaved raster data with shape (bands, height, width) */
|
|
12
|
-
data: TypedArray;
|
|
13
|
-
/**
|
|
14
|
-
* Optional validity mask with shape (height, width).
|
|
15
|
-
*
|
|
16
|
-
* 1 = valid pixel
|
|
17
|
-
* 0 = nodata
|
|
18
|
-
*
|
|
19
|
-
* `null` when no mask IFD is present.
|
|
20
|
-
*/
|
|
21
|
-
mask: Uint8Array | null;
|
|
22
|
-
/** The number of bands in the array. */
|
|
23
|
-
count: number;
|
|
24
|
-
/** Height in pixels. */
|
|
25
|
-
height: number;
|
|
26
|
-
/** Width in pixels. */
|
|
27
|
-
width: number;
|
|
28
|
-
/**
|
|
29
|
-
* The affine transform mapping pixel coordinates to geographic coordinates.
|
|
30
|
-
*/
|
|
31
|
-
transform: Affine;
|
|
32
|
-
/** The coordinate reference system of the array. */
|
|
33
|
-
crs: string;
|
|
34
|
-
/** The nodata value for the array, if any. */
|
|
35
|
-
nodata: number | null;
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=array.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,sEAAsE;IACtE,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;;;;OAOG;IACH,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAExB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IAEd,wBAAwB;IACxB,MAAM,EAAE,MAAM,CAAC;IAEf,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAC;IAEZ,8CAA8C;IAC9C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/array.ts"],"names":[],"mappings":""}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { GeoTransform } from "@developmentseed/raster-reproject/affine";
|
|
2
|
-
import type { GeoTIFFImage, GeoTIFF as UpstreamGeoTIFF } from "geotiff";
|
|
3
|
-
import type { RasterArray } from "./array.js";
|
|
4
|
-
import type { FetchOptions } from "./options.js";
|
|
5
|
-
import type { Overview } from "./overview.js";
|
|
6
|
-
import type { Tile } from "./tile.js";
|
|
7
|
-
import type { Window } from "./window.js";
|
|
8
|
-
/**
|
|
9
|
-
* A higher-level GeoTIFF abstraction that separates data IFDs from mask IFDs,
|
|
10
|
-
* pairs them by resolution, and exposes sorted overviews.
|
|
11
|
-
*
|
|
12
|
-
* Construct via `GeoTIFF.open(tiff)`.
|
|
13
|
-
*/
|
|
14
|
-
export declare class GeoTIFF {
|
|
15
|
-
/** The underlying GeoTIFF instance from geotiff.js */
|
|
16
|
-
private readonly tiff;
|
|
17
|
-
/**
|
|
18
|
-
* The primary (first) IFD of the GeoTIFF.
|
|
19
|
-
*
|
|
20
|
-
* Some tags, like most geo tags, only exist on the primary IFD.
|
|
21
|
-
*/
|
|
22
|
-
private readonly primaryIfd;
|
|
23
|
-
/**
|
|
24
|
-
* The mask IFD of the full-resolution GeoTIFF, if any.
|
|
25
|
-
*/
|
|
26
|
-
private readonly maskIfd;
|
|
27
|
-
/**
|
|
28
|
-
* Reduced-resolution overview levels, sorted finest-to-coarsest.
|
|
29
|
-
*
|
|
30
|
-
* Does not include the full-resolution image — use `fetchTile` / `read`
|
|
31
|
-
* on the GeoTIFF instance itself for that.
|
|
32
|
-
*/
|
|
33
|
-
readonly overviews: Overview[];
|
|
34
|
-
/** Affine geotransform of the full-resolution image. */
|
|
35
|
-
readonly transform: GeoTransform;
|
|
36
|
-
/** The primary (full-resolution) GeoTIFFImage. Useful for geo key access. */
|
|
37
|
-
readonly primaryImage: GeoTIFFImage;
|
|
38
|
-
/** Overview wrapper around the primary image, used by the convenience delegates. */
|
|
39
|
-
private readonly _primary;
|
|
40
|
-
private constructor();
|
|
41
|
-
/**
|
|
42
|
-
* Open a GeoTIFF and classify its IFDs into data/mask pairs.
|
|
43
|
-
*
|
|
44
|
-
* All IFDs are walked; mask IFDs are matched to data IFDs by matching
|
|
45
|
-
* (width, height). Overviews are sorted from finest to coarsest resolution.
|
|
46
|
-
*/
|
|
47
|
-
static open(tiff: UpstreamGeoTIFF): Promise<GeoTIFF>;
|
|
48
|
-
/** Fetch a single tile from the full-resolution image. */
|
|
49
|
-
fetchTile(x: number, y: number, options?: FetchOptions): Promise<Tile>;
|
|
50
|
-
/** Read an arbitrary window from the full-resolution image. */
|
|
51
|
-
read(window: Window, options?: FetchOptions): Promise<RasterArray>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Determine whether a GeoTIFFImage is a mask IFD.
|
|
55
|
-
*
|
|
56
|
-
* Per the TIFF spec, bit 2 (value 4) of NewSubfileType signals
|
|
57
|
-
* "this IFD is a mask". We also require PhotometricInterpretation === 4
|
|
58
|
-
* (TransparencyMask) to confirm the intent.
|
|
59
|
-
*
|
|
60
|
-
* NewSubfileType defaults to 0 when absent from the file directory.
|
|
61
|
-
*/
|
|
62
|
-
export declare function isMaskIfd(image: GeoTIFFImage): boolean;
|
|
63
|
-
//# sourceMappingURL=geotiff.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/geotiff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAGxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;GAKG;AACH,qBAAa,OAAO;IAClB,sDAAsD;IACtD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAkB;IAEvC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAe;IAE1C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAE9C;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,8EAA8E;IAC9E,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpC,oFAAoF;IACpF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IAEpC,OAAO;IAYP;;;;;OAKG;WACU,IAAI,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IA4E1D,0DAA0D;IACpD,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5E,+DAA+D;IACzD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;CAGzE;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAWtD"}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { extractGeotransform } from "../../geotiff-reprojection.js";
|
|
2
|
-
import { PhotometricInterpretationT } from "../types.js";
|
|
3
|
-
import { Overview as OverviewClass } from "./overview.js";
|
|
4
|
-
/**
|
|
5
|
-
* A higher-level GeoTIFF abstraction that separates data IFDs from mask IFDs,
|
|
6
|
-
* pairs them by resolution, and exposes sorted overviews.
|
|
7
|
-
*
|
|
8
|
-
* Construct via `GeoTIFF.open(tiff)`.
|
|
9
|
-
*/
|
|
10
|
-
export class GeoTIFF {
|
|
11
|
-
/** The underlying GeoTIFF instance from geotiff.js */
|
|
12
|
-
tiff;
|
|
13
|
-
/**
|
|
14
|
-
* The primary (first) IFD of the GeoTIFF.
|
|
15
|
-
*
|
|
16
|
-
* Some tags, like most geo tags, only exist on the primary IFD.
|
|
17
|
-
*/
|
|
18
|
-
primaryIfd;
|
|
19
|
-
/**
|
|
20
|
-
* The mask IFD of the full-resolution GeoTIFF, if any.
|
|
21
|
-
*/
|
|
22
|
-
maskIfd;
|
|
23
|
-
/**
|
|
24
|
-
* Reduced-resolution overview levels, sorted finest-to-coarsest.
|
|
25
|
-
*
|
|
26
|
-
* Does not include the full-resolution image — use `fetchTile` / `read`
|
|
27
|
-
* on the GeoTIFF instance itself for that.
|
|
28
|
-
*/
|
|
29
|
-
overviews;
|
|
30
|
-
/** Affine geotransform of the full-resolution image. */
|
|
31
|
-
transform;
|
|
32
|
-
/** The primary (full-resolution) GeoTIFFImage. Useful for geo key access. */
|
|
33
|
-
primaryImage;
|
|
34
|
-
/** Overview wrapper around the primary image, used by the convenience delegates. */
|
|
35
|
-
_primary;
|
|
36
|
-
constructor(primary, overviews, transform, primaryImage) {
|
|
37
|
-
this._primary = primary;
|
|
38
|
-
this.overviews = overviews;
|
|
39
|
-
this.transform = transform;
|
|
40
|
-
this.primaryImage = primaryImage;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Open a GeoTIFF and classify its IFDs into data/mask pairs.
|
|
44
|
-
*
|
|
45
|
-
* All IFDs are walked; mask IFDs are matched to data IFDs by matching
|
|
46
|
-
* (width, height). Overviews are sorted from finest to coarsest resolution.
|
|
47
|
-
*/
|
|
48
|
-
static async open(tiff) {
|
|
49
|
-
const imageCount = await tiff.getImageCount();
|
|
50
|
-
if (imageCount === 0) {
|
|
51
|
-
throw new Error("TIFF does not contain any IFDs");
|
|
52
|
-
}
|
|
53
|
-
// Fetch all images and their file directories up front. geotiff.js only
|
|
54
|
-
// fetches IFD headers here — raster data is not read until readRasters.
|
|
55
|
-
const images = [];
|
|
56
|
-
for (let i = 0; i < imageCount; i++) {
|
|
57
|
-
images.push(await tiff.getImage(i));
|
|
58
|
-
}
|
|
59
|
-
const primaryImage = images[0];
|
|
60
|
-
const baseTransform = extractGeotransform(primaryImage);
|
|
61
|
-
const primaryWidth = primaryImage.getWidth();
|
|
62
|
-
// Classify IFDs (skipping index 0) into overview-data and mask buckets
|
|
63
|
-
// keyed by "width,height".
|
|
64
|
-
const dataIFDs = new Map();
|
|
65
|
-
const maskIFDs = new Map();
|
|
66
|
-
for (let i = 1; i < images.length; i++) {
|
|
67
|
-
const image = images[i];
|
|
68
|
-
const key = `${image.getWidth()},${image.getHeight()}`;
|
|
69
|
-
if (isMaskIfd(image)) {
|
|
70
|
-
maskIFDs.set(key, image);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
dataIFDs.set(key, image);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
// Build the primary Overview (full-resolution image + its mask, if any)
|
|
77
|
-
const primaryKey = `${primaryImage.getWidth()},${primaryImage.getHeight()}`;
|
|
78
|
-
const primary = new OverviewClass(primaryImage, maskIFDs.get(primaryKey) ?? null, baseTransform);
|
|
79
|
-
// Build reduced-resolution Overview instances, sorted by pixel count
|
|
80
|
-
// descending (finest first).
|
|
81
|
-
const dataEntries = Array.from(dataIFDs.entries());
|
|
82
|
-
dataEntries.sort((a, b) => {
|
|
83
|
-
const [wa, ha] = a[0].split(",").map(Number);
|
|
84
|
-
const [wb, hb] = b[0].split(",").map(Number);
|
|
85
|
-
return wb * hb - wa * ha;
|
|
86
|
-
});
|
|
87
|
-
const overviews = dataEntries.map(([key, dataImage]) => {
|
|
88
|
-
const maskImage = maskIFDs.get(key) ?? null;
|
|
89
|
-
const overviewWidth = dataImage.getWidth();
|
|
90
|
-
// Scale the base transform for this overview level.
|
|
91
|
-
// scale = primaryWidth / overviewWidth
|
|
92
|
-
// Scaled: [a*s, b*s, c, d*s, e*s, f] (origin stays the same)
|
|
93
|
-
const scale = primaryWidth / overviewWidth;
|
|
94
|
-
const [a, b, c, d, e, f] = baseTransform;
|
|
95
|
-
const overviewTransform = [
|
|
96
|
-
a * scale,
|
|
97
|
-
b * scale,
|
|
98
|
-
c,
|
|
99
|
-
d * scale,
|
|
100
|
-
e * scale,
|
|
101
|
-
f,
|
|
102
|
-
];
|
|
103
|
-
return new OverviewClass(dataImage, maskImage, overviewTransform);
|
|
104
|
-
});
|
|
105
|
-
return new GeoTIFF(primary, overviews, baseTransform, primaryImage);
|
|
106
|
-
}
|
|
107
|
-
// ── Convenience delegates to the full-resolution image ─────────────────
|
|
108
|
-
/** Fetch a single tile from the full-resolution image. */
|
|
109
|
-
async fetchTile(x, y, options) {
|
|
110
|
-
return this._primary.fetchTile(x, y, options);
|
|
111
|
-
}
|
|
112
|
-
/** Read an arbitrary window from the full-resolution image. */
|
|
113
|
-
async read(window, options) {
|
|
114
|
-
return this._primary.read(window, options);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Determine whether a GeoTIFFImage is a mask IFD.
|
|
119
|
-
*
|
|
120
|
-
* Per the TIFF spec, bit 2 (value 4) of NewSubfileType signals
|
|
121
|
-
* "this IFD is a mask". We also require PhotometricInterpretation === 4
|
|
122
|
-
* (TransparencyMask) to confirm the intent.
|
|
123
|
-
*
|
|
124
|
-
* NewSubfileType defaults to 0 when absent from the file directory.
|
|
125
|
-
*/
|
|
126
|
-
export function isMaskIfd(image) {
|
|
127
|
-
// getFileDirectory() returns a plain object; NewSubfileType is not in our
|
|
128
|
-
// typed ImageFileDirectory, so we access it from the raw directory.
|
|
129
|
-
const fd = image.getFileDirectory();
|
|
130
|
-
const newSubfileType = fd.NewSubfileType ?? 0;
|
|
131
|
-
const photometric = fd.PhotometricInterpretation;
|
|
132
|
-
return ((newSubfileType & 4) !== 0 &&
|
|
133
|
-
photometric === PhotometricInterpretationT.TransparencyMask);
|
|
134
|
-
}
|
|
135
|
-
//# sourceMappingURL=geotiff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"geotiff.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/geotiff.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,eAAe,CAAC;AAI1D;;;;;G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;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CAAC,KAAmB;IAC3C,0EAA0E;IAC1E,oEAAoE;IACpE,MAAM,EAAE,GAAG,KAAK,CAAC,gBAAgB,EAA6B,CAAC;IAC/D,MAAM,cAAc,GAAI,EAAE,CAAC,cAAyB,IAAI,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,EAAE,CAAC,yBAAmC,CAAC;IAE3D,OAAO,CACL,CAAC,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;QAC1B,WAAW,KAAK,0BAA0B,CAAC,gBAAgB,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { RasterArray } from "./array.js";
|
|
2
|
-
export { GeoTIFF, isMaskIfd } from "./geotiff.js";
|
|
3
|
-
export type { FetchOptions } from "./options.js";
|
|
4
|
-
export { Overview } from "./overview.js";
|
|
5
|
-
export type { Tile } from "./tile.js";
|
|
6
|
-
export { index, xy } from "./transform.js";
|
|
7
|
-
export { createWindow, intersectWindows, type Window } from "./window.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAe,MAAM,aAAa,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Pool } from "geotiff";
|
|
2
|
-
/**
|
|
3
|
-
* Options for fetching raster data from a GeoTIFF.
|
|
4
|
-
*/
|
|
5
|
-
export type FetchOptions = {
|
|
6
|
-
/** GeoTIFF.js decoder pool. If not provided, a default shared pool is used. */
|
|
7
|
-
pool?: Pool;
|
|
8
|
-
/** AbortSignal to cancel the fetch operation. */
|
|
9
|
-
signal?: AbortSignal;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/geotiff/high-level/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,gFAAgF;IAChF,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iDAAiD;IACjD,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/geotiff/high-level/options.ts"],"names":[],"mappings":""}
|