Socket
Socket
Sign inDemoInstall

@turf/square-grid

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/square-grid - npm Package Compare versions

Comparing version 3.3.3 to 3.5.2-alpha.d2c36ee7

8

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc