@cogeotiff/cli 7.2.0 → 8.0.1

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 (74) hide show
  1. package/CHANGELOG.md +7 -490
  2. package/README.md +26 -34
  3. package/bin/cogeotiff.js +1 -2
  4. package/build/action.util.d.ts +2 -8
  5. package/build/action.util.js +7 -18
  6. package/build/action.util.js.map +1 -0
  7. package/build/bin.d.ts +1 -0
  8. package/build/bin.js +13 -0
  9. package/build/bin.js.map +1 -0
  10. package/build/cli.table.d.ts +0 -1
  11. package/build/cli.table.js +9 -4
  12. package/build/cli.table.js.map +1 -0
  13. package/build/commands/dump.d.ts +27 -0
  14. package/build/commands/dump.js +132 -0
  15. package/build/commands/dump.js.map +1 -0
  16. package/build/commands/info.d.ts +19 -0
  17. package/build/commands/info.js +185 -0
  18. package/build/commands/info.js.map +1 -0
  19. package/build/common.d.ts +16 -0
  20. package/build/common.js +19 -0
  21. package/build/common.js.map +1 -0
  22. package/build/fs.d.ts +6 -0
  23. package/build/fs.js +17 -0
  24. package/build/fs.js.map +1 -0
  25. package/build/index.d.ts +57 -2
  26. package/build/index.js +11 -8
  27. package/build/index.js.map +1 -0
  28. package/build/log.d.ts +11 -0
  29. package/build/log.js +37 -0
  30. package/build/log.js.map +1 -0
  31. package/build/util.bytes.d.ts +0 -1
  32. package/build/util.bytes.js +1 -1
  33. package/build/util.bytes.js.map +1 -0
  34. package/build/util.tile.d.ts +2 -3
  35. package/build/util.tile.js +20 -18
  36. package/build/util.tile.js.map +1 -0
  37. package/package.json +37 -37
  38. package/src/action.util.ts +22 -37
  39. package/src/bin.ts +14 -0
  40. package/src/cli.table.ts +27 -27
  41. package/src/commands/dump.ts +156 -0
  42. package/src/commands/info.ts +199 -0
  43. package/src/common.ts +20 -0
  44. package/src/fs.ts +18 -0
  45. package/src/index.ts +10 -7
  46. package/src/log.ts +43 -0
  47. package/src/util.bytes.ts +6 -6
  48. package/src/util.tile.ts +33 -33
  49. package/tsconfig.json +8 -10
  50. package/build/action.dump.tile.d.ts +0 -24
  51. package/build/action.dump.tile.d.ts.map +0 -1
  52. package/build/action.dump.tile.js +0 -194
  53. package/build/action.info.d.ts +0 -10
  54. package/build/action.info.d.ts.map +0 -1
  55. package/build/action.info.js +0 -183
  56. package/build/action.tile.d.ts +0 -9
  57. package/build/action.tile.d.ts.map +0 -1
  58. package/build/action.tile.js +0 -64
  59. package/build/action.util.d.ts.map +0 -1
  60. package/build/cli.cog.info.d.ts +0 -9
  61. package/build/cli.cog.info.d.ts.map +0 -1
  62. package/build/cli.cog.info.js +0 -42
  63. package/build/cli.log.d.ts +0 -3
  64. package/build/cli.log.d.ts.map +0 -1
  65. package/build/cli.log.js +0 -4
  66. package/build/cli.table.d.ts.map +0 -1
  67. package/build/index.d.ts.map +0 -1
  68. package/build/util.bytes.d.ts.map +0 -1
  69. package/build/util.tile.d.ts.map +0 -1
  70. package/src/action.dump.tile.ts +0 -240
  71. package/src/action.info.ts +0 -205
  72. package/src/action.tile.ts +0 -76
  73. package/src/cli.cog.info.ts +0 -45
  74. package/src/cli.log.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,498 +1,15 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [7.2.0](https://github.com/blacha/cogeotiff/compare/v7.1.0...v7.2.0) (2022-08-23)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **cli:** correct indentation for gdal metadata ([4b2a153](https://github.com/blacha/cogeotiff/commit/4b2a153b7e4e1071a2d754ff1bc3fc1731a5173a))
12
- * **core:** sometimes MASK_INTERLEAVED_WITH_IMAGERY is prefixed with a space so trim it ([5002e22](https://github.com/blacha/cogeotiff/commit/5002e22bdd0a6480d210d89ce6878b3e4df0efd9))
13
-
14
-
15
-
16
-
17
-
18
- # [7.1.0](https://github.com/blacha/cogeotiff/compare/v7.0.0...v7.1.0) (2022-06-22)
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * **core:** load the ghost header bytes if requested ([b1f0116](https://github.com/blacha/cogeotiff/commit/b1f01164da1ad7deed7c3754e0106ccfea773338))
24
-
25
-
26
- ### Features
27
-
28
- * **cli:** log all the ghost options out ([8c67420](https://github.com/blacha/cogeotiff/commit/8c67420c8ec270e908f17dfe944d2323c1bfb682))
29
-
30
-
31
-
32
-
33
-
34
- # [7.0.0](https://github.com/blacha/cogeotiff/compare/v6.1.1...v7.0.0) (2022-03-17)
35
-
36
-
37
- ### Features
38
-
39
- * **core:** upgrade chunkd and remove logger for internal fetches ([#832](https://github.com/blacha/cogeotiff/issues/832)) ([71bd740](https://github.com/blacha/cogeotiff/commit/71bd7409706e4a82e6a29b2a3fc0e8b25221e9fc))
40
-
41
-
42
-
43
-
44
-
45
- ## [6.1.1](https://github.com/blacha/cogeotiff/compare/v6.1.0...v6.1.1) (2022-01-26)
46
-
47
- **Note:** Version bump only for package @cogeotiff/cli
48
-
49
-
50
-
51
-
52
-
53
- # [6.1.0](https://github.com/blacha/cogeotiff/compare/v6.0.2...v6.1.0) (2021-09-30)
54
-
55
- **Note:** Version bump only for package @cogeotiff/cli
56
-
57
-
58
-
59
-
60
-
61
- ## [6.0.2](https://github.com/blacha/cogeotiff/compare/v6.0.1...v6.0.2) (2021-09-16)
62
-
63
-
64
- ### Bug Fixes
65
-
66
- * upgrade to latest chunkd fixes issue with missing fetchBytes function ([9b33cbf](https://github.com/blacha/cogeotiff/commit/9b33cbfe02acaa1248895203c1a55002b82d1a49))
67
-
68
-
69
-
70
-
71
-
72
- ## [6.0.1](https://github.com/blacha/cogeotiff/compare/v6.0.0...v6.0.1) (2021-09-15)
73
-
74
-
75
- ### Bug Fixes
76
-
77
- * missing bin file ([3e5beb0](https://github.com/blacha/cogeotiff/commit/3e5beb03664cbea3b7bfb64c8a3a4e2dac7d623d))
78
-
79
-
80
-
81
-
82
-
83
- # [6.0.0](https://github.com/blacha/cogeotiff/compare/v5.0.0...v6.0.0) (2021-09-11)
84
-
85
-
86
- ### Features
87
-
88
- * package with esm modules ([#738](https://github.com/blacha/cogeotiff/issues/738)) ([ac0b4f0](https://github.com/blacha/cogeotiff/commit/ac0b4f0932538a55ccc2d22bba94b8bf23dba27a))
89
-
90
-
91
- ### BREAKING CHANGES
92
-
93
- * this changes the module system to ESM which breaks compatibility with require
94
-
95
-
96
-
97
-
98
-
99
- # [5.0.0](https://github.com/blacha/cogeotiff/compare/v4.4.0...v5.0.0) (2021-07-23)
100
-
101
-
102
- ### Features
103
-
104
- * extract all chunk source logic into `@chunkd/*` ([#723](https://github.com/blacha/cogeotiff/issues/723)) ([fa42393](https://github.com/blacha/cogeotiff/commit/fa4239358b11821b21fc78652b0744bc3c839c06))
105
-
106
-
107
-
108
-
109
-
110
- # [4.4.0](https://github.com/blacha/cogeotiff/compare/v4.3.0...v4.4.0) (2021-07-23)
111
-
112
- **Note:** Version bump only for package @cogeotiff/cli
113
-
114
-
115
-
116
-
117
-
118
- # [4.3.0](https://github.com/blacha/cogeotiff/compare/v4.2.0...v4.3.0) (2021-06-22)
119
-
120
- **Note:** Version bump only for package @cogeotiff/cli
121
-
122
-
123
-
124
-
125
-
126
- # [4.2.0](https://github.com/blacha/cogeotiff/compare/v4.1.2...v4.2.0) (2021-03-25)
127
-
128
- **Note:** Version bump only for package @cogeotiff/cli
129
-
130
-
131
-
132
-
133
-
134
- ## [4.1.2](https://github.com/blacha/cogeotiff/compare/v4.1.1...v4.1.2) (2021-03-18)
135
-
136
- **Note:** Version bump only for package @cogeotiff/cli
137
-
138
-
139
-
140
-
141
-
142
- ## [4.1.1](https://github.com/blacha/cogeotiff/compare/v4.1.0...v4.1.1) (2021-03-10)
143
-
144
- **Note:** Version bump only for package @cogeotiff/cli
145
-
146
-
147
-
148
-
149
-
150
- # [4.1.0](https://github.com/blacha/cogeotiff/compare/v4.0.0...v4.1.0) (2021-02-23)
151
-
152
- **Note:** Version bump only for package @cogeotiff/cli
153
-
154
-
155
-
156
-
157
-
158
- # [4.0.0](https://github.com/blacha/cogeotiff/compare/v3.1.0...v4.0.0) (2021-02-02)
159
-
160
- **Note:** Version bump only for package @cogeotiff/cli
161
-
162
-
163
-
164
-
165
-
166
- # [3.1.0](https://github.com/blacha/cogeotiff/compare/v3.0.0...v3.1.0) (2021-01-18)
167
-
168
-
169
- ### Features
170
-
171
- * **cli:** support cogs that are not geolocated ([#632](https://github.com/blacha/cogeotiff/issues/632)) ([da73964](https://github.com/blacha/cogeotiff/commit/da73964944620dd32094eab14e475225de021857))
172
-
173
-
174
-
175
-
176
-
177
- # [3.0.0](https://github.com/blacha/cogeotiff/compare/v2.2.0...v3.0.0) (2020-10-30)
178
-
179
-
180
- ### Features
181
-
182
- * **source-aws:** remove aws-sdk typings ([#582](https://github.com/blacha/cogeotiff/issues/582)) ([45527e3](https://github.com/blacha/cogeotiff/commit/45527e3))
183
-
184
-
185
- ### BREAKING CHANGES
186
-
187
- * **source-aws:** a default s3 object needs to be used when using the S3 Source, this can be set with `
188
- CogSourceAwsS3.DefaultS3 = new S3();`
189
-
190
- * build(deps): squash deps
191
-
192
-
193
-
194
-
195
-
196
- # [2.2.0](https://github.com/blacha/cogeotiff/compare/v2.1.1...v2.2.0) (2020-07-01)
197
-
198
- **Note:** Version bump only for package @cogeotiff/cli
199
-
200
-
201
-
202
-
203
-
204
- ## [2.1.1](https://github.com/blacha/cogeotiff/compare/v2.1.0...v2.1.1) (2020-06-25)
205
-
206
- **Note:** Version bump only for package @cogeotiff/cli
207
-
208
-
209
-
210
-
211
-
212
- # [2.1.0](https://github.com/blacha/cogeotiff/compare/v2.0.0...v2.1.0) (2020-06-14)
213
-
214
-
215
- ### Features
216
-
217
- * **cli:** expose gdal metadata if it exists ([823b142](https://github.com/blacha/cogeotiff/commit/823b142))
218
- * **cli:** expose resolution of overviews ([a7bf637](https://github.com/blacha/cogeotiff/commit/a7bf637))
219
- * **core:** expose epsg information ([54ab940](https://github.com/blacha/cogeotiff/commit/54ab940))
220
- * **core:** support striped tiffs ([#435](https://github.com/blacha/cogeotiff/issues/435)) ([8a5d68e](https://github.com/blacha/cogeotiff/commit/8a5d68e))
221
-
222
-
223
-
224
-
225
-
226
- # [2.0.0](https://github.com/blacha/cogeotiff/compare/v1.1.0...v2.0.0) (2020-05-18)
227
-
228
-
229
- * feat!: better support for sparse tiffs (#407) ([869073a](https://github.com/blacha/cogeotiff/commit/869073a)), closes [#407](https://github.com/blacha/cogeotiff/issues/407)
230
-
231
-
232
- ### BREAKING CHANGES
233
-
234
- * getTile now may return null if there is no data for a tile
235
-
236
- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
237
-
238
-
239
-
240
-
241
-
242
- # [1.1.0](https://github.com/blacha/cogeotiff/compare/v1.0.8...v1.1.0) (2020-05-12)
243
-
244
-
245
- ### Features
246
-
247
- * replace chalk with ansi-colors ([#393](https://github.com/blacha/cogeotiff/issues/393)) ([80abca9](https://github.com/blacha/cogeotiff/commit/80abca9))
248
-
249
-
250
-
251
-
252
-
253
- ## [1.0.8](https://github.com/blacha/cogeotiff/compare/v1.0.7...v1.0.8) (2020-05-11)
254
-
255
- **Note:** Version bump only for package @cogeotiff/cli
256
-
257
-
258
-
259
-
260
-
261
- ## [1.0.7](https://github.com/blacha/cogeotiff/compare/v1.0.6...v1.0.7) (2020-05-10)
262
-
263
-
264
- ### Bug Fixes
265
-
266
- * **cli:** dump tiles sometimes failed with "Chunk is not ready" ([#386](https://github.com/blacha/cogeotiff/issues/386)) ([890ef22](https://github.com/blacha/cogeotiff/commit/890ef22))
267
-
268
-
269
-
270
-
271
-
272
- ## [1.0.6](https://github.com/blacha/cogeotiff/compare/v1.0.5...v1.0.6) (2020-05-07)
273
-
274
- **Note:** Version bump only for package @cogeotiff/cli
275
-
276
-
277
-
278
-
279
-
280
- ## [1.0.5](https://github.com/blacha/cogeotiff/compare/v1.0.4...v1.0.5) (2020-05-07)
281
-
282
- **Note:** Version bump only for package @cogeotiff/cli
283
-
284
-
285
-
286
-
287
-
288
- ## [1.0.4](https://github.com/blacha/cogeotiff/compare/v1.0.3...v1.0.4) (2020-04-29)
289
-
290
-
291
- ### Bug Fixes
292
-
293
- * **cli:** zoom has no correlation to any real world zoom ([#373](https://github.com/blacha/cogeotiff/issues/373)) ([dfccc3e](https://github.com/blacha/cogeotiff/commit/dfccc3e))
294
-
295
-
296
-
297
-
298
-
299
- ## [1.0.3](https://github.com/blacha/cogeotiff/compare/v1.0.2...v1.0.3) (2020-03-12)
300
-
301
- **Note:** Version bump only for package @cogeotiff/cli
302
-
303
-
304
-
305
-
306
-
307
- ## [1.0.2](https://github.com/blacha/cogeotiff/compare/v1.0.1...v1.0.2) (2020-03-12)
308
-
309
- **Note:** Version bump only for package @cogeotiff/cli
310
-
311
-
312
-
313
-
314
-
315
- ## [1.0.1](https://github.com/blacha/cogeotiff/compare/v1.0.0...v1.0.1) (2020-03-10)
316
-
317
- **Note:** Version bump only for package @cogeotiff/cli
318
-
319
-
320
-
321
-
322
-
323
- # [1.0.0](https://github.com/blacha/cogeotiff/compare/v0.9.1...v1.0.0) (2020-03-09)
324
-
325
-
326
- * feat!: load geotags from other tiff tags ([a34f323](https://github.com/blacha/cogeotiff/commit/a34f323))
327
-
328
-
329
- ### Features
330
-
331
- * dump all tiff tags with --tags ([70c4548](https://github.com/blacha/cogeotiff/commit/70c4548))
332
- * show more information about tiff tags when requested ([d13ea48](https://github.com/blacha/cogeotiff/commit/d13ea48))
333
-
334
-
335
- ### BREAKING CHANGES
336
-
337
- * this forces a async load to be called before geo tags can be accessed
338
-
339
-
340
-
341
-
342
-
343
- ## [0.9.1](https://github.com/blacha/cogeotiff/compare/v0.9.0...v0.9.1) (2020-01-16)
344
-
345
-
346
- ### Bug Fixes
347
-
348
- * missing dep on source-aws ([f13f2a4](https://github.com/blacha/cogeotiff/commit/f13f2a4))
349
-
350
-
351
-
352
-
353
-
354
- # [0.9.0](https://github.com/blacha/cogeotiff/compare/v0.8.0...v0.9.0) (2020-01-16)
355
-
356
-
357
- ### Bug Fixes
358
-
359
- * force chalk v3 ([c68f498](https://github.com/blacha/cogeotiff/commit/c68f498))
360
- * let the cli logger handle error messages ([4cedda6](https://github.com/blacha/cogeotiff/commit/4cedda6))
361
-
362
-
363
- ### Features
364
-
365
- * allow the cli to load geotiffs from s3 ([8db14c9](https://github.com/blacha/cogeotiff/commit/8db14c9))
366
-
367
-
368
-
369
-
370
-
371
- # [0.8.0](https://github.com/blacha/cogeotiff/compare/v0.7.0...v0.8.0) (2020-01-16)
372
-
373
- **Note:** Version bump only for package @cogeotiff/cli
374
-
375
-
376
-
377
-
378
-
379
- # [0.7.0](https://github.com/blacha/cogeotiff/compare/v0.6.0...v0.7.0) (2019-12-08)
380
-
381
- **Note:** Version bump only for package @cogeotiff/cli
382
-
383
-
384
-
385
-
386
-
387
- # [0.6.0](https://github.com/blacha/cogeotiff/compare/v0.5.0...v0.6.0) (2019-11-22)
388
-
389
- **Note:** Version bump only for package @cogeotiff/cli
390
-
391
-
392
-
393
-
394
-
395
- # [0.5.0](https://github.com/blacha/cogeotiff/compare/v0.4.1...v0.5.0) (2019-11-21)
396
-
397
-
398
- ### Bug Fixes
399
-
400
- * remove lefthook ([0f4eb6e](https://github.com/blacha/cogeotiff/commit/0f4eb6e))
401
-
402
-
403
- ### Features
404
-
405
- * switch to pretty-json-log ([694aa58](https://github.com/blacha/cogeotiff/commit/694aa58))
406
- * typescript 3.7 ([ada8c2b](https://github.com/blacha/cogeotiff/commit/ada8c2b))
407
-
408
-
409
-
410
-
411
-
412
- ## [0.4.1](https://github.com/blacha/cogeotiff/compare/v0.4.0...v0.4.1) (2019-10-08)
413
-
414
- **Note:** Version bump only for package @cogeotiff/cli
415
-
416
-
417
-
418
-
419
-
420
- # [0.4.0](https://github.com/blacha/cogeotiff/compare/v0.3.1...v0.4.0) (2019-10-08)
421
-
422
-
423
- ### Bug Fixes
424
-
425
- * lgtm issues ([5ccde83](https://github.com/blacha/cogeotiff/commit/5ccde83))
426
-
427
-
428
- ### Features
429
-
430
- * switch to typescript 3.7 to remove some costly logging ([a585195](https://github.com/blacha/cogeotiff/commit/a585195))
431
-
432
-
433
-
434
-
435
-
436
- ## [0.3.1](https://github.com/blacha/cogeotiff/compare/v0.3.0...v0.3.1) (2019-09-25)
437
-
438
- **Note:** Version bump only for package @cogeotiff/cli
439
-
440
-
441
-
442
-
443
-
444
- # [0.3.0](https://github.com/blacha/cogeotiff/compare/v0.2.3...v0.3.0) (2019-09-24)
445
-
446
- **Note:** Version bump only for package @cogeotiff/cli
447
-
448
-
449
-
450
-
451
-
452
- ## [0.2.3](https://github.com/blacha/cogeotiff/compare/v0.2.2...v0.2.3) (2019-09-12)
453
-
454
-
455
- ### Bug Fixes
456
-
457
- * missed rename on file ([62160b7](https://github.com/blacha/cogeotiff/commit/62160b7))
458
-
459
-
460
-
461
-
462
-
463
- ## [0.2.2](https://github.com/blacha/cogeotiff/compare/v0.2.1...v0.2.2) (2019-09-12)
464
-
465
-
466
- ### Bug Fixes
467
-
468
- * ignore tsconfig.tsbuildinfo when publishing ([8a27600](https://github.com/blacha/cogeotiff/commit/8a27600))
469
-
470
-
471
-
472
-
473
-
474
- ## [0.2.1](https://github.com/blacha/cogeotiff/compare/v0.2.0...v0.2.1) (2019-09-12)
475
-
476
-
477
- ### Bug Fixes
478
-
479
- * cannot publish without access:public ([a408389](https://github.com/blacha/cogeotiff/commit/a408389))
480
-
481
-
482
-
483
-
484
-
485
- # [0.2.0](https://github.com/blacha/cogeotiff/compare/v0.0.12...v0.2.0) (2019-09-12)
3
+ ## [8.0.1](https://github.com/blacha/cogeotiff/compare/cli-v8.0.0...cli-v8.0.1) (2023-08-05)
486
4
 
487
5
 
488
6
  ### Bug Fixes
489
7
 
490
- * bad cli path ([b91d04f](https://github.com/blacha/cogeotiff/commit/b91d04f))
491
- * expose aws cog source ([858990d](https://github.com/blacha/cogeotiff/commit/858990d))
492
- * wait for the file write to finish ([324e934](https://github.com/blacha/cogeotiff/commit/324e934))
8
+ * broken changelog ordering ([31f8c8a](https://github.com/blacha/cogeotiff/commit/31f8c8ac5e2770427ed2dc0f5c7c34330c6cb0eb))
493
9
 
494
10
 
495
- ### Features
11
+ ### Dependencies
496
12
 
497
- * rename to cogeotiff ([9a2c099](https://github.com/blacha/cogeotiff/commit/9a2c099))
498
- * switch to cogeotiff ([6ab420a](https://github.com/blacha/cogeotiff/commit/6ab420a))
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @cogeotiff/core bumped from ^8.0.0 to ^8.0.1
package/README.md CHANGED
@@ -19,39 +19,39 @@ npm i -g @cogeotiff/cli
19
19
  Display basic information about COG
20
20
 
21
21
  ```shell
22
- cogeotiff info --file webp.cog.tif
22
+ cogeotiff info webp.cog.tiff
23
23
  ```
24
24
 
25
25
  Output:
26
26
 
27
27
  ```
28
- COG File Info - /home/blacha/Downloads/tif-new/bg43.webp.cog.tif
28
+ COG File Info - s3://linz-imagery/otago/otago_sn9457_1995-1997_0.75m/2193/rgb/ Tiff type BigTiff (v43)
29
+ Bytes read 32 KB (1 Chunk)
29
30
 
30
- Tiff type BigTiff (v43)
31
- Chunk size 64 KB
32
- Bytes read 64 KB (1 Chunk)
33
-
34
- Images
31
+ Images
35
32
  Compression image/webp
36
- Origin 18550349.52047286,-5596413.462927464,0
37
- Resolution 19.10925707129406,-19.10925707129415,0
38
- BoundingBox 18550349.52047286,-5713820.738373496,19098250.139221005,-5596413.462927464
39
- Info
40
- Id Size Tile Size Tile Count
41
- 0 28672x6144 56x12 672
42
- 1 14336x3072 28x6 168
43
- 2 7168x1536 14x3 42
44
- 3 3584x768 7x2 14
45
- 4 1792x384 4x1 4
46
- 5 896x192 2x1 2
47
- 6 448x96 1x1 1
48
-
49
- GDAL
33
+ Origin 1352800, 4851600, 0
34
+ Resolution 0.75, -0.75, 0
35
+ BoundingBox 1352800, 4844400, 1357600, 4851600
36
+ EPSG EPSG:2193 (https://epsg.io/2193)
37
+ Images
38
+ Id Size Tile Size Tile Count Resolution
39
+ 0 6400x9600 512x512 13x19 (247) 0.75
40
+ 1 3200x4800 512x512 7x10 (70) 1.5
41
+ 2 1600x2400 512x512 4x5 (20) 3
42
+ 3 800x1200 512x512 2x3 (6) 6
43
+ 4 400x600 512x512 1x2 (2) 12
44
+ 5 200x300 512x512 1x1 (1) 24
45
+
46
+ GDAL
50
47
  COG optimized true
51
- COG broken false
52
- Tile order RowMajor
53
- Tile leader uint32 - 4 Bytes
54
- Mask interleaved false
48
+ Ghost Options
49
+ GDAL_STRUCTURAL_METADATA_SIZE = 000140 bytes
50
+ LAYOUT = IFDS_BEFORE_DATA
51
+ BLOCK_ORDER = ROW_MAJOR
52
+ BLOCK_LEADER = SIZE_AS_UINT4
53
+ BLOCK_TRAILER = LAST_4_BYTES_REPEATED
54
+ KNOWN_INCOMPATIBLE_EDITION = NO
55
55
  ```
56
56
 
57
57
  ### cogeotiff dump
@@ -59,13 +59,5 @@ COG File Info - /home/blacha/Downloads/tif-new/bg43.webp.cog.tif
59
59
  Dump all tiles for a image (**Warning** if you do this for a large cog this will create millions of files.)
60
60
 
61
61
  ```
62
- cogeotiff dump --file webp.cog.tif --image 2 --output output
63
- ```
64
-
65
- ### cogeotiff tile
66
-
67
- Load and dump a individual tile
68
-
69
- ```
70
- cogeotiff tile --file webp.cog.tif --xyz 1,1,1
62
+ cogeotiff dump webp.cog.tiff --image 2 --output output
71
63
  ```
package/bin/cogeotiff.js CHANGED
@@ -1,3 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import 'source-map-support/register.js';
3
- import '../build/index.js';
2
+ import '../build/bin.js';
@@ -1,19 +1,13 @@
1
- import { ChunkSource } from '@chunkd/core';
2
- import { CogTiff } from '@cogeotiff/core';
3
- import { CommandLineStringParameter } from '@rushstack/ts-command-line';
4
1
  export interface CLiResultMapLine {
5
2
  key: string;
6
3
  value: string | number | boolean | number[] | null;
4
+ enabled?: boolean;
7
5
  }
8
6
  export interface CliResultMap {
9
7
  title?: string;
10
8
  keys: (CLiResultMapLine | null)[];
9
+ enabled?: boolean;
11
10
  }
12
11
  export declare const ActionUtil: {
13
- getCogSource(file?: CommandLineStringParameter | null): Promise<{
14
- source: ChunkSource;
15
- tif: CogTiff;
16
- }>;
17
12
  formatResult(title: string, result: CliResultMap[]): string[];
18
13
  };
19
- //# sourceMappingURL=action.util.d.ts.map
@@ -1,29 +1,18 @@
1
- import { fsa } from '@chunkd/fs';
2
- import { CogTiff } from '@cogeotiff/core';
3
1
  import c from 'ansi-colors';
4
2
  export const ActionUtil = {
5
- async getCogSource(file) {
6
- if (file == null || file.value == null) {
7
- throw new Error(`File "${file} is not valid`);
8
- }
9
- const source = fsa.source(file.value);
10
- if (source == null)
11
- throw new Error(`File "${file} is not valid`);
12
- const tif = new CogTiff(source);
13
- await tif.init(false);
14
- return { source, tif };
15
- },
16
3
  formatResult(title, result) {
17
4
  const msg = [title];
18
5
  for (const group of result) {
6
+ if (group.enabled === false)
7
+ continue;
19
8
  msg.push('');
20
- if (group.title) {
9
+ if (group.title)
21
10
  msg.push(c.bold(group.title));
22
- }
23
11
  for (const kv of group.keys) {
24
- if (kv == null) {
12
+ if (kv == null)
13
+ continue;
14
+ if (kv.enabled === false)
25
15
  continue;
26
- }
27
16
  if (kv.value == null || (typeof kv.value === 'string' && kv.value.trim() === '')) {
28
17
  continue;
29
18
  }
@@ -33,4 +22,4 @@ export const ActionUtil = {
33
22
  return msg;
34
23
  },
35
24
  };
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLnV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYWN0aW9uLnV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNqQyxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0saUJBQWlCLEN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7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGt2IG9mIGdyb3VwLmtleXMpIHtcbiAgICAgICAgICAgICAgICBpZiAoa3YgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKGt2LnZhbHVlID09IG51bGwgfHwgKHR5cGVvZiBrdi52YWx1ZSA9PT0gJ3N0cmluZycgJiYga3YudmFsdWUudHJpbSgpID09PSAnJykpIHtcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIG1zZy5wdXNoKGAgICAgJHtrdi5rZXkucGFkRW5kKDE0LCAnICcpfSAgJHtTdHJpbmcoa3YudmFsdWUpfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBtc2c7XG4gICAgfSxcbn07XG4iXX0=
25
+ //# sourceMappingURL=action.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.util.js","sourceRoot":"","sources":["../src/action.util.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,aAAa,CAAC;AAa5B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,YAAY,CAAC,KAAa,EAAE,MAAsB;QAChD,MAAM,GAAG,GAAa,CAAC,KAAK,CAAC,CAAC;QAC9B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;YAC1B,IAAI,KAAK,CAAC,OAAO,KAAK,KAAK;gBAAE,SAAS;YACtC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACb,IAAI,KAAK,CAAC,KAAK;gBAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;YAC/C,KAAK,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,EAAE;gBAC3B,IAAI,EAAE,IAAI,IAAI;oBAAE,SAAS;gBACzB,IAAI,EAAE,CAAC,OAAO,KAAK,KAAK;oBAAE,SAAS;gBACnC,IAAI,EAAE,CAAC,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE;oBAChF,SAAS;iBACV;gBACD,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;aAChE;SACF;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF,CAAC"}
package/build/bin.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/build/bin.js ADDED
@@ -0,0 +1,13 @@
1
+ // Ensure connection reuse is enabled
2
+ process.env['AWS_NODEJS_CONNECTION_REUSE_ENABLED'] = '1';
3
+ import { run } from 'cmd-ts';
4
+ import { cmd } from './index.js';
5
+ import { logger } from './log.js';
6
+ import { otError } from '@linzjs/tracing';
7
+ run(cmd, process.argv.slice(2)).catch((err) => {
8
+ logger.fatal('Command:Failed', { ...otError(err) });
9
+ logger.pino.flush();
10
+ // Give the log some time to flush before exiting
11
+ setTimeout(() => process.exit(1), 25);
12
+ });
13
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,GAAG,GAAG,CAAC;AAEzD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IAC5C,MAAM,CAAC,KAAK,CAAC,gBAAgB,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpD,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC"}
@@ -17,4 +17,3 @@ export declare class CliTable<T> {
17
17
  print(data: T[], rowPadding?: string): string[];
18
18
  }
19
19
  export {};
20
- //# sourceMappingURL=cli.table.d.ts.map