@turf/square-grid
Advanced tools
Comparing version 3.3.3 to 3.5.2-alpha.d2c36ee7
@@ -12,10 +12,10 @@ var featurecollection = require('@turf/helpers').featureCollection; | ||
* @param {number} cellSize width of each cell | ||
* @param {string} units units to use for cellWidth | ||
* @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers | ||
* @return {FeatureCollection<Polygon>} grid a grid of polygons | ||
* @example | ||
* var extent = [-77.3876953125,38.71980474264239,-76.9482421875,39.027718840211605]; | ||
* var cellWidth = 10; | ||
* var bbox = [-96,31,-84,40]; | ||
* var cellSize = 10; | ||
* var units = 'miles'; | ||
* | ||
* var squareGrid = turf.squareGrid(extent, cellWidth, units); | ||
* var squareGrid = turf.squareGrid(bbox, cellSize, units); | ||
* | ||
@@ -22,0 +22,0 @@ * //=squareGrid |
{ | ||
"name": "@turf/square-grid", | ||
"version": "3.3.3", | ||
"version": "3.5.2-alpha.d2c36ee7", | ||
"description": "", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@turf/distance": "^3.3.3", | ||
"@turf/helpers": "^3.3.3" | ||
"@turf/distance": "^3.5.2-alpha.d2c36ee7", | ||
"@turf/helpers": "^3.5.2-alpha.d2c36ee7" | ||
}, | ||
@@ -10,0 +10,0 @@ "devDependencies": { |
@@ -11,3 +11,3 @@ # @turf/square-grid | ||
- `cellSize` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** width of each cell | ||
- `units` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** units to use for cellWidth | ||
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** used in calculating cellSize, can be degrees, radians, miles, or kilometers (optional, default `kilometers`) | ||
@@ -17,7 +17,7 @@ **Examples** | ||
```javascript | ||
var extent = [-77.3876953125,38.71980474264239,-76.9482421875,39.027718840211605]; | ||
var cellWidth = 10; | ||
var bbox = [-96,31,-84,40]; | ||
var cellSize = 10; | ||
var units = 'miles'; | ||
var squareGrid = turf.squareGrid(extent, cellWidth, units); | ||
var squareGrid = turf.squareGrid(bbox, cellSize, units); | ||
@@ -29,2 +29,6 @@ //=squareGrid | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
if you find an error, edit the source file (likely index.js), and re-run | ||
./scripts/generate-readmes in the turf project. --> | ||
--- | ||
@@ -31,0 +35,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
7831
51
1
1