@cogeotiff/core 8.1.0 → 9.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +45 -7
  3. package/build/__benchmark__/cog.read.benchmark.js +5 -5
  4. package/build/__benchmark__/cog.read.benchmark.js.map +1 -1
  5. package/build/__benchmark__/source.file.js +9 -2
  6. package/build/__benchmark__/source.file.js.map +1 -1
  7. package/build/__test__/cog.image.test.js +14 -9
  8. package/build/__test__/cog.image.test.js.map +1 -1
  9. package/build/__test__/cog.read.test.js +50 -8
  10. package/build/__test__/cog.read.test.js.map +1 -1
  11. package/build/__test__/example.js +2 -2
  12. package/build/__test__/example.js.map +1 -1
  13. package/build/const/index.d.ts +1 -1
  14. package/build/const/index.js +1 -1
  15. package/build/const/index.js.map +1 -1
  16. package/build/const/tiff.mime.d.ts +11 -5
  17. package/build/const/tiff.mime.js +27 -14
  18. package/build/const/tiff.mime.js.map +1 -1
  19. package/build/const/tiff.tag.id.d.ts +603 -41
  20. package/build/const/tiff.tag.id.js +479 -50
  21. package/build/const/tiff.tag.id.js.map +1 -1
  22. package/build/const/tiff.tag.value.js +1 -1
  23. package/build/const/tiff.tag.value.js.map +1 -1
  24. package/build/index.d.ts +6 -4
  25. package/build/index.js +6 -3
  26. package/build/index.js.map +1 -1
  27. package/build/read/tiff.gdal.d.ts +1 -1
  28. package/build/read/tiff.gdal.js +1 -1
  29. package/build/read/tiff.gdal.js.map +1 -1
  30. package/build/read/tiff.ifd.config.js +1 -1
  31. package/build/read/tiff.ifd.config.js.map +1 -1
  32. package/build/read/tiff.tag.d.ts +3 -0
  33. package/build/read/tiff.tag.factory.d.ts +5 -5
  34. package/build/read/tiff.tag.factory.js +22 -13
  35. package/build/read/tiff.tag.factory.js.map +1 -1
  36. package/build/read/tiff.value.reader.d.ts +1 -1
  37. package/build/read/tiff.value.reader.js.map +1 -1
  38. package/build/{cog.tiff.d.ts → tiff.d.ts} +12 -10
  39. package/build/{cog.tiff.image.d.ts → tiff.image.d.ts} +69 -27
  40. package/build/{cog.tiff.image.js → tiff.image.js} +131 -82
  41. package/build/tiff.image.js.map +1 -0
  42. package/build/{cog.tiff.js → tiff.js} +17 -10
  43. package/build/tiff.js.map +1 -0
  44. package/build/util/bytes.d.ts +4 -2
  45. package/build/util/bytes.js +5 -2
  46. package/build/util/bytes.js.map +1 -1
  47. package/package.json +2 -2
  48. package/src/__benchmark__/cog.read.benchmark.ts +6 -5
  49. package/src/__benchmark__/source.file.ts +10 -2
  50. package/src/__test__/cog.image.test.ts +17 -9
  51. package/src/__test__/cog.read.test.ts +65 -9
  52. package/src/__test__/example.ts +3 -2
  53. package/src/const/index.ts +1 -1
  54. package/src/const/tiff.mime.ts +28 -14
  55. package/src/const/tiff.tag.id.ts +758 -131
  56. package/src/const/tiff.tag.value.ts +16 -16
  57. package/src/index.ts +20 -4
  58. package/src/read/tiff.gdal.ts +1 -1
  59. package/src/read/tiff.ifd.config.ts +1 -1
  60. package/src/read/tiff.tag.factory.ts +33 -17
  61. package/src/read/tiff.tag.ts +3 -0
  62. package/src/read/tiff.value.reader.ts +1 -1
  63. package/src/{cog.tiff.image.ts → tiff.image.ts} +140 -91
  64. package/src/{cog.tiff.ts → tiff.ts} +18 -16
  65. package/src/util/bytes.ts +5 -1
  66. package/build/cog.tiff.image.js.map +0 -1
  67. package/build/cog.tiff.js.map +0 -1
@@ -1,13 +1,313 @@
1
- // Stolen from geotiff.js
1
+ /** Sub file type for tag 254 {@link TiffTag.SubFileType} */
2
+ export var SubFileType;
3
+ (function (SubFileType) {
4
+ /** Reduced resolution version */
5
+ SubFileType[SubFileType["ReducedImage"] = 1] = "ReducedImage";
6
+ /** One page of many */
7
+ SubFileType[SubFileType["Page"] = 2] = "Page";
8
+ /** Transparency mask */
9
+ SubFileType[SubFileType["Mask"] = 4] = "Mask";
10
+ })(SubFileType || (SubFileType = {}));
11
+ export var Orientation;
12
+ (function (Orientation) {
13
+ /* row 0 top, col 0 lhs */
14
+ Orientation[Orientation["TopLeft"] = 1] = "TopLeft";
15
+ /* row 0 top, col 0 rhs */
16
+ Orientation[Orientation["TopRight"] = 2] = "TopRight";
17
+ /* row 0 bottom, col 0 rhs */
18
+ Orientation[Orientation["BottomRight"] = 3] = "BottomRight";
19
+ /* row 0 Bottom, col 0 lhs */
20
+ Orientation[Orientation["BottomLeft"] = 4] = "BottomLeft";
21
+ /* row 0 lhs, col 0 Top */
22
+ Orientation[Orientation["LeftTop"] = 5] = "LeftTop";
23
+ /* row 0 rhs, col 0 Top */
24
+ Orientation[Orientation["RightTOP"] = 6] = "RightTOP";
25
+ /* row 0 rhs, col 0 Bottom */
26
+ Orientation[Orientation["RightBottom"] = 7] = "RightBottom";
27
+ /* row 0 lhs, col 0 Bottom */
28
+ Orientation[Orientation["LeftBottom"] = 8] = "LeftBottom";
29
+ })(Orientation || (Orientation = {}));
30
+ export var RasterTypeKey;
31
+ (function (RasterTypeKey) {
32
+ /**
33
+ * PixelIsArea (default) a pixel is treated as an area,
34
+ * the raster coordinate (0,0) is the top left corner of the top left pixel.
35
+ */
36
+ RasterTypeKey[RasterTypeKey["PixelIsArea"] = 1] = "PixelIsArea";
37
+ /**
38
+ * PixelIsPoint treats pixels as point samples with empty space between the "pixel" samples.
39
+ * the raster coordinate (0,0) is the location of the top left raster pixel.
40
+ */
41
+ RasterTypeKey[RasterTypeKey["PixelIsPoint"] = 2] = "PixelIsPoint";
42
+ })(RasterTypeKey || (RasterTypeKey = {}));
43
+ export var ModelTypeCode;
44
+ (function (ModelTypeCode) {
45
+ /** Projection Coordinate System */
46
+ ModelTypeCode[ModelTypeCode["Projected"] = 1] = "Projected";
47
+ /** Geographic latitude-longitude System */
48
+ ModelTypeCode[ModelTypeCode["Geographic"] = 2] = "Geographic";
49
+ /** Geocentric (X,Y,Z) Coordinate System */
50
+ ModelTypeCode[ModelTypeCode["Geocentric"] = 3] = "Geocentric";
51
+ })(ModelTypeCode || (ModelTypeCode = {}));
52
+ /** Sub file type for tag 255 {@link TiffTag.OldSubFileType} */
53
+ export var OldSubFileType;
54
+ (function (OldSubFileType) {
55
+ /** Full resolution image data */
56
+ OldSubFileType[OldSubFileType["Image"] = 1] = "Image";
57
+ /** Reduced resolution version */
58
+ OldSubFileType[OldSubFileType["ReducedImage"] = 2] = "ReducedImage";
59
+ /** One page of many */
60
+ OldSubFileType[OldSubFileType["Page"] = 3] = "Page";
61
+ })(OldSubFileType || (OldSubFileType = {}));
62
+ /** Tiff compression types */
63
+ export var Compression;
64
+ (function (Compression) {
65
+ Compression[Compression["None"] = 1] = "None";
66
+ Compression[Compression["Lzw"] = 5] = "Lzw";
67
+ Compression[Compression["Jpeg6"] = 6] = "Jpeg6";
68
+ Compression[Compression["Jpeg"] = 7] = "Jpeg";
69
+ Compression[Compression["DeflateOther"] = 8] = "DeflateOther";
70
+ Compression[Compression["Deflate"] = 32946] = "Deflate";
71
+ Compression[Compression["Jp2000"] = 3417] = "Jp2000";
72
+ Compression[Compression["Lerc"] = 34887] = "Lerc";
73
+ Compression[Compression["Lzma"] = 34925] = "Lzma";
74
+ Compression[Compression["Zstd"] = 50000] = "Zstd";
75
+ Compression[Compression["Webp"] = 50001] = "Webp";
76
+ Compression[Compression["JpegXl"] = 50002] = "JpegXl";
77
+ })(Compression || (Compression = {}));
78
+ export var PlanarConfiguration;
79
+ (function (PlanarConfiguration) {
80
+ /** single image plane */
81
+ PlanarConfiguration[PlanarConfiguration["Contig"] = 1] = "Contig";
82
+ /** separate planes of data */
83
+ PlanarConfiguration[PlanarConfiguration["Separate"] = 2] = "Separate";
84
+ })(PlanarConfiguration || (PlanarConfiguration = {}));
85
+ export var SampleFormat;
86
+ (function (SampleFormat) {
87
+ /** Unsigned integer data */
88
+ SampleFormat[SampleFormat["Uint"] = 1] = "Uint";
89
+ /** Signed integer data */
90
+ SampleFormat[SampleFormat["Int"] = 2] = "Int";
91
+ /** IEEE floating point data */
92
+ SampleFormat[SampleFormat["Float"] = 3] = "Float";
93
+ /** Untyped data */
94
+ SampleFormat[SampleFormat["Void"] = 4] = "Void";
95
+ /** Complex signed int */
96
+ SampleFormat[SampleFormat["ComplexInt"] = 5] = "ComplexInt";
97
+ /** Complex ieee floating */
98
+ SampleFormat[SampleFormat["ComplexFloat"] = 6] = "ComplexFloat";
99
+ })(SampleFormat || (SampleFormat = {}));
100
+ export var Photometric;
101
+ (function (Photometric) {
102
+ /** min value is white */
103
+ Photometric[Photometric["MinIsWhite"] = 0] = "MinIsWhite";
104
+ /** min value is black */
105
+ Photometric[Photometric["MinIsBlack"] = 1] = "MinIsBlack";
106
+ /** RGB color model */
107
+ Photometric[Photometric["Rgb"] = 2] = "Rgb";
108
+ /** color map indexed */
109
+ Photometric[Photometric["Palette"] = 3] = "Palette";
110
+ /** $holdout mask */
111
+ Photometric[Photometric["Mask"] = 4] = "Mask";
112
+ /** !color separations */
113
+ Photometric[Photometric["Separated"] = 5] = "Separated";
114
+ /** !CCIR 601 */
115
+ Photometric[Photometric["Ycbcr"] = 6] = "Ycbcr";
116
+ /** !1976 CIE L*a*b* */
117
+ Photometric[Photometric["Cielab"] = 8] = "Cielab";
118
+ /** ICC L*a*b* [Adobe TIFF Technote 4] */
119
+ Photometric[Photometric["Icclab"] = 9] = "Icclab";
120
+ /** ITU L*a*b* */
121
+ Photometric[Photometric["Itulab"] = 10] = "Itulab";
122
+ /** color filter array */
123
+ Photometric[Photometric["Cfa"] = 32803] = "Cfa";
124
+ /** CIE Log2(L) */
125
+ Photometric[Photometric["Logl"] = 32844] = "Logl";
126
+ Photometric[Photometric["Logluv"] = 32845] = "Logluv";
127
+ })(Photometric || (Photometric = {}));
128
+ /**
129
+ * Tiff tags as defined by libtiff and libgeotiff
130
+ *
131
+ * - {@link https://gitlab.com/libtiff/libtiff}
132
+ * - {@link https://github.com/OSGeo/libgeotiff/}
133
+ */
2
134
  export var TiffTag;
3
135
  (function (TiffTag) {
4
- // TIFF Baseline
5
- TiffTag[TiffTag["Artist"] = 315] = "Artist";
136
+ /**
137
+ * Type of the sub file
138
+ *
139
+ * @see {@link SubFileType}
140
+ */
141
+ TiffTag[TiffTag["SubFileType"] = 254] = "SubFileType";
142
+ /**
143
+ * Type of sub file
144
+ *
145
+ * @see {@link OldSubFileType}
146
+ */
147
+ TiffTag[TiffTag["OldSubFileType"] = 255] = "OldSubFileType";
148
+ /** Width of image in pixels */
149
+ TiffTag[TiffTag["ImageWidth"] = 256] = "ImageWidth";
150
+ /** Height of image in pixels */
151
+ TiffTag[TiffTag["ImageHeight"] = 257] = "ImageHeight";
152
+ /**
153
+ * Number of bits per channel
154
+ *
155
+ * @example
156
+ * ```typescript
157
+ * [8,8,8] // 8 bit RGB
158
+ * [16] // 16bit
159
+ * ```
160
+ */
6
161
  TiffTag[TiffTag["BitsPerSample"] = 258] = "BitsPerSample";
162
+ /**
163
+ *
164
+ * Data type of the image
165
+ *
166
+ * See {@link SampleFormat}
167
+ *
168
+ * @example
169
+ * ```typescript
170
+ * [1] // SampleFormat.Uint
171
+ * [1,1,1,1] // 4 band Uint
172
+ * ```
173
+ */
174
+ TiffTag[TiffTag["SampleFormat"] = 339] = "SampleFormat";
175
+ /**
176
+ * Compression Type
177
+ *
178
+ * @see {@link Compression}
179
+ *
180
+ * @example
181
+ * ```typescript
182
+ * 5 // Compression.Lzw
183
+ * ```
184
+ */
185
+ TiffTag[TiffTag["Compression"] = 259] = "Compression";
186
+ /**
187
+ * Photometric interpretation
188
+ *
189
+ * @see {@link Photometric}
190
+ *
191
+ * @example
192
+ * ```typescript
193
+ * 2 // Photometric.Rgb
194
+ * ```
195
+ */
196
+ TiffTag[TiffTag["Photometric"] = 262] = "Photometric";
197
+ /** Tile width in pixels */
198
+ TiffTag[TiffTag["TileWidth"] = 322] = "TileWidth";
199
+ /** Tile height in pixels */
200
+ TiffTag[TiffTag["TileHeight"] = 323] = "TileHeight";
201
+ /**
202
+ * Offsets to data tiles
203
+ * `0` means the tile has no data (sparse tiff)
204
+ *
205
+ * @example
206
+ * ```typescript
207
+ * [0, 3200, 1406] // three tiles, first tile does not exist
208
+ * ```
209
+ */
210
+ TiffTag[TiffTag["TileOffsets"] = 324] = "TileOffsets";
211
+ /**
212
+ * Byte counts for tiles
213
+ * `0 means the tile does not exist (sparse tiff)
214
+ *
215
+ * @example
216
+ * ```typescript
217
+ * [0, 3200, 1406] // three tiles, first tile does not exist
218
+ * ```
219
+ **/
220
+ TiffTag[TiffTag["TileByteCounts"] = 325] = "TileByteCounts";
221
+ /** JPEG table stream */
222
+ TiffTag[TiffTag["JpegTables"] = 347] = "JpegTables";
223
+ TiffTag[TiffTag["StripOffsets"] = 273] = "StripOffsets";
224
+ TiffTag[TiffTag["StripByteCounts"] = 279] = "StripByteCounts";
225
+ // GDAL
226
+ /**
227
+ * GDAL metadata
228
+ * Generally a xml document with lots of information about the tiff and how it was created
229
+ */
230
+ TiffTag[TiffTag["GdalMetadata"] = 42112] = "GdalMetadata";
231
+ /**
232
+ * No data value encoded as a string
233
+ *
234
+ * @example "-9999"
235
+ */
236
+ TiffTag[TiffTag["GdalNoData"] = 42113] = "GdalNoData";
237
+ /** GeoTiff Tags */
238
+ /**
239
+ * Pixel scale in meters
240
+ * in the format [scaleX, scaleY, scaleZ]
241
+ *
242
+ * Requires {@link ModelTiePoint} to be set and {@link ModelTransformation} not to be set
243
+ *
244
+ * @example
245
+ * ```typescript
246
+ * [100.0, 100.0, 0.0]
247
+ * ```
248
+ */
249
+ TiffTag[TiffTag["ModelPixelScale"] = 33550] = "ModelPixelScale";
250
+ /**
251
+ * Position of the tiff
252
+ *
253
+ * contains a list of tie points that contain
254
+ * [x,y,z] of position in the in the tiff, generally [0,0,0]
255
+ * [x,y,z] of the position in the projected
256
+ *
257
+ * @example
258
+ * Mapping tiff point `[0,0,0]` to projected coordinates `[350807.4, 5316081.3, 0.0]`
259
+ * ```
260
+ * [0, 0, 0, 350807.4, 5316081.3, 0.0]
261
+ * ```
262
+ */
263
+ TiffTag[TiffTag["ModelTiePoint"] = 33922] = "ModelTiePoint";
264
+ /**
265
+ * Exact affine transformation between the tiff and the projected location
266
+ *
267
+ * this tag should not be defined when {@link ModelTiePoint} or {@link ModelPixelScale} are used
268
+ *
269
+ * @example
270
+ *```typescript
271
+ * [ 0, 100.0, 0, 400000.0,
272
+ * 100.0, 0, 0, 500000.0,
273
+ * 0, 0, 0, 0,
274
+ * 0, 0, 0, 1]
275
+ * ```
276
+ */
277
+ TiffTag[TiffTag["ModelTransformation"] = 34744] = "ModelTransformation";
278
+ /**
279
+ * List of GeoTiff tags
280
+ * {@link TiffTagGeo}
281
+ *
282
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_requirements_class_geokeydirectorytag}
283
+ */
284
+ TiffTag[TiffTag["GeoKeyDirectory"] = 34735] = "GeoKeyDirectory";
285
+ /**
286
+ * Double Parameters for GeoTiff Tags
287
+ *
288
+ * {@link TiffTagGeo}
289
+ */
290
+ TiffTag[TiffTag["GeoDoubleParams"] = 34736] = "GeoDoubleParams";
291
+ /**
292
+ * Ascii Parameters for GeoTiff Tags
293
+ *
294
+ * {@link TiffTagGeo}
295
+ */
296
+ TiffTag[TiffTag["GeoAsciiParams"] = 34737] = "GeoAsciiParams";
297
+ /**
298
+ * Stores the LERC version and additional compression
299
+ *
300
+ * @example
301
+ * ```typescript
302
+ * [4, 0] // version 4, no extra compression
303
+ * ```
304
+ */
305
+ TiffTag[TiffTag["LercParameters"] = 50674] = "LercParameters";
306
+ TiffTag[TiffTag["PlanarConfiguration"] = 284] = "PlanarConfiguration";
307
+ /** Untyped values */
7
308
  TiffTag[TiffTag["CellLength"] = 265] = "CellLength";
8
309
  TiffTag[TiffTag["CellWidth"] = 264] = "CellWidth";
9
310
  TiffTag[TiffTag["ColorMap"] = 320] = "ColorMap";
10
- TiffTag[TiffTag["Compression"] = 259] = "Compression";
11
311
  TiffTag[TiffTag["Copyright"] = 33432] = "Copyright";
12
312
  TiffTag[TiffTag["DateTime"] = 306] = "DateTime";
13
313
  TiffTag[TiffTag["ExtraSamples"] = 338] = "ExtraSamples";
@@ -18,27 +318,18 @@ export var TiffTag;
18
318
  TiffTag[TiffTag["GrayResponseUnit"] = 290] = "GrayResponseUnit";
19
319
  TiffTag[TiffTag["HostComputer"] = 316] = "HostComputer";
20
320
  TiffTag[TiffTag["ImageDescription"] = 270] = "ImageDescription";
21
- TiffTag[TiffTag["ImageHeight"] = 257] = "ImageHeight";
22
- TiffTag[TiffTag["ImageWidth"] = 256] = "ImageWidth";
23
321
  TiffTag[TiffTag["Make"] = 271] = "Make";
24
322
  TiffTag[TiffTag["MaxSampleValue"] = 281] = "MaxSampleValue";
25
323
  TiffTag[TiffTag["MinSampleValue"] = 280] = "MinSampleValue";
26
324
  TiffTag[TiffTag["Model"] = 272] = "Model";
27
- TiffTag[TiffTag["NewSubFileType"] = 254] = "NewSubFileType";
28
325
  TiffTag[TiffTag["Orientation"] = 274] = "Orientation";
29
- TiffTag[TiffTag["PhotometricInterpretation"] = 262] = "PhotometricInterpretation";
30
- TiffTag[TiffTag["PlanarConfiguration"] = 284] = "PlanarConfiguration";
31
326
  TiffTag[TiffTag["ResolutionUnit"] = 296] = "ResolutionUnit";
32
327
  TiffTag[TiffTag["RowsPerStrip"] = 278] = "RowsPerStrip";
33
328
  TiffTag[TiffTag["SamplesPerPixel"] = 277] = "SamplesPerPixel";
34
329
  TiffTag[TiffTag["Software"] = 305] = "Software";
35
- TiffTag[TiffTag["StripByteCounts"] = 279] = "StripByteCounts";
36
- TiffTag[TiffTag["StripOffsets"] = 273] = "StripOffsets";
37
- TiffTag[TiffTag["SubFileType"] = 255] = "SubFileType";
38
330
  TiffTag[TiffTag["Threshholding"] = 263] = "Threshholding";
39
331
  TiffTag[TiffTag["XResolution"] = 282] = "XResolution";
40
332
  TiffTag[TiffTag["YResolution"] = 283] = "YResolution";
41
- // TIFF Extended
42
333
  TiffTag[TiffTag["BadFaxLines"] = 326] = "BadFaxLines";
43
334
  TiffTag[TiffTag["CleanFaxData"] = 327] = "CleanFaxData";
44
335
  TiffTag[TiffTag["ClipPath"] = 343] = "ClipPath";
@@ -49,23 +340,17 @@ export var TiffTag;
49
340
  TiffTag[TiffTag["DotRange"] = 336] = "DotRange";
50
341
  TiffTag[TiffTag["HalftoneHints"] = 321] = "HalftoneHints";
51
342
  TiffTag[TiffTag["Indexed"] = 346] = "Indexed";
52
- TiffTag[TiffTag["JPEGTables"] = 347] = "JPEGTables";
53
343
  TiffTag[TiffTag["PageName"] = 285] = "PageName";
54
344
  TiffTag[TiffTag["PageNumber"] = 297] = "PageNumber";
55
345
  TiffTag[TiffTag["Predictor"] = 317] = "Predictor";
56
346
  TiffTag[TiffTag["PrimaryChromaticities"] = 319] = "PrimaryChromaticities";
57
347
  TiffTag[TiffTag["ReferenceBlackWhite"] = 532] = "ReferenceBlackWhite";
58
- TiffTag[TiffTag["SampleFormat"] = 339] = "SampleFormat";
59
348
  TiffTag[TiffTag["SMinSampleValue"] = 340] = "SMinSampleValue";
60
349
  TiffTag[TiffTag["SMaxSampleValue"] = 341] = "SMaxSampleValue";
61
350
  TiffTag[TiffTag["StripRowCounts"] = 559] = "StripRowCounts";
62
351
  TiffTag[TiffTag["SubIFDs"] = 330] = "SubIFDs";
63
352
  TiffTag[TiffTag["T4Options"] = 292] = "T4Options";
64
353
  TiffTag[TiffTag["T6Options"] = 293] = "T6Options";
65
- TiffTag[TiffTag["TileByteCounts"] = 325] = "TileByteCounts";
66
- TiffTag[TiffTag["TileHeight"] = 323] = "TileHeight";
67
- TiffTag[TiffTag["TileOffsets"] = 324] = "TileOffsets";
68
- TiffTag[TiffTag["TileWidth"] = 322] = "TileWidth";
69
354
  TiffTag[TiffTag["TransferFunction"] = 301] = "TransferFunction";
70
355
  TiffTag[TiffTag["WhitePoint"] = 318] = "WhitePoint";
71
356
  TiffTag[TiffTag["XClipPathUnits"] = 344] = "XClipPathUnits";
@@ -75,7 +360,6 @@ export var TiffTag;
75
360
  TiffTag[TiffTag["YCbCrSubSampling"] = 530] = "YCbCrSubSampling";
76
361
  TiffTag[TiffTag["YClipPathUnits"] = 345] = "YClipPathUnits";
77
362
  TiffTag[TiffTag["YPosition"] = 287] = "YPosition";
78
- // EXIF
79
363
  TiffTag[TiffTag["ApertureValue"] = 37378] = "ApertureValue";
80
364
  TiffTag[TiffTag["ColorSpace"] = 40961] = "ColorSpace";
81
365
  TiffTag[TiffTag["DateTimeDigitized"] = 36868] = "DateTimeDigitized";
@@ -92,50 +376,124 @@ export var TiffTag;
92
376
  TiffTag[TiffTag["MakerNote"] = 37500] = "MakerNote";
93
377
  TiffTag[TiffTag["ShutterSpeedValue"] = 37377] = "ShutterSpeedValue";
94
378
  TiffTag[TiffTag["UserComment"] = 37510] = "UserComment";
95
- // IPTC
96
379
  TiffTag[TiffTag["IPTC"] = 33723] = "IPTC";
97
- // ICC
98
380
  TiffTag[TiffTag["ICCProfile"] = 34675] = "ICCProfile";
99
- // XMP
100
381
  TiffTag[TiffTag["XMP"] = 700] = "XMP";
101
- // GDAL
102
- TiffTag[TiffTag["GdalMetadata"] = 42112] = "GdalMetadata";
103
- TiffTag[TiffTag["GdalNoData"] = 42113] = "GdalNoData";
104
- TiffTag[TiffTag["LercParams"] = 50674] = "LercParams";
105
- // Photoshop
106
- TiffTag[TiffTag["Photoshop"] = 34377] = "Photoshop";
107
- // GeoTiff
108
- TiffTag[TiffTag["ModelPixelScale"] = 33550] = "ModelPixelScale";
109
- TiffTag[TiffTag["ModelTiePoint"] = 33922] = "ModelTiePoint";
110
- TiffTag[TiffTag["ModelTransformation"] = 34264] = "ModelTransformation";
111
- TiffTag[TiffTag["GeoKeyDirectory"] = 34735] = "GeoKeyDirectory";
112
- TiffTag[TiffTag["GeoDoubleParams"] = 34736] = "GeoDoubleParams";
113
- TiffTag[TiffTag["GeoAsciiParams"] = 34737] = "GeoAsciiParams";
114
382
  })(TiffTag || (TiffTag = {}));
383
+ /**
384
+ * Geotiff tags as defined by OGC GeoTiff 1.1
385
+ *
386
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_summary_of_geokey_ids_and_names}
387
+ */
115
388
  export var TiffTagGeo;
116
389
  (function (TiffTagGeo) {
390
+ // GeoTIFF Configuration Keys
391
+ /**
392
+ * This GeoKey defines the type of Model coordinate reference system used, to which the transformation from the raster space is made:
393
+ *
394
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_requirements_class_gtmodeltypegeokey}
395
+ *
396
+ * {@link ModelTypeCode}
397
+ */
117
398
  TiffTagGeo[TiffTagGeo["GTModelTypeGeoKey"] = 1024] = "GTModelTypeGeoKey";
399
+ /**
400
+ * There are currently only two options: `RasterPixelIsPoint` and `RasterPixelIsArea`
401
+ *
402
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_requirements_class_gtrastertypegeokey}
403
+ *
404
+ * {@link RasterTypeKey}
405
+ */
118
406
  TiffTagGeo[TiffTagGeo["GTRasterTypeGeoKey"] = 1025] = "GTRasterTypeGeoKey";
407
+ /**
408
+ * ASCII reference to published documentation on the overall configuration of the GeoTIFF file.
409
+ *
410
+ * @example "NZGD2000 / New Zealand Transverse Mercator 2000"
411
+ */
119
412
  TiffTagGeo[TiffTagGeo["GTCitationGeoKey"] = 1026] = "GTCitationGeoKey";
120
- TiffTagGeo[TiffTagGeo["GeographicTypeGeoKey"] = 2048] = "GeographicTypeGeoKey";
121
- TiffTagGeo[TiffTagGeo["GeogCitationGeoKey"] = 2049] = "GeogCitationGeoKey";
122
- TiffTagGeo[TiffTagGeo["GeogGeodeticDatumGeoKey"] = 2050] = "GeogGeodeticDatumGeoKey";
123
- TiffTagGeo[TiffTagGeo["GeogPrimeMeridianGeoKey"] = 2051] = "GeogPrimeMeridianGeoKey";
413
+ // Geodetic CRS Parameter Keys
414
+ /**
415
+ * Renamed from GeographicTypeGeoKey in OGC GeoTiff
416
+ */
417
+ TiffTagGeo[TiffTagGeo["GeodeticCRSGeoKey"] = 2048] = "GeodeticCRSGeoKey";
418
+ /**
419
+ * Renamed from GeogCitationGeoKey in OGC GeoTiff
420
+ *
421
+ * @example "NZTM"
422
+ */
423
+ TiffTagGeo[TiffTagGeo["GeodeticCitationGeoKey"] = 2049] = "GeodeticCitationGeoKey";
424
+ /**
425
+ * Renamed from GeogGeodeticDatumGeoKey in OGC GeoTiff
426
+ */
427
+ TiffTagGeo[TiffTagGeo["GeodeticDatumGeoKey"] = 2050] = "GeodeticDatumGeoKey";
428
+ /**
429
+ * Renamed from "GeogPrimeMeridianGeoKey" in OGC GeoTiff
430
+ */
431
+ TiffTagGeo[TiffTagGeo["PrimeMeridianGeoKey"] = 2051] = "PrimeMeridianGeoKey";
432
+ /**
433
+ * Linear unit of measure
434
+ * @example 9001 // Metre
435
+ */
124
436
  TiffTagGeo[TiffTagGeo["GeogLinearUnitsGeoKey"] = 2052] = "GeogLinearUnitsGeoKey";
125
437
  TiffTagGeo[TiffTagGeo["GeogLinearUnitSizeGeoKey"] = 2053] = "GeogLinearUnitSizeGeoKey";
438
+ /**
439
+ * Angular unit of measure
440
+ *
441
+ * @example 9102 // Degree
442
+ */
126
443
  TiffTagGeo[TiffTagGeo["GeogAngularUnitsGeoKey"] = 2054] = "GeogAngularUnitsGeoKey";
127
444
  TiffTagGeo[TiffTagGeo["GeogAngularUnitSizeGeoKey"] = 2055] = "GeogAngularUnitSizeGeoKey";
128
- TiffTagGeo[TiffTagGeo["GeogEllipsoidGeoKey"] = 2056] = "GeogEllipsoidGeoKey";
129
- TiffTagGeo[TiffTagGeo["GeogSemiMajorAxisGeoKey"] = 2057] = "GeogSemiMajorAxisGeoKey";
130
- TiffTagGeo[TiffTagGeo["GeogSemiMinorAxisGeoKey"] = 2058] = "GeogSemiMinorAxisGeoKey";
131
- TiffTagGeo[TiffTagGeo["GeogInvFlatteningGeoKey"] = 2059] = "GeogInvFlatteningGeoKey";
132
- TiffTagGeo[TiffTagGeo["GeogAzimuthUnitsGeoKey"] = 2060] = "GeogAzimuthUnitsGeoKey";
133
- TiffTagGeo[TiffTagGeo["GeogPrimeMeridianLongGeoKey"] = 2061] = "GeogPrimeMeridianLongGeoKey";
445
+ /**
446
+ * Renamed from "GeogEllipsoidGeoKey" in OGC GeoTiff
447
+ */
448
+ TiffTagGeo[TiffTagGeo["EllipsoidGeoKey"] = 2056] = "EllipsoidGeoKey";
449
+ /**
450
+ * Renamed from "GeogSemiMajorAxisGeoKey" in OGC GeoTiff
451
+ */
452
+ TiffTagGeo[TiffTagGeo["EllipsoidSemiMajorAxisGeoKey"] = 2057] = "EllipsoidSemiMajorAxisGeoKey";
453
+ /**
454
+ * Renamed from "GeogSemiMinorAxisGeoKey" in OGC GeoTiff
455
+ */
456
+ TiffTagGeo[TiffTagGeo["EllipsoidSemiMinorAxisGeoKey"] = 2058] = "EllipsoidSemiMinorAxisGeoKey";
457
+ /**
458
+ * Renamed from "GeogInvFlatteningGeoKey" in OGC GeoTiff
459
+ */
460
+ TiffTagGeo[TiffTagGeo["EllipsoidInvFlatteningGeoKey"] = 2059] = "EllipsoidInvFlatteningGeoKey";
461
+ /**
462
+ * Renamed from "GeogPrimeMeridianLongGeoKey" in OGC GeoTiff
463
+ */
464
+ TiffTagGeo[TiffTagGeo["PrimeMeridianLongitudeGeoKey"] = 2061] = "PrimeMeridianLongitudeGeoKey";
134
465
  TiffTagGeo[TiffTagGeo["GeogTOWGS84GeoKey"] = 2062] = "GeogTOWGS84GeoKey";
135
- TiffTagGeo[TiffTagGeo["ProjectedCSTypeGeoKey"] = 3072] = "ProjectedCSTypeGeoKey";
136
- TiffTagGeo[TiffTagGeo["PCSCitationGeoKey"] = 3073] = "PCSCitationGeoKey";
466
+ // Projected CRS Parameter Keys
467
+ TiffTagGeo[TiffTagGeo["GeogAzimuthUnitsGeoKey"] = 2060] = "GeogAzimuthUnitsGeoKey";
468
+ /**
469
+ * EPSG code of the tiff
470
+ *
471
+ * Renamed from "ProjectedCSTypeGeoKey" in OGC GeoTiff
472
+ *
473
+ * @example
474
+ * ```typescript
475
+ * 2193 // NZTM
476
+ * 3857 // WebMercatorQuad
477
+ * ```
478
+ */
479
+ TiffTagGeo[TiffTagGeo["ProjectedCRSGeoKey"] = 3072] = "ProjectedCRSGeoKey";
480
+ /**
481
+ * ASCII reference to published documentation on the Projected Coordinate System
482
+ *
483
+ * Renamed from "PCSCitationGeoKey" in OGC GeoTiff
484
+ *
485
+ * @example "UTM Zone 60 N with WGS 84"
486
+ */
487
+ TiffTagGeo[TiffTagGeo["ProjectedCitationGeoKey"] = 3073] = "ProjectedCitationGeoKey";
488
+ /**
489
+ * Specifies a map projection from the GeoTIFF CRS register or to indicate that the map projection is user-defined.
490
+ *
491
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_map_projection_geokeys}
492
+ *
493
+ * @example 2193
494
+ */
137
495
  TiffTagGeo[TiffTagGeo["ProjectionGeoKey"] = 3074] = "ProjectionGeoKey";
138
- TiffTagGeo[TiffTagGeo["ProjCoordTransGeoKey"] = 3075] = "ProjCoordTransGeoKey";
496
+ TiffTagGeo[TiffTagGeo["ProjMethodGeoKey"] = 3075] = "ProjMethodGeoKey";
139
497
  TiffTagGeo[TiffTagGeo["ProjLinearUnitsGeoKey"] = 3076] = "ProjLinearUnitsGeoKey";
140
498
  TiffTagGeo[TiffTagGeo["ProjLinearUnitSizeGeoKey"] = 3077] = "ProjLinearUnitSizeGeoKey";
141
499
  TiffTagGeo[TiffTagGeo["ProjStdParallel1GeoKey"] = 3078] = "ProjStdParallel1GeoKey";
@@ -157,9 +515,80 @@ export var TiffTagGeo;
157
515
  TiffTagGeo[TiffTagGeo["ProjAzimuthAngleGeoKey"] = 3094] = "ProjAzimuthAngleGeoKey";
158
516
  TiffTagGeo[TiffTagGeo["ProjStraightVertPoleLongGeoKey"] = 3095] = "ProjStraightVertPoleLongGeoKey";
159
517
  TiffTagGeo[TiffTagGeo["ProjRectifiedGridAngleGeoKey"] = 3096] = "ProjRectifiedGridAngleGeoKey";
160
- TiffTagGeo[TiffTagGeo["VerticalCSTypeGeoKey"] = 4096] = "VerticalCSTypeGeoKey";
518
+ // Vertical CRS Parameter Keys (4096-5119)
519
+ /**
520
+ * This key is provided to specify the vertical coordinate reference system from the GeoTIFF CRS register or to indicate that the CRS is a user-defined vertical coordinate reference system. The value for VerticalGeoKey should follow the
521
+ *
522
+ * {@link https://docs.ogc.org/is/19-008r4/19-008r4.html#_requirements_class_verticalgeokey}
523
+ *
524
+ * @example 4979
525
+ */
526
+ TiffTagGeo[TiffTagGeo["VerticalGeoKey"] = 4096] = "VerticalGeoKey";
527
+ /**
528
+ *
529
+ * @example "Geographic 3D WGS 84, Ellipsoidal height"
530
+ */
161
531
  TiffTagGeo[TiffTagGeo["VerticalCitationGeoKey"] = 4097] = "VerticalCitationGeoKey";
532
+ /**
533
+ * vertical datum for a user-defined vertical coordinate reference system.
534
+ */
162
535
  TiffTagGeo[TiffTagGeo["VerticalDatumGeoKey"] = 4098] = "VerticalDatumGeoKey";
536
+ /**
537
+ * Linear Unit for vertical CRS
538
+ *
539
+ * @example 9001
540
+ */
163
541
  TiffTagGeo[TiffTagGeo["VerticalUnitsGeoKey"] = 4099] = "VerticalUnitsGeoKey";
164
542
  })(TiffTagGeo || (TiffTagGeo = {}));
543
+ /**
544
+ * EPSG Angular Units. exist between [9100, 9199]
545
+ *
546
+ * Taken from libegotiff
547
+ */
548
+ export var AngularUnit;
549
+ (function (AngularUnit) {
550
+ AngularUnit[AngularUnit["Radian"] = 9101] = "Radian";
551
+ AngularUnit[AngularUnit["Degree"] = 9102] = "Degree";
552
+ AngularUnit[AngularUnit["ArcMinute"] = 9103] = "ArcMinute";
553
+ AngularUnit[AngularUnit["ArcDegree"] = 9104] = "ArcDegree";
554
+ AngularUnit[AngularUnit["Grad"] = 9105] = "Grad";
555
+ AngularUnit[AngularUnit["Gon"] = 9106] = "Gon";
556
+ AngularUnit[AngularUnit["Dms"] = 9107] = "Dms";
557
+ })(AngularUnit || (AngularUnit = {}));
558
+ /**
559
+ * ESPG Liner units exist between [9000, 9099]
560
+ *
561
+ * Taken from libegotiff
562
+ */
563
+ export var LinearUnit;
564
+ (function (LinearUnit) {
565
+ LinearUnit[LinearUnit["Metre"] = 9001] = "Metre";
566
+ LinearUnit[LinearUnit["Foot"] = 9002] = "Foot";
567
+ LinearUnit[LinearUnit["FootUsSurvey"] = 9003] = "FootUsSurvey";
568
+ LinearUnit[LinearUnit["FootModifiedAmerican"] = 9004] = "FootModifiedAmerican";
569
+ LinearUnit[LinearUnit["FootClarke"] = 9005] = "FootClarke";
570
+ LinearUnit[LinearUnit["FootIndian"] = 9006] = "FootIndian";
571
+ LinearUnit[LinearUnit["Link"] = 9007] = "Link";
572
+ LinearUnit[LinearUnit["LinkBenoit"] = 9008] = "LinkBenoit";
573
+ LinearUnit[LinearUnit["LinkSears"] = 9009] = "LinkSears";
574
+ LinearUnit[LinearUnit["ChainBenoit"] = 9010] = "ChainBenoit";
575
+ LinearUnit[LinearUnit["ChainSears"] = 9011] = "ChainSears";
576
+ LinearUnit[LinearUnit["YardSears"] = 9012] = "YardSears";
577
+ LinearUnit[LinearUnit["YardIndian"] = 9013] = "YardIndian";
578
+ LinearUnit[LinearUnit["Fathom"] = 9014] = "Fathom";
579
+ LinearUnit[LinearUnit["MileInternationalNautical"] = 9015] = "MileInternationalNautical";
580
+ })(LinearUnit || (LinearUnit = {}));
581
+ /**
582
+ * Convert tiff tag values when being read.
583
+ */
584
+ export const TiffTagConvertArray = {
585
+ [TiffTag.TileByteCounts]: true,
586
+ [TiffTag.TileOffsets]: true,
587
+ [TiffTag.StripOffsets]: true,
588
+ [TiffTag.StripByteCounts]: true,
589
+ [TiffTag.BitsPerSample]: true,
590
+ [TiffTag.SampleFormat]: true,
591
+ [TiffTag.GeoKeyDirectory]: true,
592
+ [TiffTag.GeoDoubleParams]: true,
593
+ };
165
594
  //# sourceMappingURL=tiff.tag.id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiff.tag.id.js","sourceRoot":"","sources":["../../src/const/tiff.tag.id.ts"],"names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Rational";
13
13
  TiffTagValueType[TiffTagValueType["Float32"] = 11] = "Float32";
14
14
  TiffTagValueType[TiffTagValueType["Float64"] = 12] = "Float64";
15
- // introduced by BigTIFF
15
+ // BigTiff
16
16
  TiffTagValueType[TiffTagValueType["Uint64"] = 16] = "Uint64";
17
17
  TiffTagValueType[TiffTagValueType["Int64"] = 17] = "Int64";
18
18
  TiffTagValueType[TiffTagValueType["Ifd8"] = 18] = "Ifd8";
@@ -1 +1 @@
1
- {"version":3,"file":"tiff.tag.value.js","sourceRoot":"","sources":["../../src/const/tiff.tag.value.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAiBX;AAjBD,WAAY,gBAAgB;IAC1B,yDAAc,CAAA;IACd,yDAAc,CAAA;IACd,2DAAe,CAAA;IACf,2DAAe,CAAA;IACf,+DAAiB,CAAA;IACjB,uDAAa,CAAA;IACb,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,yDAAc,CAAA;IACd,4EAAuB,CAAA;IACvB,8DAAgB,CAAA;IAChB,8DAAgB,CAAA;IAChB,wBAAwB;IACxB,4DAAe,CAAA;IACf,0DAAc,CAAA;IACd,wDAAa,CAAA;AACf,CAAC,EAjBW,gBAAgB,KAAhB,gBAAgB,QAiB3B"}
1
+ {"version":3,"file":"tiff.tag.value.js","sourceRoot":"","sources":["../../src/const/tiff.tag.value.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAiBX;AAjBD,WAAY,gBAAgB;IAC1B,yDAAS,CAAA;IACT,yDAAS,CAAA;IACT,2DAAU,CAAA;IACV,2DAAU,CAAA;IACV,+DAAY,CAAA;IACZ,uDAAQ,CAAA;IACR,iEAAa,CAAA;IACb,yDAAS,CAAA;IACT,yDAAS,CAAA;IACT,4EAAmB,CAAA;IACnB,8DAAY,CAAA;IACZ,8DAAY,CAAA;IACZ,UAAU;IACV,4DAAW,CAAA;IACX,0DAAU,CAAA;IACV,wDAAS,CAAA;AACX,CAAC,EAjBW,gBAAgB,KAAhB,gBAAgB,QAiB3B"}