@basemaps/cli 6.18.0 → 6.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [6.20.0](https://github.com/linz/basemaps/compare/v6.19.0...v6.20.0) (2022-02-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** disable reading sidecar files ([#2049](https://github.com/linz/basemaps/issues/2049)) ([d42d03b](https://github.com/linz/basemaps/commit/d42d03b34a1f3d9de895ee3c318112882e5a8972))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.18.0](https://github.com/linz/basemaps/compare/v6.17.0...v6.18.0) (2021-12-14)
7
18
 
8
19
  **Note:** Version bump only for package @basemaps/cli
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- Basemaps MIT Licence
1
+ MIT License
2
2
 
3
- Crown copyright (c) 2020, Land Information New Zealand on behalf of the New Zealand Government.
3
+ Crown copyright (c), Toitū Te Whenua Land Information New Zealand on behalf of the New Zealand Government.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -66,6 +66,9 @@ o.spec('cog', () => {
66
66
  'QUALITY=90',
67
67
  '-co',
68
68
  'SPARSE_OK=YES',
69
+ '--config',
70
+ 'GDAL_DISABLE_READDIR_ON_OPEN',
71
+ 'EMPTY_DIR',
69
72
  '-tr',
70
73
  '0.75',
71
74
  '0.75',
package/build/cog/cog.js CHANGED
@@ -2,7 +2,7 @@ import { Bounds, TileMatrixSet } from '@basemaps/geo';
2
2
  import { Env, isConfigS3Role, Projection } from '@basemaps/shared';
3
3
  import { GdalCogBuilder } from '../gdal/gdal.cog.js';
4
4
  import { GdalProgressParser } from '../gdal/gdal.progress.js';
5
- import { AwsCredentials } from '@chunkd/fs';
5
+ import { AwsCredentials } from '@chunkd/source-aws-v2';
6
6
  /**
7
7
  * Create a onProgress logger
8
8
  *
@@ -2,7 +2,7 @@ import { Epsg } from '@basemaps/geo';
2
2
  import { Env, fsa, isConfigS3Role, s3ToVsis3 } from '@basemaps/shared';
3
3
  import { Gdal } from '../gdal/gdal.js';
4
4
  import { onProgress } from './cog.js';
5
- import { AwsCredentials } from '@chunkd/fs';
5
+ import { AwsCredentials } from '@chunkd/source-aws-v2';
6
6
  /**
7
7
  * Build the VRT for the needed source imagery
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"gdal.cog.d.ts","sourceRoot":"","sources":["../../src/gdal/gdal.cog.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAA0B,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,+DAA+D;AAG/D;;;;;;GAMG;AACH,qBAAa,cAAc;IACzB,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC7C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB;IACnB,IAAI,EAAE,WAAW,CAAC;gBAEN,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,qBAAqB,CAAM;IAmBvF,SAAS,IAAI,MAAM,EAAE;IAYrB,IAAI,kBAAkB,IAAI,MAAM,CAO/B;IAED,IAAI,IAAI,IAAI,MAAM,EAAE,CA+CnB;IAEK,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3C"}
1
+ {"version":3,"file":"gdal.cog.d.ts","sourceRoot":"","sources":["../../src/gdal/gdal.cog.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAA0B,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,+DAA+D;AAG/D;;;;;;GAMG;AACH,qBAAa,cAAc;IACzB,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC7C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9B,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB;IACnB,IAAI,EAAE,WAAW,CAAC;gBAEN,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,qBAAqB,CAAM;IAmBvF,SAAS,IAAI,MAAM,EAAE;IAYrB,IAAI,kBAAkB,IAAI,MAAM,CAO/B;IAED,IAAI,IAAI,IAAI,MAAM,EAAE,CAmDnB;IAEK,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3C"}
@@ -84,6 +84,10 @@ export class GdalCogBuilder {
84
84
  // most of the imagery contains a lot of empty tiles, no need to output them
85
85
  '-co',
86
86
  `SPARSE_OK=YES`,
87
+ // Do not attempt to read sidecar files
88
+ '--config',
89
+ `GDAL_DISABLE_READDIR_ON_OPEN`,
90
+ `EMPTY_DIR`,
87
91
  // Force a target resolution to be better than the imagery not worse
88
92
  '-tr',
89
93
  tr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/cli",
3
- "version": "6.18.0",
3
+ "version": "6.20.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,9 +40,9 @@
40
40
  "dependencies": {
41
41
  "@basemaps/config": "^6.18.0",
42
42
  "@basemaps/geo": "^6.10.0",
43
- "@basemaps/shared": "^6.18.0",
44
- "@chunkd/fs": "^7.3.1",
45
- "@cogeotiff/core": "^6.0.2",
43
+ "@basemaps/shared": "^6.20.0",
44
+ "@chunkd/fs": "^8.0.3",
45
+ "@cogeotiff/core": "^6.1.1",
46
46
  "@linzjs/geojson": "^6.10.0",
47
47
  "@rushstack/ts-command-line": "^4.3.13",
48
48
  "ansi-colors": "^4.1.1",
@@ -60,5 +60,5 @@
60
60
  "files": [
61
61
  "build/"
62
62
  ],
63
- "gitHead": "e87458ee8d0572780b9df074b718af0ecd72acc3"
63
+ "gitHead": "ca2a4b302477accd62e80f994d7ef12873808fe5"
64
64
  }