Skip to content

Commit

Permalink
added reprojection support
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Apr 19, 2022
1 parent 881b7ae commit 65208e4
Show file tree
Hide file tree
Showing 54 changed files with 666 additions and 626 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Expand Up @@ -11,7 +11,6 @@
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"camelcase": "error",
"comma-dangle": ["error", "never"],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -101,3 +101,5 @@ dist/
.DS_Store
*/*/.DS_Store
pnpm-lock.yaml
.pnpm-store/
.dvm
1 change: 1 addition & 0 deletions lite/band-arithmetic.js
@@ -0,0 +1 @@
export { default } from "../src/band-arithmetic";
1 change: 1 addition & 0 deletions lite/cache.js
@@ -0,0 +1 @@
export { default } from "../src/cache";
1 change: 1 addition & 0 deletions lite/get.js
@@ -0,0 +1 @@
export { default } from "../src/get";
1 change: 1 addition & 0 deletions lite/histogram.js
@@ -0,0 +1 @@
export { default } from "../src/histogram/histogram.core";
1 change: 1 addition & 0 deletions lite/identify.js
@@ -0,0 +1 @@
export { default } from "../src/identify/identify.core";
52 changes: 52 additions & 0 deletions lite/index.js
@@ -0,0 +1,52 @@
import bandArithmetic from "./band-arithmetic";
import cache from "./cache";
import get from "./get";
import histogram from "./histogram";
import identify from "./identify";
import load from "./load";
import max from "./max";
import mean from "./mean";
import median from "./median";
import min from "./min";
import mode from "./mode";
import parse from "./parse";
import rasterCalculator from "./raster-calculator";
import sum from "./sum";
import stats from "./stats";

const geoblaze = {
bandArithmetic,
cache,
get,
histogram,
identify,
load,
max,
mean,
median,
min,
mode,
parse,
rasterCalculator,
sum,
stats
};

export default geoblaze;

export { bandArithmetic, cache, get, histogram, identify, load, max, mean, median, min, mode, parse, rasterCalculator, sum, stats };

/* set window.geoblaze in the browser */
if (typeof window !== "undefined") {
window["geoblaze"] = geoblaze;
}

/* set self.geoblaze in a web worker */
if (typeof self !== "undefined") {
self["geoblaze"] = geoblaze;
}

