turf-reclass
Advanced tools
Comparing version 0.0.2 to 0.1.1
{ | ||
"name": "turf-reclass", | ||
"version": "0.0.2", | ||
"version": "0.1.1", | ||
"description": "turf reclass module", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tape": "^2.12.3" | ||
"tape": "^2.13.4" | ||
}, | ||
@@ -29,0 +29,0 @@ "dependencies": { |
@@ -7,3 +7,26 @@ turf-reclass | ||
###Install | ||
```sh | ||
npm install turf-reclass | ||
``` | ||
###Parameters | ||
|name|description| | ||
|---|---| | ||
|fc|featurcollection to transform| | ||
|inField|field to map| | ||
|outField|new field| | ||
|translations|an array of tanslations like: [[0, 20, 1], [20, 40, 2], ... [60, Infinity, 4]]| | ||
###Usage | ||
```js | ||
reclass(pts, inField, outField, translations) | ||
``` | ||
###Example | ||
```js | ||
var reclass = require('turf-reclass') | ||
@@ -10,0 +33,0 @@ var fs = require('fs') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8655
44