Skip to content

Commit

Permalink
Merge branch 'master' into area_source
Browse files Browse the repository at this point in the history
  • Loading branch information
mfedderly authored Mar 12, 2020
2 parents a65b256 + ae0225f commit 6f6aa95
Show file tree
Hide file tree
Showing 49 changed files with 145 additions and 326 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

- - -

[Turf](https://turfjs.org) is a [JavaScript library](https://en.wikipedia.org/wiki/JavaScript_library) for [spatial analysis](http://en.wikipedia.org/wiki/Spatial_analysis). It includes traditional spatial operations, helper functions for creating [GeoJSON](http://geojson.org) data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can [run Turf server-side](https://www.npmjs.com/package/turf) with [Node.js](http://nodejs.org/) (see below).
[Turf](https://turfjs.org) is a [JavaScript library](https://en.wikipedia.org/wiki/JavaScript_library) for [spatial analysis](http://en.wikipedia.org/wiki/Spatial_analysis). It includes traditional spatial operations, helper functions for creating [GeoJSON](http://geojson.org) data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can [run Turf server-side](https://www.npmjs.com/package/@turf/turf) with [Node.js](http://nodejs.org/) (see below).

## Installation

Expand Down
12 changes: 7 additions & 5 deletions examples/create-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"private": true,
"name": "create-react-app",
"main": "src/index.js",
"scripts": {
"test": "react-scripts build"
},
"devDependencies": {
"react-scripts": "*"
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"dependencies": {
"react": "*",
"react-dom": "*",
"react-scripts": "*",
"@turf/turf": "*"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"documentation": "*",
"eslint": "*",
"eslint-config-mourner": "*",
"esm": "^3.2.25",
"fs-extra": "*",
"lerna": "2.8.0",
"load-json-file": "*",
Expand Down
11 changes: 3 additions & 8 deletions packages/turf-buffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand Down Expand Up @@ -43,7 +43,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "*",
"benchmark": "*",
"load-json-file": "*",
Expand All @@ -59,9 +58,5 @@
"@turf/projection": "6.x",
"d3-geo": "1.7.1",
"turf-jsts": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-dissolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -54,9 +53,5 @@
"@turf/union": "^5.1.5",
"geojson-rbush": "3.x",
"get-closest": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
2 changes: 1 addition & 1 deletion packages/turf-distance/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getCoord } from '@turf/invariant';
import {
radiansToLength, isObject, degreesToRadians,
radiansToLength, degreesToRadians,
Coord, Units
} from '@turf/helpers';

Expand Down
11 changes: 3 additions & 8 deletions packages/turf-ellipse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@mapbox/geojsonhint": "*",
"@std/esm": "*",
"@turf/bbox-polygon": "6.x",
"@turf/circle": "6.x",
"@turf/destination": "6.x",
Expand All @@ -54,9 +53,5 @@
"@turf/invariant": "6.x",
"@turf/rhumb-destination": "6.x",
"@turf/transform-rotate": "^5.1.5"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-envelope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -36,7 +36,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -46,9 +45,5 @@
"@turf/bbox": "6.x",
"@turf/bbox-polygon": "6.x",
"@turf/helpers": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-explode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -35,7 +35,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"geojson-fixtures": "*",
"load-json-file": "*",
Expand All @@ -46,9 +45,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-flatten/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -40,7 +40,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -50,9 +49,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-flip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -35,7 +35,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -46,9 +45,5 @@
"@turf/clone": "6.x",
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-great-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -42,7 +42,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "6.x",
"benchmark": "*",
"load-json-file": "*",
Expand All @@ -53,9 +52,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/invariant": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-interpolate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "6.x",
"benchmark": "*",
"chromatism": "*",
Expand All @@ -58,9 +57,5 @@
"@turf/point-grid": "6.x",
"@turf/square-grid": "^5.1.5",
"@turf/triangle-grid": "^5.1.5"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-isobands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -42,7 +42,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/envelope": "^5.1.5",
"@turf/point-grid": "6.x",
"@turf/random": "6.x",
Expand All @@ -65,9 +64,5 @@
"@turf/invariant": "6.x",
"@turf/meta": "6.x",
"object-assign": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
9 changes: 2 additions & 7 deletions packages/turf-isolines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -40,7 +40,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "0.21.x",
"@turf/envelope": "^5.1.5",
"@turf/point-grid": "6.x",
"@turf/random": "6.x",
Expand All @@ -59,9 +58,5 @@
"@turf/invariant": "6.x",
"@turf/meta": "6.x",
"object-assign": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
Loading

0 comments on commit 6f6aa95

Please sign in to comment.