@cogeotiff/cli 7.2.1 → 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 +4 -493
  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 -8
  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,504 +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)
3
+ ## [8.0.1](https://github.com/blacha/cogeotiff/compare/cli-v8.0.0...cli-v8.0.1) (2023-08-05)
19
4
 
20
5
 
21
6
  ### Bug Fixes
22
7
 
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
-
8
+ * broken changelog ordering ([31f8c8a](https://github.com/blacha/cogeotiff/commit/31f8c8ac5e2770427ed2dc0f5c7c34330c6cb0eb))
43
9
 
44
10
 
45
11
  ### Dependencies
46
12
 
47
13
  * The following workspace dependencies were updated
48
14
  * dependencies
49
- * @cogeotiff/core bumped from ^7.2.0 to ^7.2.1
50
-
51
- ## [6.1.1](https://github.com/blacha/cogeotiff/compare/v6.1.0...v6.1.1) (2022-01-26)
52
-
53
- **Note:** Version bump only for package @cogeotiff/cli
54
-
55
-
56
-
57
-
58
-
59
- # [6.1.0](https://github.com/blacha/cogeotiff/compare/v6.0.2...v6.1.0) (2021-09-30)
60
-
61
- **Note:** Version bump only for package @cogeotiff/cli
62
-
63
-
64
-
65
-
66
-
67
- ## [6.0.2](https://github.com/blacha/cogeotiff/compare/v6.0.1...v6.0.2) (2021-09-16)
68
-
69
-
70
- ### Bug Fixes
71
-
72
- * upgrade to latest chunkd fixes issue with missing fetchBytes function ([9b33cbf](https://github.com/blacha/cogeotiff/commit/9b33cbfe02acaa1248895203c1a55002b82d1a49))
73
-
74
-
75
-
76
-
77
-
78
- ## [6.0.1](https://github.com/blacha/cogeotiff/compare/v6.0.0...v6.0.1) (2021-09-15)
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * missing bin file ([3e5beb0](https://github.com/blacha/cogeotiff/commit/3e5beb03664cbea3b7bfb64c8a3a4e2dac7d623d))
84
-
85
-
86
-
87
-
88
-
89
- # [6.0.0](https://github.com/blacha/cogeotiff/compare/v5.0.0...v6.0.0) (2021-09-11)
90
-
91
-
92
- ### Features
93
-
94
- * package with esm modules ([#738](https://github.com/blacha/cogeotiff/issues/738)) ([ac0b4f0](https://github.com/blacha/cogeotiff/commit/ac0b4f0932538a55ccc2d22bba94b8bf23dba27a))
95
-
96
-
97
- ### BREAKING CHANGES
98
-
99
- * this changes the module system to ESM which breaks compatibility with require
100
-
101
-
102
-
103
-
104
-
105
- # [5.0.0](https://github.com/blacha/cogeotiff/compare/v4.4.0...v5.0.0) (2021-07-23)
106
-
107
-
108
- ### Features
109
-
110
- * extract all chunk source logic into `@chunkd/*` ([#723](https://github.com/blacha/cogeotiff/issues/723)) ([fa42393](https://github.com/blacha/cogeotiff/commit/fa4239358b11821b21fc78652b0744bc3c839c06))
111
-
112
-
113
-
114
-
115
-
116
- # [4.4.0](https://github.com/blacha/cogeotiff/compare/v4.3.0...v4.4.0) (2021-07-23)
117
-
118
- **Note:** Version bump only for package @cogeotiff/cli
119
-
120
-
121
-
122
-
123
-
124
- # [4.3.0](https://github.com/blacha/cogeotiff/compare/v4.2.0...v4.3.0) (2021-06-22)
125
-
126
- **Note:** Version bump only for package @cogeotiff/cli
127
-
128
-
129
-
130
-
131
-
132
- # [4.2.0](https://github.com/blacha/cogeotiff/compare/v4.1.2...v4.2.0) (2021-03-25)
133
-
134
- **Note:** Version bump only for package @cogeotiff/cli
135
-
136
-
137
-
138
-
139
-
140
- ## [4.1.2](https://github.com/blacha/cogeotiff/compare/v4.1.1...v4.1.2) (2021-03-18)
141
-
142
- **Note:** Version bump only for package @cogeotiff/cli
143
-
144
-
145
-
146
-
147
-
148
- ## [4.1.1](https://github.com/blacha/cogeotiff/compare/v4.1.0...v4.1.1) (2021-03-10)
149
-
150
- **Note:** Version bump only for package @cogeotiff/cli
151
-
152
-
153
-
154
-
155
-
156
- # [4.1.0](https://github.com/blacha/cogeotiff/compare/v4.0.0...v4.1.0) (2021-02-23)
157
-
158
- **Note:** Version bump only for package @cogeotiff/cli
159
-
160
-
161
-
162
-
163
-
164
- # [4.0.0](https://github.com/blacha/cogeotiff/compare/v3.1.0...v4.0.0) (2021-02-02)
165
-
166
- **Note:** Version bump only for package @cogeotiff/cli
167
-
168
-
169
-
170
-
171
-
172
- # [3.1.0](https://github.com/blacha/cogeotiff/compare/v3.0.0...v3.1.0) (2021-01-18)
173
-
174
-
175
- ### Features
176
-
177
- * **cli:** support cogs that are not geolocated ([#632](https://github.com/blacha/cogeotiff/issues/632)) ([da73964](https://github.com/blacha/cogeotiff/commit/da73964944620dd32094eab14e475225de021857))
178
-
179
-
180
-
181
-
182
-
183
- # [3.0.0](https://github.com/blacha/cogeotiff/compare/v2.2.0...v3.0.0) (2020-10-30)
184
-
185
-
186
- ### Features
187
-
188
- * **source-aws:** remove aws-sdk typings ([#582](https://github.com/blacha/cogeotiff/issues/582)) ([45527e3](https://github.com/blacha/cogeotiff/commit/45527e3))
189
-
190
-
191
- ### BREAKING CHANGES
192
-
193
- * **source-aws:** a default s3 object needs to be used when using the S3 Source, this can be set with `
194
- CogSourceAwsS3.DefaultS3 = new S3();`
195
-
196
- * build(deps): squash deps
197
-
198
-
199
-
200
-
201
-
202
- # [2.2.0](https://github.com/blacha/cogeotiff/compare/v2.1.1...v2.2.0) (2020-07-01)
203
-
204
- **Note:** Version bump only for package @cogeotiff/cli
205
-
206
-
207
-
208
-
209
-
210
- ## [2.1.1](https://github.com/blacha/cogeotiff/compare/v2.1.0...v2.1.1) (2020-06-25)
211
-
212
- **Note:** Version bump only for package @cogeotiff/cli
213
-
214
-
215
-
216
-
217
-
218
- # [2.1.0](https://github.com/blacha/cogeotiff/compare/v2.0.0...v2.1.0) (2020-06-14)
219
-
220
-
221
- ### Features
222
-
223
- * **cli:** expose gdal metadata if it exists ([823b142](https://github.com/blacha/cogeotiff/commit/823b142))
224
- * **cli:** expose resolution of overviews ([a7bf637](https://github.com/blacha/cogeotiff/commit/a7bf637))
225
- * **core:** expose epsg information ([54ab940](https://github.com/blacha/cogeotiff/commit/54ab940))
226
- * **core:** support striped tiffs ([#435](https://github.com/blacha/cogeotiff/issues/435)) ([8a5d68e](https://github.com/blacha/cogeotiff/commit/8a5d68e))
227
-
228
-
229
-
230
-
231
-
232
- # [2.0.0](https://github.com/blacha/cogeotiff/compare/v1.1.0...v2.0.0) (2020-05-18)
233
-
234
-
235
- * feat!: better support for sparse tiffs (#407) ([869073a](https://github.com/blacha/cogeotiff/commit/869073a)), closes [#407](https://github.com/blacha/cogeotiff/issues/407)
236
-
237
-
238
- ### BREAKING CHANGES
239
-
240
- * getTile now may return null if there is no data for a tile
241
-
242
- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
243
-
244
-
245
-
246
-
247
-
248
- # [1.1.0](https://github.com/blacha/cogeotiff/compare/v1.0.8...v1.1.0) (2020-05-12)
249
-
250
-
251
- ### Features
252
-
253
- * replace chalk with ansi-colors ([#393](https://github.com/blacha/cogeotiff/issues/393)) ([80abca9](https://github.com/blacha/cogeotiff/commit/80abca9))
254
-
255
-
256
-
257
-
258
-
259
- ## [1.0.8](https://github.com/blacha/cogeotiff/compare/v1.0.7...v1.0.8) (2020-05-11)
260
-
261
- **Note:** Version bump only for package @cogeotiff/cli
262
-
263
-
264
-
265
-
266
-
267
- ## [1.0.7](https://github.com/blacha/cogeotiff/compare/v1.0.6...v1.0.7) (2020-05-10)
268
-
269
-
270
- ### Bug Fixes
271
-
272
- * **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))
273
-
274
-
275
-
276
-
277
-
278
- ## [1.0.6](https://github.com/blacha/cogeotiff/compare/v1.0.5...v1.0.6) (2020-05-07)
279
-
280
- **Note:** Version bump only for package @cogeotiff/cli
281
-
282
-
283
-
284
-
285
-
286
- ## [1.0.5](https://github.com/blacha/cogeotiff/compare/v1.0.4...v1.0.5) (2020-05-07)
287
-
288
- **Note:** Version bump only for package @cogeotiff/cli
289
-
290
-
291
-
292
-
293
-
294
- ## [1.0.4](https://github.com/blacha/cogeotiff/compare/v1.0.3...v1.0.4) (2020-04-29)
295
-
296
-
297
- ### Bug Fixes
298
-
299
- * **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))
300
-
301
-
302
-
303
-
304
-
305
- ## [1.0.3](https://github.com/blacha/cogeotiff/compare/v1.0.2...v1.0.3) (2020-03-12)
306
-
307
- **Note:** Version bump only for package @cogeotiff/cli
308
-
309
-
310
-
311
-
312
-
313
- ## [1.0.2](https://github.com/blacha/cogeotiff/compare/v1.0.1...v1.0.2) (2020-03-12)
314
-
315
- **Note:** Version bump only for package @cogeotiff/cli
316
-
317
-
318
-
319
-
320
-
321
- ## [1.0.1](https://github.com/blacha/cogeotiff/compare/v1.0.0...v1.0.1) (2020-03-10)
322
-
323
- **Note:** Version bump only for package @cogeotiff/cli
324
-
325
-
326
-
327
-
328
-
329
- # [1.0.0](https://github.com/blacha/cogeotiff/compare/v0.9.1...v1.0.0) (2020-03-09)
330
-
331
-
332
- * feat!: load geotags from other tiff tags ([a34f323](https://github.com/blacha/cogeotiff/commit/a34f323))
333
-
334
-
335
- ### Features
336
-
337
- * dump all tiff tags with --tags ([70c4548](https://github.com/blacha/cogeotiff/commit/70c4548))
338
- * show more information about tiff tags when requested ([d13ea48](https://github.com/blacha/cogeotiff/commit/d13ea48))
339
-
340
-
341
- ### BREAKING CHANGES
342
-
343
- * this forces a async load to be called before geo tags can be accessed
344
-
345
-
346
-
347
-
348
-
349
- ## [0.9.1](https://github.com/blacha/cogeotiff/compare/v0.9.0...v0.9.1) (2020-01-16)
350
-
351
-
352
- ### Bug Fixes
353
-
354
- * missing dep on source-aws ([f13f2a4](https://github.com/blacha/cogeotiff/commit/f13f2a4))
355
-
356
-
357
-
358
-
359
-
360
- # [0.9.0](https://github.com/blacha/cogeotiff/compare/v0.8.0...v0.9.0) (2020-01-16)
361
-
362
-
363
- ### Bug Fixes
364
-
365
- * force chalk v3 ([c68f498](https://github.com/blacha/cogeotiff/commit/c68f498))
366
- * let the cli logger handle error messages ([4cedda6](https://github.com/blacha/cogeotiff/commit/4cedda6))
367
-
368
-
369
- ### Features
370
-
371
- * allow the cli to load geotiffs from s3 ([8db14c9](https://github.com/blacha/cogeotiff/commit/8db14c9))
372
-
373
-
374
-
375
-
376
-
377
- # [0.8.0](https://github.com/blacha/cogeotiff/compare/v0.7.0...v0.8.0) (2020-01-16)
378
-
379
- **Note:** Version bump only for package @cogeotiff/cli
380
-
381
-
382
-
383
-
384
-
385
- # [0.7.0](https://github.com/blacha/cogeotiff/compare/v0.6.0...v0.7.0) (2019-12-08)
386
-
387
- **Note:** Version bump only for package @cogeotiff/cli
388
-
389
-
390
-
391
-
392
-
393
- # [0.6.0](https://github.com/blacha/cogeotiff/compare/v0.5.0...v0.6.0) (2019-11-22)
394
-
395
- **Note:** Version bump only for package @cogeotiff/cli
396
-
397
-
398
-
399
-
400
-
401
- # [0.5.0](https://github.com/blacha/cogeotiff/compare/v0.4.1...v0.5.0) (2019-11-21)
402
-
403
-
404
- ### Bug Fixes
405
-
406
- * remove lefthook ([0f4eb6e](https://github.com/blacha/cogeotiff/commit/0f4eb6e))
407
-
408
-
409
- ### Features
410
-
411
- * switch to pretty-json-log ([694aa58](https://github.com/blacha/cogeotiff/commit/694aa58))
412
- * typescript 3.7 ([ada8c2b](https://github.com/blacha/cogeotiff/commit/ada8c2b))
413
-
414
-
415
-
416
-
417
-
418
- ## [0.4.1](https://github.com/blacha/cogeotiff/compare/v0.4.0...v0.4.1) (2019-10-08)
419
-
420
- **Note:** Version bump only for package @cogeotiff/cli
421
-
422
-
423
-
424
-
425
-
426
- # [0.4.0](https://github.com/blacha/cogeotiff/compare/v0.3.1...v0.4.0) (2019-10-08)
427
-
428
-
429
- ### Bug Fixes
430
-
431
- * lgtm issues ([5ccde83](https://github.com/blacha/cogeotiff/commit/5ccde83))
432
-
433
-
434
- ### Features
435
-
436
- * switch to typescript 3.7 to remove some costly logging ([a585195](https://github.com/blacha/cogeotiff/commit/a585195))
437
-
438
-
439
-
440
-
441
-
442
- ## [0.3.1](https://github.com/blacha/cogeotiff/compare/v0.3.0...v0.3.1) (2019-09-25)
443
-
444
- **Note:** Version bump only for package @cogeotiff/cli
445
-
446
-
447
-
448
-
449
-
450
- # [0.3.0](https://github.com/blacha/cogeotiff/compare/v0.2.3...v0.3.0) (2019-09-24)
451
-
452
- **Note:** Version bump only for package @cogeotiff/cli
453
-
454
-
455
-
456
-
457
-
458
- ## [0.2.3](https://github.com/blacha/cogeotiff/compare/v0.2.2...v0.2.3) (2019-09-12)
459
-
460
-
461
- ### Bug Fixes
462
-
463
- * missed rename on file ([62160b7](https://github.com/blacha/cogeotiff/commit/62160b7))
464
-
465
-
466
-
467
-
468
-
469
- ## [0.2.2](https://github.com/blacha/cogeotiff/compare/v0.2.1...v0.2.2) (2019-09-12)
470
-
471
-
472
- ### Bug Fixes
473
-
474
- * ignore tsconfig.tsbuildinfo when publishing ([8a27600](https://github.com/blacha/cogeotiff/commit/8a27600))
475
-
476
-
477
-
478
-
479
-
480
- ## [0.2.1](https://github.com/blacha/cogeotiff/compare/v0.2.0...v0.2.1) (2019-09-12)
481
-
482
-
483
- ### Bug Fixes
484
-
485
- * cannot publish without access:public ([a408389](https://github.com/blacha/cogeotiff/commit/a408389))
486
-
487
-
488
-
489
-
490
-
491
- # [0.2.0](https://github.com/blacha/cogeotiff/compare/v0.0.12...v0.2.0) (2019-09-12)
492
-
493
-
494
- ### Bug Fixes
495
-
496
- * bad cli path ([b91d04f](https://github.com/blacha/cogeotiff/commit/b91d04f))
497
- * expose aws cog source ([858990d](https://github.com/blacha/cogeotiff/commit/858990d))
498
- * wait for the file write to finish ([324e934](https://github.com/blacha/cogeotiff/commit/324e934))
499
-
500
-
501
- ### Features
502
-
503
- * rename to cogeotiff ([9a2c099](https://github.com/blacha/cogeotiff/commit/9a2c099))
504
- * switch to cogeotiff ([6ab420a](https://github.com/blacha/cogeotiff/commit/6ab420a))
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLnV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYWN0aW9uLnV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUNq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gICAgICAgbXNnLnB1c2goYy5ib2xkKGdyb3VwLnRpdGxlKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGt2IG9mIGdyb3VwLmtleXMpIHtcbiAgICAgICAgICAgICAgICBpZiAoa3YgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKGt2LnZhbHVlID09IG51bGwgfHwgKHR5cGVvZiBrdi52YWx1ZSA9PT0gJ3N0cmluZycgJiYga3YudmFsdWUudHJpbSgpID09PSAnJykpIHtcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIG1zZy5wdXNoKGAgICAgJHtrdi5rZXkucGFkRW5kKDE0LCAnICcpfSAgJHtTdHJpbmcoa3YudmFsdWUpfWApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBtc2c7XG4gICAgfSxcbn07XG4iXX0=
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"}