@urban-toolkit/autk-db 2.0.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 +14 -0
- package/dist/autk-db.js +6356 -0
- package/dist/autk-db.js.map +1 -0
- package/dist/basedecoder-DaTXO39b.js +62 -0
- package/dist/basedecoder-DaTXO39b.js.map +1 -0
- package/dist/deflate-DT_oTgqy.js +12 -0
- package/dist/deflate-DT_oTgqy.js.map +1 -0
- package/dist/duckdb-browser-eh.worker.js +14 -0
- package/dist/duckdb-browser-mvp.worker.js +14 -0
- package/dist/duckdb-eh.wasm +0 -0
- package/dist/duckdb-mvp.wasm +0 -0
- package/dist/globals-QF85DtAk.js +574 -0
- package/dist/globals-QF85DtAk.js.map +1 -0
- package/dist/jpeg-DckFSoVK.js +522 -0
- package/dist/jpeg-DckFSoVK.js.map +1 -0
- package/dist/lerc-BCdGEeLp.js +758 -0
- package/dist/lerc-BCdGEeLp.js.map +1 -0
- package/dist/lzw-B3twMQgz.js +73 -0
- package/dist/lzw-B3twMQgz.js.map +1 -0
- package/dist/packbits-pbHfk2l8.js +24 -0
- package/dist/packbits-pbHfk2l8.js.map +1 -0
- package/dist/pako.esm-Crx1NgSq.js +1447 -0
- package/dist/pako.esm-Crx1NgSq.js.map +1 -0
- package/dist/raw-BpEIWqGM.js +11 -0
- package/dist/raw-BpEIWqGM.js.map +1 -0
- package/dist/src/config/duckdb.d.ts +8 -0
- package/dist/src/main.d.ts +22 -0
- package/dist/src/shared/HttpCache.d.ts +55 -0
- package/dist/src/shared/clusterIntersectingFeatures.d.ts +11 -0
- package/dist/src/shared/consts.d.ts +4 -0
- package/dist/src/shared/interfaces.d.ts +44 -0
- package/dist/src/shared/osm-tag-definitions.d.ts +13 -0
- package/dist/src/spatial/SpatialDb.d.ts +264 -0
- package/dist/src/spatial/index.d.ts +5 -0
- package/dist/src/spatial/shared/use-cases/drop-table/DropTableUseCase.d.ts +25 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-area/GetBoundingBoxFromAreaUseCase.d.ts +16 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-area/interfaces.d.ts +6 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-layer/GetBoundingBoxFromLayerUseCase.d.ts +19 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-layer/interfaces.d.ts +6 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-layer/queries.d.ts +1 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-osm/GetBoundingBoxFromOsmUseCase.d.ts +19 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-osm/interfaces.d.ts +4 -0
- package/dist/src/spatial/shared/use-cases/get-bounding-box-from-osm/queries.d.ts +1 -0
- package/dist/src/spatial/shared/use-cases/transform-bounding-box-coordinates/TransformBoundingBoxCoordinatesUseCase.d.ts +20 -0
- package/dist/src/spatial/shared/use-cases/transform-bounding-box-coordinates/interfaces.d.ts +9 -0
- package/dist/src/spatial/shared/use-cases/transform-bounding-box-coordinates/queries.d.ts +11 -0
- package/dist/src/spatial/shared/utils.d.ts +20 -0
- package/dist/src/spatial/use-cases/aggregate-building-layer/AggregateBuildingLayerUseCase.d.ts +12 -0
- package/dist/src/spatial/use-cases/assign-building-ids/AssignBuildingIdsUseCase.d.ts +21 -0
- package/dist/src/spatial/use-cases/build-heatmap/BuildHeatmapUseCase.d.ts +14 -0
- package/dist/src/spatial/use-cases/build-heatmap/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/build-heatmap/interfaces.d.ts +18 -0
- package/dist/src/spatial/use-cases/get-layer-geojson/GetLayerGeojsonUseCase.d.ts +11 -0
- package/dist/src/spatial/use-cases/get-layer-geojson/index.d.ts +1 -0
- package/dist/src/spatial/use-cases/get-layer-geojson/queries.d.ts +2 -0
- package/dist/src/spatial/use-cases/get-table-data/GetTableDataUseCase.d.ts +10 -0
- package/dist/src/spatial/use-cases/get-table-data/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/get-table-data/interfaces.d.ts +7 -0
- package/dist/src/spatial/use-cases/load-csv/LoadCsvUseCase.d.ts +13 -0
- package/dist/src/spatial/use-cases/load-csv/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-csv/interfaces.d.ts +12 -0
- package/dist/src/spatial/use-cases/load-csv/queries.d.ts +12 -0
- package/dist/src/spatial/use-cases/load-custom-layer/LoadCustomLayerUseCase.d.ts +13 -0
- package/dist/src/spatial/use-cases/load-custom-layer/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-custom-layer/interfaces.d.ts +13 -0
- package/dist/src/spatial/use-cases/load-custom-layer/queries.d.ts +3 -0
- package/dist/src/spatial/use-cases/load-geotiff/LoadGeoTiffUseCase.d.ts +12 -0
- package/dist/src/spatial/use-cases/load-geotiff/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-geotiff/interfaces.d.ts +33 -0
- package/dist/src/spatial/use-cases/load-grid-layer/LoadGridLayerUseCase.d.ts +17 -0
- package/dist/src/spatial/use-cases/load-json/LoadJsonUseCase.d.ts +12 -0
- package/dist/src/spatial/use-cases/load-json/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-json/interfaces.d.ts +11 -0
- package/dist/src/spatial/use-cases/load-json/queries.d.ts +11 -0
- package/dist/src/spatial/use-cases/load-layer/LoadLayerUseCase.d.ts +27 -0
- package/dist/src/spatial/use-cases/load-layer/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-layer/interfaces.d.ts +19 -0
- package/dist/src/spatial/use-cases/load-layer/osm-processing-config.d.ts +10 -0
- package/dist/src/spatial/use-cases/load-layer/queries.d.ts +12 -0
- package/dist/src/spatial/use-cases/load-osm-from-overpass-api/LoadOsmFromOverpassApiUseCase.d.ts +89 -0
- package/dist/src/spatial/use-cases/load-osm-from-overpass-api/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-osm-from-overpass-api/interfaces.d.ts +59 -0
- package/dist/src/spatial/use-cases/load-osm-from-overpass-api/queries.d.ts +2 -0
- package/dist/src/spatial/use-cases/load-osm-from-pbf/LoadOsmFromPbfUseCase.d.ts +39 -0
- package/dist/src/spatial/use-cases/load-osm-from-pbf/index.d.ts +1 -0
- package/dist/src/spatial/use-cases/load-osm-from-pbf/osm-pbf-parser.d.ts +28 -0
- package/dist/src/spatial/use-cases/osm-processing-pipeline/OsmProcessingPipeline.d.ts +67 -0
- package/dist/src/spatial/use-cases/polygonize-surface-layer/PolygonizeSurfaceLayerUseCase.d.ts +13 -0
- package/dist/src/spatial/use-cases/polygonize-surface-layer/index.d.ts +2 -0
- package/dist/src/spatial/use-cases/polygonize-surface-layer/interfaces.d.ts +4 -0
- package/dist/src/spatial/use-cases/polygonize-surface-layer/queries.d.ts +1 -0
- package/dist/src/spatial/use-cases/raw-query/RawQueryUseCase.d.ts +12 -0
- package/dist/src/spatial/use-cases/raw-query/errors.d.ts +6 -0
- package/dist/src/spatial/use-cases/raw-query/index.d.ts +3 -0
- package/dist/src/spatial/use-cases/raw-query/interfaces.d.ts +13 -0
- package/dist/src/spatial/use-cases/spatial-join/SpatialJoinUseCase.d.ts +22 -0
- package/dist/src/spatial/use-cases/spatial-join/errors.d.ts +7 -0
- package/dist/src/spatial/use-cases/spatial-join/interfaces.d.ts +22 -0
- package/dist/src/spatial/use-cases/spatial-join/queries.d.ts +24 -0
- package/dist/src/spatial/use-cases/update-table/UpdateTableUseCase.d.ts +41 -0
- package/dist/src/spatial/use-cases/update-table/index.d.ts +3 -0
- package/dist/src/spatial/use-cases/update-table/interfaces.d.ts +35 -0
- package/dist/src/spatial/use-cases/update-table/queries.d.ts +45 -0
- package/dist/webimage-OC9EEb5f.js +25 -0
- package/dist/webimage-OC9EEb5f.js.map +1 -0
- package/dist/zstd-rpfNjbfx.js +49 -0
- package/dist/zstd-rpfNjbfx.js.map +1 -0
- package/package.json +58 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : a, n)), l = {
|
|
12
|
+
BYTE: 1,
|
|
13
|
+
ASCII: 2,
|
|
14
|
+
SHORT: 3,
|
|
15
|
+
LONG: 4,
|
|
16
|
+
RATIONAL: 5,
|
|
17
|
+
SBYTE: 6,
|
|
18
|
+
UNDEFINED: 7,
|
|
19
|
+
SSHORT: 8,
|
|
20
|
+
SLONG: 9,
|
|
21
|
+
SRATIONAL: 10,
|
|
22
|
+
FLOAT: 11,
|
|
23
|
+
DOUBLE: 12,
|
|
24
|
+
IFD: 13,
|
|
25
|
+
LONG8: 16,
|
|
26
|
+
SLONG8: 17,
|
|
27
|
+
IFD8: 18
|
|
28
|
+
}, u = {
|
|
29
|
+
[l.BYTE]: 1,
|
|
30
|
+
[l.ASCII]: 1,
|
|
31
|
+
[l.SBYTE]: 1,
|
|
32
|
+
[l.UNDEFINED]: 1,
|
|
33
|
+
[l.SHORT]: 2,
|
|
34
|
+
[l.SSHORT]: 2,
|
|
35
|
+
[l.LONG]: 4,
|
|
36
|
+
[l.SLONG]: 4,
|
|
37
|
+
[l.FLOAT]: 4,
|
|
38
|
+
[l.IFD]: 4,
|
|
39
|
+
[l.RATIONAL]: 8,
|
|
40
|
+
[l.SRATIONAL]: 8,
|
|
41
|
+
[l.DOUBLE]: 8,
|
|
42
|
+
[l.LONG8]: 8,
|
|
43
|
+
[l.SLONG8]: 8,
|
|
44
|
+
[l.IFD8]: 8
|
|
45
|
+
};
|
|
46
|
+
function d(e) {
|
|
47
|
+
let t = u[e];
|
|
48
|
+
if (t === void 0) throw RangeError(`Invalid field type: ${e}`);
|
|
49
|
+
return t;
|
|
50
|
+
}
|
|
51
|
+
var f = {
|
|
52
|
+
NewSubfileType: {
|
|
53
|
+
tag: 254,
|
|
54
|
+
type: l.LONG,
|
|
55
|
+
eager: !0
|
|
56
|
+
},
|
|
57
|
+
SubfileType: {
|
|
58
|
+
tag: 255,
|
|
59
|
+
type: l.SHORT,
|
|
60
|
+
eager: !0
|
|
61
|
+
},
|
|
62
|
+
ImageWidth: {
|
|
63
|
+
tag: 256,
|
|
64
|
+
type: l.SHORT,
|
|
65
|
+
eager: !0
|
|
66
|
+
},
|
|
67
|
+
ImageLength: {
|
|
68
|
+
tag: 257,
|
|
69
|
+
type: l.SHORT,
|
|
70
|
+
eager: !0
|
|
71
|
+
},
|
|
72
|
+
BitsPerSample: {
|
|
73
|
+
tag: 258,
|
|
74
|
+
type: l.SHORT,
|
|
75
|
+
isArray: !0,
|
|
76
|
+
eager: !0
|
|
77
|
+
},
|
|
78
|
+
Compression: {
|
|
79
|
+
tag: 259,
|
|
80
|
+
type: l.SHORT,
|
|
81
|
+
eager: !0
|
|
82
|
+
},
|
|
83
|
+
PhotometricInterpretation: {
|
|
84
|
+
tag: 262,
|
|
85
|
+
type: l.SHORT,
|
|
86
|
+
eager: !0
|
|
87
|
+
},
|
|
88
|
+
Threshholding: {
|
|
89
|
+
tag: 263,
|
|
90
|
+
type: l.SHORT
|
|
91
|
+
},
|
|
92
|
+
CellWidth: {
|
|
93
|
+
tag: 264,
|
|
94
|
+
type: l.SHORT
|
|
95
|
+
},
|
|
96
|
+
CellLength: {
|
|
97
|
+
tag: 265,
|
|
98
|
+
type: l.SHORT
|
|
99
|
+
},
|
|
100
|
+
FillOrder: {
|
|
101
|
+
tag: 266,
|
|
102
|
+
type: l.SHORT
|
|
103
|
+
},
|
|
104
|
+
DocumentName: {
|
|
105
|
+
tag: 269,
|
|
106
|
+
type: l.ASCII
|
|
107
|
+
},
|
|
108
|
+
ImageDescription: {
|
|
109
|
+
tag: 270,
|
|
110
|
+
type: l.ASCII
|
|
111
|
+
},
|
|
112
|
+
Make: {
|
|
113
|
+
tag: 271,
|
|
114
|
+
type: l.ASCII
|
|
115
|
+
},
|
|
116
|
+
Model: {
|
|
117
|
+
tag: 272,
|
|
118
|
+
type: l.ASCII
|
|
119
|
+
},
|
|
120
|
+
StripOffsets: {
|
|
121
|
+
tag: 273,
|
|
122
|
+
type: l.SHORT,
|
|
123
|
+
isArray: !0
|
|
124
|
+
},
|
|
125
|
+
Orientation: {
|
|
126
|
+
tag: 274,
|
|
127
|
+
type: l.SHORT
|
|
128
|
+
},
|
|
129
|
+
SamplesPerPixel: {
|
|
130
|
+
tag: 277,
|
|
131
|
+
type: l.SHORT,
|
|
132
|
+
eager: !0
|
|
133
|
+
},
|
|
134
|
+
RowsPerStrip: {
|
|
135
|
+
tag: 278,
|
|
136
|
+
type: l.SHORT,
|
|
137
|
+
eager: !0
|
|
138
|
+
},
|
|
139
|
+
StripByteCounts: {
|
|
140
|
+
tag: 279,
|
|
141
|
+
type: l.LONG,
|
|
142
|
+
isArray: !0
|
|
143
|
+
},
|
|
144
|
+
MinSampleValue: {
|
|
145
|
+
tag: 280,
|
|
146
|
+
type: l.SHORT,
|
|
147
|
+
isArray: !0
|
|
148
|
+
},
|
|
149
|
+
MaxSampleValue: {
|
|
150
|
+
tag: 281,
|
|
151
|
+
type: l.SHORT,
|
|
152
|
+
isArray: !0
|
|
153
|
+
},
|
|
154
|
+
XResolution: {
|
|
155
|
+
tag: 282,
|
|
156
|
+
type: l.RATIONAL
|
|
157
|
+
},
|
|
158
|
+
YResolution: {
|
|
159
|
+
tag: 283,
|
|
160
|
+
type: l.RATIONAL
|
|
161
|
+
},
|
|
162
|
+
PlanarConfiguration: {
|
|
163
|
+
tag: 284,
|
|
164
|
+
type: l.SHORT,
|
|
165
|
+
eager: !0
|
|
166
|
+
},
|
|
167
|
+
PageName: {
|
|
168
|
+
tag: 285,
|
|
169
|
+
type: l.ASCII
|
|
170
|
+
},
|
|
171
|
+
XPosition: {
|
|
172
|
+
tag: 286,
|
|
173
|
+
type: l.RATIONAL
|
|
174
|
+
},
|
|
175
|
+
YPosition: {
|
|
176
|
+
tag: 287,
|
|
177
|
+
type: l.RATIONAL
|
|
178
|
+
},
|
|
179
|
+
FreeOffsets: {
|
|
180
|
+
tag: 288,
|
|
181
|
+
type: l.LONG
|
|
182
|
+
},
|
|
183
|
+
FreeByteCounts: {
|
|
184
|
+
tag: 289,
|
|
185
|
+
type: l.LONG
|
|
186
|
+
},
|
|
187
|
+
GrayResponseUnit: {
|
|
188
|
+
tag: 290,
|
|
189
|
+
type: l.SHORT
|
|
190
|
+
},
|
|
191
|
+
GrayResponseCurve: {
|
|
192
|
+
tag: 291,
|
|
193
|
+
type: l.SHORT,
|
|
194
|
+
isArray: !0
|
|
195
|
+
},
|
|
196
|
+
T4Options: {
|
|
197
|
+
tag: 292,
|
|
198
|
+
type: l.LONG
|
|
199
|
+
},
|
|
200
|
+
T6Options: {
|
|
201
|
+
tag: 293,
|
|
202
|
+
type: l.LONG
|
|
203
|
+
},
|
|
204
|
+
ResolutionUnit: {
|
|
205
|
+
tag: 296,
|
|
206
|
+
type: l.SHORT
|
|
207
|
+
},
|
|
208
|
+
PageNumber: {
|
|
209
|
+
tag: 297,
|
|
210
|
+
type: l.SHORT,
|
|
211
|
+
isArray: !0
|
|
212
|
+
},
|
|
213
|
+
TransferFunction: {
|
|
214
|
+
tag: 301,
|
|
215
|
+
type: l.SHORT,
|
|
216
|
+
isArray: !0
|
|
217
|
+
},
|
|
218
|
+
Software: {
|
|
219
|
+
tag: 305,
|
|
220
|
+
type: l.ASCII
|
|
221
|
+
},
|
|
222
|
+
DateTime: {
|
|
223
|
+
tag: 306,
|
|
224
|
+
type: l.ASCII
|
|
225
|
+
},
|
|
226
|
+
Artist: {
|
|
227
|
+
tag: 315,
|
|
228
|
+
type: l.ASCII
|
|
229
|
+
},
|
|
230
|
+
HostComputer: {
|
|
231
|
+
tag: 316,
|
|
232
|
+
type: l.ASCII
|
|
233
|
+
},
|
|
234
|
+
Predictor: {
|
|
235
|
+
tag: 317,
|
|
236
|
+
type: l.SHORT
|
|
237
|
+
},
|
|
238
|
+
WhitePoint: {
|
|
239
|
+
tag: 318,
|
|
240
|
+
type: l.RATIONAL,
|
|
241
|
+
isArray: !0
|
|
242
|
+
},
|
|
243
|
+
PrimaryChromaticities: {
|
|
244
|
+
tag: 319,
|
|
245
|
+
type: l.RATIONAL,
|
|
246
|
+
isArray: !0
|
|
247
|
+
},
|
|
248
|
+
ColorMap: {
|
|
249
|
+
tag: 320,
|
|
250
|
+
type: l.SHORT,
|
|
251
|
+
isArray: !0
|
|
252
|
+
},
|
|
253
|
+
HalftoneHints: {
|
|
254
|
+
tag: 321,
|
|
255
|
+
type: l.SHORT,
|
|
256
|
+
isArray: !0
|
|
257
|
+
},
|
|
258
|
+
TileWidth: {
|
|
259
|
+
tag: 322,
|
|
260
|
+
type: l.SHORT,
|
|
261
|
+
eager: !0
|
|
262
|
+
},
|
|
263
|
+
TileLength: {
|
|
264
|
+
tag: 323,
|
|
265
|
+
type: l.SHORT,
|
|
266
|
+
eager: !0
|
|
267
|
+
},
|
|
268
|
+
TileOffsets: {
|
|
269
|
+
tag: 324,
|
|
270
|
+
type: l.LONG,
|
|
271
|
+
isArray: !0
|
|
272
|
+
},
|
|
273
|
+
TileByteCounts: {
|
|
274
|
+
tag: 325,
|
|
275
|
+
type: l.SHORT,
|
|
276
|
+
isArray: !0
|
|
277
|
+
},
|
|
278
|
+
InkSet: {
|
|
279
|
+
tag: 332,
|
|
280
|
+
type: l.SHORT
|
|
281
|
+
},
|
|
282
|
+
InkNames: {
|
|
283
|
+
tag: 333,
|
|
284
|
+
type: l.ASCII
|
|
285
|
+
},
|
|
286
|
+
NumberOfInks: {
|
|
287
|
+
tag: 334,
|
|
288
|
+
type: l.SHORT
|
|
289
|
+
},
|
|
290
|
+
DotRange: {
|
|
291
|
+
tag: 336,
|
|
292
|
+
type: l.BYTE,
|
|
293
|
+
isArray: !0
|
|
294
|
+
},
|
|
295
|
+
TargetPrinter: {
|
|
296
|
+
tag: 337,
|
|
297
|
+
type: l.ASCII
|
|
298
|
+
},
|
|
299
|
+
ExtraSamples: {
|
|
300
|
+
tag: 338,
|
|
301
|
+
type: l.BYTE,
|
|
302
|
+
isArray: !0,
|
|
303
|
+
eager: !0
|
|
304
|
+
},
|
|
305
|
+
SampleFormat: {
|
|
306
|
+
tag: 339,
|
|
307
|
+
type: l.SHORT,
|
|
308
|
+
isArray: !0,
|
|
309
|
+
eager: !0
|
|
310
|
+
},
|
|
311
|
+
SMinSampleValue: {
|
|
312
|
+
tag: 340,
|
|
313
|
+
isArray: !0
|
|
314
|
+
},
|
|
315
|
+
SMaxSampleValue: {
|
|
316
|
+
tag: 341,
|
|
317
|
+
isArray: !0
|
|
318
|
+
},
|
|
319
|
+
TransferRange: {
|
|
320
|
+
tag: 342,
|
|
321
|
+
type: l.SHORT,
|
|
322
|
+
isArray: !0
|
|
323
|
+
},
|
|
324
|
+
JPEGProc: {
|
|
325
|
+
tag: 512,
|
|
326
|
+
type: l.SHORT
|
|
327
|
+
},
|
|
328
|
+
JPEGInterchangeFormat: {
|
|
329
|
+
tag: 513,
|
|
330
|
+
type: l.LONG
|
|
331
|
+
},
|
|
332
|
+
JPEGInterchangeFormatLngth: {
|
|
333
|
+
tag: 514,
|
|
334
|
+
type: l.LONG
|
|
335
|
+
},
|
|
336
|
+
JPEGRestartInterval: {
|
|
337
|
+
tag: 515,
|
|
338
|
+
type: l.SHORT
|
|
339
|
+
},
|
|
340
|
+
JPEGLosslessPredictors: {
|
|
341
|
+
tag: 517,
|
|
342
|
+
type: l.SHORT,
|
|
343
|
+
isArray: !0
|
|
344
|
+
},
|
|
345
|
+
JPEGPointTransforms: {
|
|
346
|
+
tag: 518,
|
|
347
|
+
type: l.SHORT,
|
|
348
|
+
isArray: !0
|
|
349
|
+
},
|
|
350
|
+
JPEGQTables: {
|
|
351
|
+
tag: 519,
|
|
352
|
+
type: l.LONG,
|
|
353
|
+
isArray: !0
|
|
354
|
+
},
|
|
355
|
+
JPEGDCTables: {
|
|
356
|
+
tag: 520,
|
|
357
|
+
type: l.LONG,
|
|
358
|
+
isArray: !0
|
|
359
|
+
},
|
|
360
|
+
JPEGACTables: {
|
|
361
|
+
tag: 521,
|
|
362
|
+
type: l.LONG,
|
|
363
|
+
isArray: !0
|
|
364
|
+
},
|
|
365
|
+
YCbCrCoefficients: {
|
|
366
|
+
tag: 529,
|
|
367
|
+
type: l.RATIONAL,
|
|
368
|
+
isArray: !0
|
|
369
|
+
},
|
|
370
|
+
YCbCrSubSampling: {
|
|
371
|
+
tag: 530,
|
|
372
|
+
type: l.SHORT,
|
|
373
|
+
isArray: !0
|
|
374
|
+
},
|
|
375
|
+
YCbCrPositioning: {
|
|
376
|
+
tag: 531,
|
|
377
|
+
type: l.SHORT
|
|
378
|
+
},
|
|
379
|
+
ReferenceBlackWhite: {
|
|
380
|
+
tag: 532,
|
|
381
|
+
type: l.LONG,
|
|
382
|
+
isArray: !0
|
|
383
|
+
},
|
|
384
|
+
Copyright: {
|
|
385
|
+
tag: 33432,
|
|
386
|
+
type: l.ASCII
|
|
387
|
+
},
|
|
388
|
+
BadFaxLines: { tag: 326 },
|
|
389
|
+
CleanFaxData: { tag: 327 },
|
|
390
|
+
ClipPath: { tag: 343 },
|
|
391
|
+
ConsecutiveBadFaxLines: { tag: 328 },
|
|
392
|
+
Decode: { tag: 433 },
|
|
393
|
+
DefaultImageColor: { tag: 434 },
|
|
394
|
+
Indexed: { tag: 346 },
|
|
395
|
+
JPEGTables: {
|
|
396
|
+
tag: 347,
|
|
397
|
+
isArray: !0,
|
|
398
|
+
eager: !0
|
|
399
|
+
},
|
|
400
|
+
StripRowCounts: {
|
|
401
|
+
tag: 559,
|
|
402
|
+
isArray: !0
|
|
403
|
+
},
|
|
404
|
+
SubIFDs: {
|
|
405
|
+
tag: 330,
|
|
406
|
+
isArray: !0
|
|
407
|
+
},
|
|
408
|
+
XClipPathUnits: { tag: 344 },
|
|
409
|
+
YClipPathUnits: { tag: 345 },
|
|
410
|
+
ApertureValue: { tag: 37378 },
|
|
411
|
+
ColorSpace: { tag: 40961 },
|
|
412
|
+
DateTimeDigitized: { tag: 36868 },
|
|
413
|
+
DateTimeOriginal: { tag: 36867 },
|
|
414
|
+
ExifIFD: {
|
|
415
|
+
tag: 34665,
|
|
416
|
+
name: "Exif IFD",
|
|
417
|
+
type: l.LONG
|
|
418
|
+
},
|
|
419
|
+
ExifVersion: { tag: 36864 },
|
|
420
|
+
ExposureTime: { tag: 33434 },
|
|
421
|
+
FileSource: { tag: 41728 },
|
|
422
|
+
Flash: { tag: 37385 },
|
|
423
|
+
FlashpixVersion: { tag: 40960 },
|
|
424
|
+
FNumber: { tag: 33437 },
|
|
425
|
+
ImageUniqueID: { tag: 42016 },
|
|
426
|
+
LightSource: { tag: 37384 },
|
|
427
|
+
MakerNote: { tag: 37500 },
|
|
428
|
+
ShutterSpeedValue: { tag: 37377 },
|
|
429
|
+
UserComment: { tag: 37510 },
|
|
430
|
+
IPTC: { tag: 33723 },
|
|
431
|
+
CZ_LSMINFO: { tag: 34412 },
|
|
432
|
+
ICCProfile: {
|
|
433
|
+
tag: 34675,
|
|
434
|
+
name: "ICC Profile"
|
|
435
|
+
},
|
|
436
|
+
XMP: { tag: 700 },
|
|
437
|
+
GDAL_METADATA: { tag: 42112 },
|
|
438
|
+
GDAL_NODATA: {
|
|
439
|
+
tag: 42113,
|
|
440
|
+
type: l.ASCII,
|
|
441
|
+
eager: !0
|
|
442
|
+
},
|
|
443
|
+
Photoshop: { tag: 34377 },
|
|
444
|
+
ModelPixelScale: {
|
|
445
|
+
tag: 33550,
|
|
446
|
+
type: l.DOUBLE,
|
|
447
|
+
isArray: !0,
|
|
448
|
+
eager: !0
|
|
449
|
+
},
|
|
450
|
+
ModelTiepoint: {
|
|
451
|
+
tag: 33922,
|
|
452
|
+
type: l.DOUBLE,
|
|
453
|
+
isArray: !0,
|
|
454
|
+
eager: !0
|
|
455
|
+
},
|
|
456
|
+
ModelTransformation: {
|
|
457
|
+
tag: 34264,
|
|
458
|
+
type: l.DOUBLE,
|
|
459
|
+
isArray: !0,
|
|
460
|
+
eager: !0
|
|
461
|
+
},
|
|
462
|
+
GeoKeyDirectory: {
|
|
463
|
+
tag: 34735,
|
|
464
|
+
type: l.SHORT,
|
|
465
|
+
isArray: !0,
|
|
466
|
+
eager: !0
|
|
467
|
+
},
|
|
468
|
+
GeoDoubleParams: {
|
|
469
|
+
tag: 34736,
|
|
470
|
+
type: l.DOUBLE,
|
|
471
|
+
isArray: !0,
|
|
472
|
+
eager: !0
|
|
473
|
+
},
|
|
474
|
+
GeoAsciiParams: {
|
|
475
|
+
tag: 34737,
|
|
476
|
+
type: l.ASCII,
|
|
477
|
+
eager: !0
|
|
478
|
+
},
|
|
479
|
+
LercParameters: {
|
|
480
|
+
tag: 50674,
|
|
481
|
+
eager: !0
|
|
482
|
+
}
|
|
483
|
+
}, p = {}, m = {};
|
|
484
|
+
function h(e, t, n, r = !1, i = !1) {
|
|
485
|
+
p[t] = e, m[e] = {
|
|
486
|
+
tag: e,
|
|
487
|
+
name: t,
|
|
488
|
+
type: typeof n == "string" ? l[n] : n,
|
|
489
|
+
isArray: r,
|
|
490
|
+
eager: i
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
for (let [e, t] of Object.entries(f)) {
|
|
494
|
+
let n = t;
|
|
495
|
+
h(n.tag, n.name || e, n.type, n.isArray, n.eager);
|
|
496
|
+
}
|
|
497
|
+
function g(e) {
|
|
498
|
+
return typeof e == "number" ? e : p[e];
|
|
499
|
+
}
|
|
500
|
+
var _ = {
|
|
501
|
+
WhiteIsZero: 0,
|
|
502
|
+
BlackIsZero: 1,
|
|
503
|
+
RGB: 2,
|
|
504
|
+
Palette: 3,
|
|
505
|
+
TransparencyMask: 4,
|
|
506
|
+
CMYK: 5,
|
|
507
|
+
YCbCr: 6,
|
|
508
|
+
CIELab: 8,
|
|
509
|
+
ICCLab: 9
|
|
510
|
+
}, v = {
|
|
511
|
+
Unspecified: 0,
|
|
512
|
+
Assocalpha: 1,
|
|
513
|
+
Unassalpha: 2
|
|
514
|
+
}, y = {
|
|
515
|
+
Version: 0,
|
|
516
|
+
AddCompression: 1
|
|
517
|
+
}, b = {
|
|
518
|
+
None: 0,
|
|
519
|
+
Deflate: 1,
|
|
520
|
+
Zstandard: 2
|
|
521
|
+
}, x = {
|
|
522
|
+
1024: "GTModelTypeGeoKey",
|
|
523
|
+
1025: "GTRasterTypeGeoKey",
|
|
524
|
+
1026: "GTCitationGeoKey",
|
|
525
|
+
2048: "GeographicTypeGeoKey",
|
|
526
|
+
2049: "GeogCitationGeoKey",
|
|
527
|
+
2050: "GeogGeodeticDatumGeoKey",
|
|
528
|
+
2051: "GeogPrimeMeridianGeoKey",
|
|
529
|
+
2052: "GeogLinearUnitsGeoKey",
|
|
530
|
+
2053: "GeogLinearUnitSizeGeoKey",
|
|
531
|
+
2054: "GeogAngularUnitsGeoKey",
|
|
532
|
+
2055: "GeogAngularUnitSizeGeoKey",
|
|
533
|
+
2056: "GeogEllipsoidGeoKey",
|
|
534
|
+
2057: "GeogSemiMajorAxisGeoKey",
|
|
535
|
+
2058: "GeogSemiMinorAxisGeoKey",
|
|
536
|
+
2059: "GeogInvFlatteningGeoKey",
|
|
537
|
+
2060: "GeogAzimuthUnitsGeoKey",
|
|
538
|
+
2061: "GeogPrimeMeridianLongGeoKey",
|
|
539
|
+
2062: "GeogTOWGS84GeoKey",
|
|
540
|
+
3072: "ProjectedCSTypeGeoKey",
|
|
541
|
+
3073: "PCSCitationGeoKey",
|
|
542
|
+
3074: "ProjectionGeoKey",
|
|
543
|
+
3075: "ProjCoordTransGeoKey",
|
|
544
|
+
3076: "ProjLinearUnitsGeoKey",
|
|
545
|
+
3077: "ProjLinearUnitSizeGeoKey",
|
|
546
|
+
3078: "ProjStdParallel1GeoKey",
|
|
547
|
+
3079: "ProjStdParallel2GeoKey",
|
|
548
|
+
3080: "ProjNatOriginLongGeoKey",
|
|
549
|
+
3081: "ProjNatOriginLatGeoKey",
|
|
550
|
+
3082: "ProjFalseEastingGeoKey",
|
|
551
|
+
3083: "ProjFalseNorthingGeoKey",
|
|
552
|
+
3084: "ProjFalseOriginLongGeoKey",
|
|
553
|
+
3085: "ProjFalseOriginLatGeoKey",
|
|
554
|
+
3086: "ProjFalseOriginEastingGeoKey",
|
|
555
|
+
3087: "ProjFalseOriginNorthingGeoKey",
|
|
556
|
+
3088: "ProjCenterLongGeoKey",
|
|
557
|
+
3089: "ProjCenterLatGeoKey",
|
|
558
|
+
3090: "ProjCenterEastingGeoKey",
|
|
559
|
+
3091: "ProjCenterNorthingGeoKey",
|
|
560
|
+
3092: "ProjScaleAtNatOriginGeoKey",
|
|
561
|
+
3093: "ProjScaleAtCenterGeoKey",
|
|
562
|
+
3094: "ProjAzimuthAngleGeoKey",
|
|
563
|
+
3095: "ProjStraightVertPoleLongGeoKey",
|
|
564
|
+
3096: "ProjRectifiedGridAngleGeoKey",
|
|
565
|
+
4096: "VerticalCSTypeGeoKey",
|
|
566
|
+
4097: "VerticalCitationGeoKey",
|
|
567
|
+
4098: "VerticalDatumGeoKey",
|
|
568
|
+
4099: "VerticalUnitsGeoKey"
|
|
569
|
+
}, S = {};
|
|
570
|
+
for (let [e, t] of Object.entries(x)) S[t] = parseInt(e, 10);
|
|
571
|
+
//#endregion
|
|
572
|
+
export { x as a, g as c, c as d, l as i, m as l, b as n, d as o, y as r, _ as s, v as t, o as u };
|
|
573
|
+
|
|
574
|
+
//# sourceMappingURL=globals-QF85DtAk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globals-QF85DtAk.js","names":[],"sources":["../node_modules/geotiff/dist-module/globals.js"],"sourcesContent":["/** @import {TypedArray} from './geotiff.js' */\nexport const fieldTypes = {\n BYTE: /** @type {1} */ (0x0001),\n ASCII: /** @type {2} */ (0x0002),\n SHORT: /** @type {3} */ (0x0003),\n LONG: /** @type {4} */ (0x0004),\n RATIONAL: /** @type {5} */ (0x0005),\n SBYTE: /** @type {6} */ (0x0006),\n UNDEFINED: /** @type {7} */ (0x0007),\n SSHORT: /** @type {8} */ (0x0008),\n SLONG: /** @type {9} */ (0x0009),\n SRATIONAL: /** @type {10} */ (0x000a),\n FLOAT: /** @type {11} */ (0x000b),\n DOUBLE: /** @type {12} */ (0x000c),\n // IFD offset, suggested by https://owl.phy.queensu.ca/~phil/exiftool/standards.html\n IFD: /** @type {13} */ (0x000d),\n // introduced by BigTIFF\n LONG8: /** @type {16} */ (0x0010),\n SLONG8: /** @type {17} */ (0x0011),\n IFD8: /** @type {18} */ (0x0012),\n};\n/** @typedef {keyof fieldTypes} FieldTypeName */\n/** @typedef {fieldTypes[keyof typeof fieldTypes]} FieldType */\n/** @typedef {Record<FieldTypeName, number>} FieldTypeSizes */\nexport const fieldTypeSizes = /** @type {const} */ ({\n [fieldTypes.BYTE]: 1,\n [fieldTypes.ASCII]: 1,\n [fieldTypes.SBYTE]: 1,\n [fieldTypes.UNDEFINED]: 1,\n [fieldTypes.SHORT]: 2,\n [fieldTypes.SSHORT]: 2,\n [fieldTypes.LONG]: 4,\n [fieldTypes.SLONG]: 4,\n [fieldTypes.FLOAT]: 4,\n [fieldTypes.IFD]: 4,\n [fieldTypes.RATIONAL]: 8,\n [fieldTypes.SRATIONAL]: 8,\n [fieldTypes.DOUBLE]: 8,\n [fieldTypes.LONG8]: 8,\n [fieldTypes.SLONG8]: 8,\n [fieldTypes.IFD8]: 8,\n});\n/** @typedef {fieldTypeSizes[keyof typeof fieldTypeSizes]} FieldTypeSize */\n/**\n * Get the byte size for a given field type.\n * @param {FieldType} fieldType The TIFF field type constant\n * @returns {number} The size in bytes\n * @throws {RangeError} If the field type is invalid\n */\nexport function getFieldTypeSize(fieldType) {\n const size = fieldTypeSizes[fieldType];\n if (size === undefined) {\n throw new RangeError(`Invalid field type: ${fieldType}`);\n }\n return size;\n}\n/**\n * @typedef {Object} TagDictionaryEntry\n * @property {number} tag\n * @property {string} [name]\n * @property {number} [type]\n * @property {boolean} [isArray]\n * @property {boolean} [eager]\n */\nexport const tagDictionary = /** @type {const} */ ({\n NewSubfileType: { tag: 254, type: fieldTypes.LONG, eager: true },\n SubfileType: { tag: 255, type: fieldTypes.SHORT, eager: true },\n ImageWidth: { tag: 256, type: fieldTypes.SHORT, eager: true },\n ImageLength: { tag: 257, type: fieldTypes.SHORT, eager: true },\n BitsPerSample: { tag: 258, type: fieldTypes.SHORT, isArray: true, eager: true },\n Compression: { tag: 259, type: fieldTypes.SHORT, eager: true },\n PhotometricInterpretation: { tag: 262, type: fieldTypes.SHORT, eager: true },\n Threshholding: { tag: 263, type: fieldTypes.SHORT },\n CellWidth: { tag: 264, type: fieldTypes.SHORT },\n CellLength: { tag: 265, type: fieldTypes.SHORT },\n FillOrder: { tag: 266, type: fieldTypes.SHORT },\n DocumentName: { tag: 269, type: fieldTypes.ASCII },\n ImageDescription: { tag: 270, type: fieldTypes.ASCII },\n Make: { tag: 271, type: fieldTypes.ASCII },\n Model: { tag: 272, type: fieldTypes.ASCII },\n StripOffsets: { tag: 273, type: fieldTypes.SHORT, isArray: true },\n Orientation: { tag: 274, type: fieldTypes.SHORT },\n SamplesPerPixel: { tag: 277, type: fieldTypes.SHORT, eager: true },\n RowsPerStrip: { tag: 278, type: fieldTypes.SHORT, eager: true },\n StripByteCounts: { tag: 279, type: fieldTypes.LONG, isArray: true },\n MinSampleValue: { tag: 280, type: fieldTypes.SHORT, isArray: true },\n MaxSampleValue: { tag: 281, type: fieldTypes.SHORT, isArray: true },\n XResolution: { tag: 282, type: fieldTypes.RATIONAL },\n YResolution: { tag: 283, type: fieldTypes.RATIONAL },\n PlanarConfiguration: { tag: 284, type: fieldTypes.SHORT, eager: true },\n PageName: { tag: 285, type: fieldTypes.ASCII },\n XPosition: { tag: 286, type: fieldTypes.RATIONAL },\n YPosition: { tag: 287, type: fieldTypes.RATIONAL },\n FreeOffsets: { tag: 288, type: fieldTypes.LONG },\n FreeByteCounts: { tag: 289, type: fieldTypes.LONG },\n GrayResponseUnit: { tag: 290, type: fieldTypes.SHORT },\n GrayResponseCurve: { tag: 291, type: fieldTypes.SHORT, isArray: true },\n T4Options: { tag: 292, type: fieldTypes.LONG },\n T6Options: { tag: 293, type: fieldTypes.LONG },\n ResolutionUnit: { tag: 296, type: fieldTypes.SHORT },\n PageNumber: { tag: 297, type: fieldTypes.SHORT, isArray: true },\n TransferFunction: { tag: 301, type: fieldTypes.SHORT, isArray: true },\n Software: { tag: 305, type: fieldTypes.ASCII },\n DateTime: { tag: 306, type: fieldTypes.ASCII },\n Artist: { tag: 315, type: fieldTypes.ASCII },\n HostComputer: { tag: 316, type: fieldTypes.ASCII },\n Predictor: { tag: 317, type: fieldTypes.SHORT },\n WhitePoint: { tag: 318, type: fieldTypes.RATIONAL, isArray: true },\n PrimaryChromaticities: { tag: 319, type: fieldTypes.RATIONAL, isArray: true },\n ColorMap: { tag: 320, type: fieldTypes.SHORT, isArray: true },\n HalftoneHints: { tag: 321, type: fieldTypes.SHORT, isArray: true },\n TileWidth: { tag: 322, type: fieldTypes.SHORT, eager: true },\n TileLength: { tag: 323, type: fieldTypes.SHORT, eager: true },\n TileOffsets: { tag: 324, type: fieldTypes.LONG, isArray: true },\n TileByteCounts: { tag: 325, type: fieldTypes.SHORT, isArray: true },\n InkSet: { tag: 332, type: fieldTypes.SHORT },\n InkNames: { tag: 333, type: fieldTypes.ASCII },\n NumberOfInks: { tag: 334, type: fieldTypes.SHORT },\n DotRange: { tag: 336, type: fieldTypes.BYTE, isArray: true },\n TargetPrinter: { tag: 337, type: fieldTypes.ASCII },\n ExtraSamples: { tag: 338, type: fieldTypes.BYTE, isArray: true, eager: true },\n SampleFormat: { tag: 339, type: fieldTypes.SHORT, isArray: true, eager: true },\n SMinSampleValue: { tag: 340, isArray: true },\n SMaxSampleValue: { tag: 341, isArray: true },\n TransferRange: { tag: 342, type: fieldTypes.SHORT, isArray: true },\n JPEGProc: { tag: 512, type: fieldTypes.SHORT },\n JPEGInterchangeFormat: { tag: 513, type: fieldTypes.LONG },\n JPEGInterchangeFormatLngth: { tag: 514, type: fieldTypes.LONG },\n JPEGRestartInterval: { tag: 515, type: fieldTypes.SHORT },\n JPEGLosslessPredictors: { tag: 517, type: fieldTypes.SHORT, isArray: true },\n JPEGPointTransforms: { tag: 518, type: fieldTypes.SHORT, isArray: true },\n JPEGQTables: { tag: 519, type: fieldTypes.LONG, isArray: true },\n JPEGDCTables: { tag: 520, type: fieldTypes.LONG, isArray: true },\n JPEGACTables: { tag: 521, type: fieldTypes.LONG, isArray: true },\n YCbCrCoefficients: { tag: 529, type: fieldTypes.RATIONAL, isArray: true },\n YCbCrSubSampling: { tag: 530, type: fieldTypes.SHORT, isArray: true },\n YCbCrPositioning: { tag: 531, type: fieldTypes.SHORT },\n ReferenceBlackWhite: { tag: 532, type: fieldTypes.LONG, isArray: true },\n Copyright: { tag: 33432, type: fieldTypes.ASCII },\n BadFaxLines: { tag: 326 },\n CleanFaxData: { tag: 327 },\n ClipPath: { tag: 343 },\n ConsecutiveBadFaxLines: { tag: 328 },\n Decode: { tag: 433 },\n DefaultImageColor: { tag: 434 },\n Indexed: { tag: 346 },\n JPEGTables: { tag: 347, isArray: true, eager: true },\n StripRowCounts: { tag: 559, isArray: true },\n SubIFDs: { tag: 330, isArray: true },\n XClipPathUnits: { tag: 344 },\n YClipPathUnits: { tag: 345 },\n ApertureValue: { tag: 37378 },\n ColorSpace: { tag: 40961 },\n DateTimeDigitized: { tag: 36868 },\n DateTimeOriginal: { tag: 36867 },\n ExifIFD: { tag: 34665, name: 'Exif IFD', type: fieldTypes.LONG },\n ExifVersion: { tag: 36864 },\n ExposureTime: { tag: 33434 },\n FileSource: { tag: 41728 },\n Flash: { tag: 37385 },\n FlashpixVersion: { tag: 40960 },\n FNumber: { tag: 33437 },\n ImageUniqueID: { tag: 42016 },\n LightSource: { tag: 37384 },\n MakerNote: { tag: 37500 },\n ShutterSpeedValue: { tag: 37377 },\n UserComment: { tag: 37510 },\n IPTC: { tag: 33723 },\n CZ_LSMINFO: { tag: 34412 },\n ICCProfile: { tag: 34675, name: 'ICC Profile' },\n XMP: { tag: 700 },\n GDAL_METADATA: { tag: 42112 },\n GDAL_NODATA: { tag: 42113, type: fieldTypes.ASCII, eager: true },\n Photoshop: { tag: 34377 },\n ModelPixelScale: { tag: 33550, type: fieldTypes.DOUBLE, isArray: true, eager: true },\n ModelTiepoint: { tag: 33922, type: fieldTypes.DOUBLE, isArray: true, eager: true },\n ModelTransformation: { tag: 34264, type: fieldTypes.DOUBLE, isArray: true, eager: true },\n GeoKeyDirectory: { tag: 34735, type: fieldTypes.SHORT, isArray: true, eager: true },\n GeoDoubleParams: { tag: 34736, type: fieldTypes.DOUBLE, isArray: true, eager: true },\n GeoAsciiParams: { tag: 34737, type: fieldTypes.ASCII, eager: true },\n LercParameters: { tag: 50674, eager: true },\n});\n/** @typedef {keyof typeof tagDictionary} TagName */\n/** @typedef {typeof tagDictionary[keyof typeof tagDictionary]['tag']} Tag */\n/**\n * @typedef {Extract<keyof typeof tagDictionary,\n * { [K in keyof typeof tagDictionary]: (typeof tagDictionary)[K] extends { eager: true }\n * ? K : never }[keyof typeof tagDictionary]>} EagerTagName\n */\n/**\n * @typedef {Extract<Tag, { [K in keyof typeof tagDictionary]: (typeof tagDictionary)[K] extends { eager: true }\n * ? (typeof tagDictionary)[K]['tag'] : never }[keyof typeof tagDictionary]>} EagerTag\n */\n/** @typedef {Extract<typeof tagDictionary[keyof typeof tagDictionary], {type: any}>['type']} TagType */\n/**\n * @template {number} T\n * @typedef {T extends 2 ? string : number} GeoTiffPrimitive\n */\n/**\n * @template {TagName} T\n * @typedef {typeof tagDictionary[T]} TagDef\n */\n/**\n * @typedef {{\n * 1: number;\n * 2: string;\n * 3: number;\n * 4: number;\n * 5: number;\n * 6: number;\n * 7: ArrayBuffer;\n * 8: number;\n * 9: number;\n * 10: number;\n * 11: number;\n * 12: number;\n * 16: number;\n * 17: number;\n * 18: number;\n * }} FieldTypeMap\n */\n/**\n * @template {TagName} T\n * @typedef {TagDef<T> extends { isArray: true }\n * ? (TagDef<T> extends { type: typeof fieldTypes.DOUBLE } ? number[] :\n * TagDef<T> extends { type: typeof fieldTypes.ASCII } ? string[] :\n * TagDef<T> extends { type: typeof fieldTypes.BYTE | typeof fieldTypes.SBYTE | typeof fieldTypes.UNDEFINED }\n * ? Uint8Array | Int8Array :\n * (number[] | TypedArray))\n * : (TagDef<T> extends { type: keyof FieldTypeMap } ? FieldTypeMap[TagDef<T>['type']] : any)} TagValue\n */\n/**\n * Maps tag names to their numeric values\n * @type {Record<string, number>}\n */\nexport const tags = {};\n/**\n * Maps tag numbers to their definitions\n * @type {Record<number, { tag: number, name: string, type: string|number|undefined, isArray: boolean, eager: boolean }>}\n */\nexport const tagDefinitions = {};\n/**\n * Registers a new field tag\n * @param {number} tag the numeric tiff tag\n * @param {string} name the name of the tag that will be reported in the IFD\n * @param {keyof fieldTypes|number|undefined} type the tags data type\n * @param {Boolean} isArray whether the tag is an array\n * @param {boolean} [eager=false] whether to eagerly fetch deferred fields.\n * When false (default), tags are loaded lazily on-demand.\n * When true, all tags are loaded immediately during parsing.\n */\nexport function registerTag(tag, name, type, isArray = false, eager = false) {\n tags[name] = tag;\n tagDefinitions[tag] = { tag, name, type: typeof type === 'string' ? fieldTypes[type] : type, isArray, eager };\n}\nfor (const [key, value] of Object.entries(tagDictionary)) {\n const entry = /** @type {TagDictionaryEntry} */ (value);\n registerTag(entry.tag, entry.name || key, entry.type, entry.isArray, entry.eager);\n}\n/**\n * @param {number|string} tagIdentifier The field tag ID or name\n * @returns {number} the resolved tag ID\n */\nexport function resolveTag(tagIdentifier) {\n if (typeof tagIdentifier === 'number') {\n return tagIdentifier;\n }\n return tags[tagIdentifier];\n}\n/**\n * @param {number|string} tagIdentifier The field tag ID or name\n * @returns {{ tag: number, name: string, type: string|number|undefined, isArray: boolean, eager: boolean }} the tag definition\n */\nexport function getTag(tagIdentifier) {\n return tagDefinitions[resolveTag(tagIdentifier)];\n}\nexport const fieldTagTypes = {\n 256: 'SHORT',\n 257: 'SHORT',\n 258: 'SHORT',\n 259: 'SHORT',\n 262: 'SHORT',\n 270: 'ASCII',\n 271: 'ASCII',\n 272: 'ASCII',\n 273: 'LONG',\n 274: 'SHORT',\n 277: 'SHORT',\n 278: 'LONG',\n 279: 'LONG',\n 282: 'RATIONAL',\n 283: 'RATIONAL',\n 284: 'SHORT',\n 286: 'SHORT',\n 287: 'RATIONAL',\n 296: 'SHORT',\n 297: 'SHORT',\n 305: 'ASCII',\n 306: 'ASCII',\n 315: 'ASCII',\n 338: 'SHORT',\n 339: 'SHORT',\n 513: 'LONG',\n 514: 'LONG',\n 1024: 'SHORT',\n 1025: 'SHORT',\n 1026: 'ASCII',\n 2048: 'SHORT',\n 2049: 'ASCII',\n 2052: 'SHORT',\n 2054: 'SHORT',\n 2057: 'DOUBLE',\n 2059: 'DOUBLE',\n 2060: 'SHORT',\n 3072: 'SHORT',\n 3073: 'ASCII',\n 3076: 'SHORT',\n 4096: 'SHORT',\n 4097: 'ASCII',\n 4099: 'SHORT',\n 33432: 'ASCII',\n 33550: 'DOUBLE',\n 33922: 'DOUBLE',\n 34264: 'DOUBLE',\n 34665: 'LONG',\n 34735: 'SHORT',\n 34736: 'DOUBLE',\n 34737: 'ASCII',\n 42113: 'ASCII',\n};\nexport const photometricInterpretations = {\n WhiteIsZero: 0,\n BlackIsZero: 1,\n RGB: 2,\n Palette: 3,\n TransparencyMask: 4,\n CMYK: 5,\n YCbCr: 6,\n CIELab: 8,\n ICCLab: 9,\n};\nexport const ExtraSamplesValues = {\n Unspecified: 0,\n Assocalpha: 1,\n Unassalpha: 2,\n};\nexport const LercParameters = {\n Version: 0,\n AddCompression: 1,\n};\nexport const LercAddCompression = {\n None: 0,\n Deflate: 1,\n Zstandard: 2,\n};\nexport const geoKeyNames = /** @type {const} */ ({\n 1024: 'GTModelTypeGeoKey',\n 1025: 'GTRasterTypeGeoKey',\n 1026: 'GTCitationGeoKey',\n 2048: 'GeographicTypeGeoKey',\n 2049: 'GeogCitationGeoKey',\n 2050: 'GeogGeodeticDatumGeoKey',\n 2051: 'GeogPrimeMeridianGeoKey',\n 2052: 'GeogLinearUnitsGeoKey',\n 2053: 'GeogLinearUnitSizeGeoKey',\n 2054: 'GeogAngularUnitsGeoKey',\n 2055: 'GeogAngularUnitSizeGeoKey',\n 2056: 'GeogEllipsoidGeoKey',\n 2057: 'GeogSemiMajorAxisGeoKey',\n 2058: 'GeogSemiMinorAxisGeoKey',\n 2059: 'GeogInvFlatteningGeoKey',\n 2060: 'GeogAzimuthUnitsGeoKey',\n 2061: 'GeogPrimeMeridianLongGeoKey',\n 2062: 'GeogTOWGS84GeoKey',\n 3072: 'ProjectedCSTypeGeoKey',\n 3073: 'PCSCitationGeoKey',\n 3074: 'ProjectionGeoKey',\n 3075: 'ProjCoordTransGeoKey',\n 3076: 'ProjLinearUnitsGeoKey',\n 3077: 'ProjLinearUnitSizeGeoKey',\n 3078: 'ProjStdParallel1GeoKey',\n 3079: 'ProjStdParallel2GeoKey',\n 3080: 'ProjNatOriginLongGeoKey',\n 3081: 'ProjNatOriginLatGeoKey',\n 3082: 'ProjFalseEastingGeoKey',\n 3083: 'ProjFalseNorthingGeoKey',\n 3084: 'ProjFalseOriginLongGeoKey',\n 3085: 'ProjFalseOriginLatGeoKey',\n 3086: 'ProjFalseOriginEastingGeoKey',\n 3087: 'ProjFalseOriginNorthingGeoKey',\n 3088: 'ProjCenterLongGeoKey',\n 3089: 'ProjCenterLatGeoKey',\n 3090: 'ProjCenterEastingGeoKey',\n 3091: 'ProjCenterNorthingGeoKey',\n 3092: 'ProjScaleAtNatOriginGeoKey',\n 3093: 'ProjScaleAtCenterGeoKey',\n 3094: 'ProjAzimuthAngleGeoKey',\n 3095: 'ProjStraightVertPoleLongGeoKey',\n 3096: 'ProjRectifiedGridAngleGeoKey',\n 4096: 'VerticalCSTypeGeoKey',\n 4097: 'VerticalCitationGeoKey',\n 4098: 'VerticalDatumGeoKey',\n 4099: 'VerticalUnitsGeoKey',\n});\n/** @typedef {geoKeyNames[keyof typeof geoKeyNames]} GeoKeyName */\n/**\n * @type {Record<GeoKeyName, number>}\n */\nexport const geoKeys = /** @type {Record<GeoKeyName, number>} */ ({});\nfor (const [key, name] of Object.entries(geoKeyNames)) {\n geoKeys[ /** @type {GeoKeyName} */(name)] = parseInt(key, 10);\n}\n//# sourceMappingURL=globals.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;aACa,IAAa;CACtB,MAAwB;CACxB,OAAyB;CACzB,OAAyB;CACzB,MAAwB;CACxB,UAA4B;CAC5B,OAAyB;CACzB,WAA6B;CAC7B,QAA0B;CAC1B,OAAyB;CACzB,WAA8B;CAC9B,OAA0B;CAC1B,QAA2B;CAE3B,KAAwB;CAExB,OAA0B;CAC1B,QAA2B;CAC3B,MAAyB;CAC5B,EAIY,IAAuC;EAC/C,EAAW,OAAO;EAClB,EAAW,QAAQ;EACnB,EAAW,QAAQ;EACnB,EAAW,YAAY;EACvB,EAAW,QAAQ;EACnB,EAAW,SAAS;EACpB,EAAW,OAAO;EAClB,EAAW,QAAQ;EACnB,EAAW,QAAQ;EACnB,EAAW,MAAM;EACjB,EAAW,WAAW;EACtB,EAAW,YAAY;EACvB,EAAW,SAAS;EACpB,EAAW,QAAQ;EACnB,EAAW,SAAS;EACpB,EAAW,OAAO;CACtB;AAQD,SAAgB,EAAiB,GAAW;CACxC,IAAM,I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