/* set global.geoblaze in node */
if (typeof global !== "undefined") {
global["geoblaze"] = geoblaze;
}
1 change: 1 addition & 0 deletions lite/load.js
@@ -0,0 +1 @@
export { default } from "../src/load";
1 change: 1 addition & 0 deletions lite/max.js
@@ -0,0 +1 @@
export { default } from "../src/max/max.core";
1 change: 1 addition & 0 deletions lite/mean.js
@@ -0,0 +1 @@
export { default } from "../src/mean/mean.core";
1 change: 1 addition & 0 deletions lite/median.js
@@ -0,0 +1 @@
export { default } from "../src/median/median.core";
1 change: 1 addition & 0 deletions lite/min.js
@@ -0,0 +1 @@
export { default } from "../src/min/min.core";
1 change: 1 addition & 0 deletions lite/mode.js
@@ -0,0 +1 @@
export { default } from "../src/mode/mode.core";
1 change: 1 addition & 0 deletions lite/modes.js
@@ -0,0 +1 @@
export { default } from "../src/modes/modes.core";
1 change: 1 addition & 0 deletions lite/parse.js
@@ -0,0 +1 @@
export { default } from "../src/parse";
1 change: 1 addition & 0 deletions lite/raster-calculator.js
@@ -0,0 +1 @@
export { default } from "../src/raster-calculator";
1 change: 1 addition & 0 deletions lite/stats.js
@@ -0,0 +1 @@
export { default } from "../src/stats/stats.core";
1 change: 1 addition & 0 deletions lite/sum.js
@@ -0,0 +1 @@
export { default } from "../src/sum/sum.core";
75 changes: 42 additions & 33 deletions package.json
Expand Up @@ -11,18 +11,21 @@
],
"scripts": {
"analyze": "webpack --config webpack.analyze.js",
"build": "npm run build:dev && npm run build:prod",
"build": "npm run build:dev && npm run build:prod && npm run build:prod:lite",
"build:dev": "npm run build:dev:node && npm run build:dev:web",
"build:dev:node": "webpack --mode development --target node",
"build:dev:web": "webpack --mode development --target web",
"build:dev:node": "GEOBLAZE_WEBPACK_ENTRY='./src/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.node.js' webpack --mode development --target node",
"build:dev:web": "GEOBLAZE_WEBPACK_ENTRY='./src/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.web.js' webpack --mode development --target web",
"build:prod": "npm run build:prod:node && npm run build:prod:web",
"build:prod:node": "webpack --mode production --target node",
"build:prod:web": "webpack --mode production --target web",
"build:prod:node": "GEOBLAZE_WEBPACK_ENTRY='./src/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.node.min.js' webpack --mode production --target node",
"build:prod:web": "GEOBLAZE_WEBPACK_ENTRY='./src/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.web.min.js' webpack --mode production --target web",
"build:prod:lite": "npm run build:prod:node:lite && npm run build:prod:web:lite",
"build:prod:node:lite": "GEOBLAZE_WEBPACK_ENTRY='./lite/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.lite.node.min.js' webpack --mode production --target node",
"build:prod:web:lite": "GEOBLAZE_WEBPACK_ENTRY='./lite/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.lite.web.min.js' webpack --mode production --target web",
"dev": "webpack --mode development --target node --watch",
"document": "npx documentation build src/** --config documentation.yml -f html -o docs && echo 'docs.geoblaze.io' > docs/CNAME",
"fix": "eslint src --fix",
"fix": "eslint lite --fix && eslint src --fix",
"format": "npx prettier --arrow-parens=avoid --print-width=160 --trailing-comma=none --write src/*.js src/*/*.js",
"lint": "eslint src",
"lint": "eslint lite && eslint src",
"serve": "npx srvd --debug --port=3000 --wait=120",
"test": "for f in src/*/*test*.js; do echo \"\nrunning $f\" && node -r esm $f; done",
"test-loading-builds": "node test-loading-builds.js",
Expand Down Expand Up @@ -55,58 +58,64 @@
"@turf/combine": "^4.7.3",
"calc-stats": "^0.0.4",
"cross-fetch": "^3.1.4",
"dufour-peyton-intersection": "^0.1.2",
"fast-max": "^0.3.0",
"fast-min": "^0.2.0",
"faster-median": "^0.2.1",
"georaster": "^1.5.6",
"get-depth": "^0.0.0",
"mathjs": "^6.6.1",
"proj4": "^2.6.0",
"mathjs": "^6.6.5",
"proj4": "^2.7.5",
"proj4-fully-loaded": "^0.0.4",
"quick-resolve": "^0.0.1",
"terraformer-arcgis-parser": "^1.0.5",
"underscore": "^1.8.3",
"reproject-bbox": "^0.3.0",
"reproject-geojson": "^0.2.0",
"snap-bbox": "^0.2.0",
"terraformer-arcgis-parser": "^1.1.0",
"underscore": "^1.13.1",
"xdim": "^1.2.1"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/core": "^7.16.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/register": "^7.9.0",
"@babel/register": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@turf/bbox": "^6.5.0",
"@turf/bbox-polygon": "^6.0.1",
"@turf/helpers": "^6.1.4",
"babel-eslint": "^8.2.3",
"babel-loader": "^8.1.0",
"concurrently": "^6.2.2",
"copy-webpack-plugin": "^5.1.1",
"documentation": "^9.1.1",
"eslint": "^4.12.1",
"@turf/bbox-polygon": "^6.5.0",
"@turf/helpers": "^6.5.0",
"babel-eslint": "^8.2.6",
"babel-loader": "^8.2.3",
"concurrently": "^6.3.0",
"copy-webpack-plugin": "^5.1.2",
"documentation": "^9.3.1",
"envisage": "^0.0.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-standard": "^10.2.1",
"eslint-loader": "^2.1.1",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-loader": "^2.2.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.7.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-standard": "^3.1.0",
"esm": "^3.2.25",
"find-and-read": "^1.0.0",
"find-and-read": "^1.0.2",
"flug": "^2.1.0",
"jsdoc": "^3.6.3",
"jsdoc": "^3.6.7",
"memory-fs": "^0.4.1",
"null-loader": "^4.0.1",
"path": "^0.12.7",
"puppeteer": "^10.4.0",
"shapefile": "^0.6.6",
"srvd": "^0.2.1",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3",
"webpack-merge": "^4.1.3"
"typescript": "^4.6.3",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2",
"webpack-merge": "^4.2.2"
}
}

0 comments on commit 65208e4

Please sign in to comment.