From c4b3d1a2ea578a9638f8fa86468dc339def94dad Mon Sep 17 00:00:00 2001 From: Luca Rath-Heel Date: Tue, 25 Jun 2024 16:10:27 +0200 Subject: [PATCH 1/3] Prevent reprojection in addGeoJSONFeatureToGeoPackageWithFeatureDaoAndSrs --- lib/geoPackage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geoPackage.ts b/lib/geoPackage.ts index 1a543932..0ce006c1 100644 --- a/lib/geoPackage.ts +++ b/lib/geoPackage.ts @@ -847,7 +847,7 @@ export class GeoPackage { const geometryData = new GeometryData(); geometryData.setSrsId(srs.srs_id); if (!(srs.organization === ProjectionConstants.EPSG && srs.organization_coordsys_id === ProjectionConstants.EPSG_CODE_4326)) { - feature = reproject.reproject(feature, ProjectionConstants.EPSG_4326, featureDao.projection); + // feature = reproject.reproject(feature, ProjectionConstants.EPSG_4326, featureDao.projection); } const featureGeometry = typeof feature.geometry === 'string' ? JSON.parse(feature.geometry) : feature.geometry; From b7fdf5dbbad895c288f0bb077dbfb926c792c0e0 Mon Sep 17 00:00:00 2001 From: Roger Frei Date: Tue, 13 Aug 2024 11:07:47 +0200 Subject: [PATCH 2/3] use rimraf instead of rm for windows --- package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b44df13e..e863af10 100644 --- a/package.json +++ b/package.json @@ -111,12 +111,12 @@ }, "scripts": { "gh-pages-build": "npm install && npm run typedoc --options typedoc.json", - "typedoc": "rm -rf ./api-docs; typedoc --tsconfig tsconfig.json --mode file --out api-docs index.ts", - "clean": "rm -rf ./.test_run; rm -rf ./.nyc_output; rm -rf ./docs/coverage; npm run clean-dist; npm run clean-test;", - "clean-dist": "rm -rf ./dist", - "clean-test": "rm -rf ./test/bundle ./test/sql-wasm.wasm ./test/node_modules ./test/tmp", - "test-node": "npm run clean; nyc --no-clean mocha -r ts-node/register", - "build-browser-test": "npm run clean && webpack -c browser.test.config.js --output-filename browser.test.bundle.js --mode=development", + "typedoc": "rimraf ./docs/api && typedoc --tsconfig tsconfig.json --out docs/api index.ts", + "clean": "rimraf ./.test_run ./.nyc_output ./docs/coverage && npm run clean-dist && npm run clean-test", + "clean-dist": "rimraf ./dist", + "clean-test": "rimraf test/bundle test/sql-wasm.wasm test/node_modules test/tmp", + "test-node": "npm run clean && nyc --no-clean mocha -r ts-node/register", + "build-browser-test": "npm run clean && webpack -c browser.test.config.js --output-filename browser.test.bundle.js", "test": "npm run test-node && npm run report", "report": "nyc report", "build": "npm run clean && webpack && tsc", From c90b13c83c5ce85024a4583d00de2a31558c517f Mon Sep 17 00:00:00 2001 From: Roger Frei Date: Tue, 13 Aug 2024 11:27:10 +0200 Subject: [PATCH 3/3] revert not used changes --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e863af10..1a9e32f7 100644 --- a/package.json +++ b/package.json @@ -115,8 +115,8 @@ "clean": "rimraf ./.test_run ./.nyc_output ./docs/coverage && npm run clean-dist && npm run clean-test", "clean-dist": "rimraf ./dist", "clean-test": "rimraf test/bundle test/sql-wasm.wasm test/node_modules test/tmp", - "test-node": "npm run clean && nyc --no-clean mocha -r ts-node/register", - "build-browser-test": "npm run clean && webpack -c browser.test.config.js --output-filename browser.test.bundle.js", + "test-node": "npm run clean; nyc --no-clean mocha -r ts-node/register", + "build-browser-test": "npm run clean && webpack -c browser.test.config.js --output-filename browser.test.bundle.js --mode=development", "test": "npm run test-node && npm run report", "report": "nyc report", "build": "npm run clean && webpack && tsc",