Skip to content

Commit

Permalink
Relocate dgal into bathmery package, and Relocate cogJob types into s…
Browse files Browse the repository at this point in the history
…hared package.
  • Loading branch information
Wentao-Kuang committed Nov 2, 2023
1 parent b915f44 commit 95bbd3c
Show file tree
Hide file tree
Showing 23 changed files with 11 additions and 1,293 deletions.
6 changes: 3 additions & 3 deletions packages/bathymetry/src/bathy.maker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Gdal } from '@basemaps/cli/build/gdal/gdal.js';
import { GdalCommand } from '@basemaps/cli/build/gdal/gdal.command.js';
import { Bounds, Epsg, Tile, TileMatrixSet } from '@basemaps/geo';
import { fsa, LogType, s3ToVsis3 } from '@basemaps/shared';
import * as os from 'os';
Expand All @@ -11,6 +9,8 @@ import { FilePath, FileType } from './file.js';
import { Hash } from './hash.js';
import { MapnikRender } from './mapnik.js';
import { Stac } from './stac.js';
import { GdalCommand } from './gdal/gdal.command.js';
import { Gdal } from './gdal/gdal.js';

interface BathyMakerContext {
/** unique id for this build */
Expand Down Expand Up @@ -108,7 +108,7 @@ export class BathyMaker {
const gdalVersion = await this.gdalVersion;
logger.info({ gdalVersion }, 'GdalVersion');

const promises = [];
const promises: Promise<string>[] = [];
let extent: Bounds | null = null;
for (let x = 0; x < tmsZoom.matrixWidth; x++) {
for (let y = 0; y < tmsZoom.matrixHeight; y++) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"ansi-colors": "^4.1.1",
"deep-diff": "^1.0.2",
"flatgeobuf": "^3.23.1",
"node-fetch": "^3.2.3",
"p-limit": "^4.0.0",
"pretty-json-log": "^1.0.0",
"slugify": "^1.6.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/config/action.import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import fetch from 'node-fetch';
import { invalidateCache } from '../util.js';
import { Q, Updater } from './config.update.js';
import { FeatureCollection } from 'geojson';
import { CogJobJson } from '../../cog/types.js';
import { CogJobJson } from '@basemaps/shared/src/cog/types.js';

const PublicUrlBase = Env.isProduction() ? 'https://basemaps.linz.govt.nz/' : 'https://dev.basemaps.linz.govt.nz/';

Expand Down
98 changes: 0 additions & 98 deletions packages/cli/src/cog/__tests__/builder.test.ts

This file was deleted.

Loading

0 comments on commit 95bbd3c

Please sign in to comment.