turf-simplify
Advanced tools
Comparing version 1.0.0 to 1.0.1
18
index.js
var simplify = require('simplify-js'); | ||
/** | ||
* Simplifies a {GeoJSONFeature} containing a {GeoJSONLineString} or | ||
* {GeoJSONPolygon} geometry. Internally uses simplify-js to perform | ||
* simplification. | ||
* | ||
* @module turf/simplify | ||
* @param {GeoJSONFeature} feature - a feature to be simplified | ||
* @param {number} tolerance - simplification tolerance | ||
* @param {boolean} highQuality - whether or not to spend more time to create | ||
* a higher-quality simplification with a different algorithm | ||
* @return {GeoJSONFeature} output | ||
* @example | ||
* var quantization = 50; | ||
* var minimumArea = 0; | ||
* var simplified = turf.simplify(polys, quantization, minimumArea); | ||
*/ | ||
module.exports = function(feature, tolerance, highQuality){ | ||
@@ -41,2 +57,2 @@ if(feature.geometry.type === 'LineString') { | ||
}; | ||
} | ||
} |
{ | ||
"name": "turf-simplify", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "simplify geographic shapes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24047
103
0