@cogeotiff/cli 7.2.1 → 8.0.2
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/CHANGELOG.md +10 -485
- package/README.md +26 -34
- package/bin/cogeotiff.js +1 -2
- package/build/action.util.d.ts +2 -8
- package/build/action.util.js +7 -18
- package/build/action.util.js.map +1 -0
- package/build/bin.d.ts +1 -0
- package/build/bin.js +13 -0
- package/build/bin.js.map +1 -0
- package/build/cli.table.d.ts +0 -1
- package/build/cli.table.js +9 -4
- package/build/cli.table.js.map +1 -0
- package/build/commands/dump.d.ts +27 -0
- package/build/commands/dump.js +132 -0
- package/build/commands/dump.js.map +1 -0
- package/build/commands/info.d.ts +19 -0
- package/build/commands/info.js +185 -0
- package/build/commands/info.js.map +1 -0
- package/build/common.d.ts +16 -0
- package/build/common.js +19 -0
- package/build/common.js.map +1 -0
- package/build/fs.d.ts +6 -0
- package/build/fs.js +17 -0
- package/build/fs.js.map +1 -0
- package/build/index.d.ts +57 -2
- package/build/index.js +11 -8
- package/build/index.js.map +1 -0
- package/build/log.d.ts +11 -0
- package/build/log.js +37 -0
- package/build/log.js.map +1 -0
- package/build/util.bytes.d.ts +0 -1
- package/build/util.bytes.js +1 -1
- package/build/util.bytes.js.map +1 -0
- package/build/util.tile.d.ts +2 -3
- package/build/util.tile.js +20 -18
- package/build/util.tile.js.map +1 -0
- package/package.json +37 -37
- package/src/action.util.ts +22 -37
- package/src/bin.ts +14 -0
- package/src/cli.table.ts +27 -27
- package/src/commands/dump.ts +156 -0
- package/src/commands/info.ts +199 -0
- package/src/common.ts +20 -0
- package/src/fs.ts +18 -0
- package/src/index.ts +10 -7
- package/src/log.ts +43 -0
- package/src/util.bytes.ts +6 -6
- package/src/util.tile.ts +33 -33
- package/tsconfig.json +8 -8
- package/build/action.dump.tile.d.ts +0 -24
- package/build/action.dump.tile.d.ts.map +0 -1
- package/build/action.dump.tile.js +0 -194
- package/build/action.info.d.ts +0 -10
- package/build/action.info.d.ts.map +0 -1
- package/build/action.info.js +0 -183
- package/build/action.tile.d.ts +0 -9
- package/build/action.tile.d.ts.map +0 -1
- package/build/action.tile.js +0 -64
- package/build/action.util.d.ts.map +0 -1
- package/build/cli.cog.info.d.ts +0 -9
- package/build/cli.cog.info.d.ts.map +0 -1
- package/build/cli.cog.info.js +0 -42
- package/build/cli.log.d.ts +0 -3
- package/build/cli.log.d.ts.map +0 -1
- package/build/cli.log.js +0 -4
- package/build/cli.table.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/util.bytes.d.ts.map +0 -1
- package/build/util.tile.d.ts.map +0 -1
- package/src/action.dump.tile.ts +0 -240
- package/src/action.info.ts +0 -205
- package/src/action.tile.ts +0 -76
- package/src/cli.cog.info.ts +0 -45
- package/src/cli.log.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,504 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
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)
|
|
3
|
+
## [8.0.2](https://github.com/blacha/cogeotiff/compare/cli-v8.0.1...cli-v8.0.2) (2023-08-05)
|
|
7
4
|
|
|
8
5
|
|
|
9
6
|
### Bug Fixes
|
|
10
7
|
|
|
11
|
-
* **
|
|
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
|
-
|
|
8
|
+
* **core:** expose TiffTag and TiffTagGeo ([d538bdc](https://github.com/blacha/cogeotiff/commit/d538bdc833bf76ba8d730a1062156916715585b4))
|
|
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 ^
|
|
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
|
|
15
|
+
* @cogeotiff/core bumped from ^8.0.1 to ^8.0.2
|
|
262
16
|
|
|
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)
|
|
17
|
+
## [8.0.1](https://github.com/blacha/cogeotiff/compare/cli-v8.0.0...cli-v8.0.1) (2023-08-05)
|
|
492
18
|
|
|
493
19
|
|
|
494
20
|
### Bug Fixes
|
|
495
21
|
|
|
496
|
-
*
|
|
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))
|
|
22
|
+
* broken changelog ordering ([31f8c8a](https://github.com/blacha/cogeotiff/commit/31f8c8ac5e2770427ed2dc0f5c7c34330c6cb0eb))
|
|
499
23
|
|
|
500
24
|
|
|
501
|
-
###
|
|
25
|
+
### Dependencies
|
|
502
26
|
|
|
503
|
-
*
|
|
504
|
-
*
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @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
|
|
22
|
+
cogeotiff info webp.cog.tiff
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Output:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
COG File Info - /
|
|
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
|
-
|
|
31
|
-
Chunk size 64 KB
|
|
32
|
-
Bytes read 64 KB (1 Chunk)
|
|
33
|
-
|
|
34
|
-
Images
|
|
31
|
+
Images
|
|
35
32
|
Compression image/webp
|
|
36
|
-
Origin
|
|
37
|
-
Resolution
|
|
38
|
-
BoundingBox
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
3
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
|
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
package/build/action.util.d.ts
CHANGED
|
@@ -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
|
package/build/action.util.js
CHANGED
|
@@ -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=
|
|
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
|