Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
caldwellc committed Apr 22, 2022
1 parent 2303c72 commit b0d9411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const async = require('async');

const geoPackageFile = '/path/to/file/to/convert.gpkg';
const outputGeoPackageFile = '/path/to/file/to/create.gpkg';
const same = outputGeoPackageFile === geoPackageFile;

setCanvasKitWasmLocateFile(file => path.join(__dirname, 'node_modules', '@ngageoint', 'geopackage', 'dist', 'canvaskit', file));

Expand Down Expand Up @@ -62,7 +63,7 @@ async.series({
console.log('Failed to convert with error', err);
process.exit(1);
} else {
GeoPackageOptimizer(results.geoPackage, results.outputGeoPackage, (err) => {
GeoPackageOptimizer.optimize({inputGeoPackage: results.geoPackage, outputGeoPackage: results.outputGeoPackage, same: same}, (err) => {
if (err) {
console.error('Optimization Failed: ' + err);
} else {
Expand Down

0 comments on commit b0d9411

Please sign in to comment.