Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cogify): Update the cogify create cog to support topo raster. BM-1116 #3388

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update packages/cogify/src/cogify/cli/cli.cover.ts
Co-authored-by: Blayne Chard <bchard@linz.govt.nz>
  • Loading branch information
Wentao-Kuang and blacha authored Jan 12, 2025
commit ea22f8cc5fdaf6deac52f437997ac863b52d32f2
5 changes: 2 additions & 3 deletions packages/cogify/src/cogify/cli/cli.cover.ts
Original file line number Diff line number Diff line change
@@ -84,9 +84,8 @@
throw new Error(`No collection.json found with imagery: ${im.url.href}`);
}

if (im.collection && im.collection['linz:slug']) {
im.name = im.collection['linz:slug'] as string;
}
const slug = im.collection?.['linz:slug']
if (slug != null) im.name = slug

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / build-containers

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / build (macos-latest)

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / screenshot

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / smoke

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / Create containers

Type '{}' is not assignable to type 'string'.

Check failure on line 88 in packages/cogify/src/cogify/cli/cli.cover.ts

GitHub Actions / build-deploy

Type '{}' is not assignable to type 'string'.

const tms = SupportedTileMatrix.find((f) => f.identifier.toLowerCase() === args.tileMatrix.toLowerCase());
if (tms == null) throw new Error('--tile-matrix: ' + args.tileMatrix + ' not found');
Loading