turf-grid

1.0.1 • Public • Published

turf-grid

build status

turf grid module

turf.grid(extent, depth)

Takes a bounding box and a cell depth and returns a FeatureCollection of Point features in a grid.

Parameters

parameter type description
extent Array. extent in [minX, minY, maxX, maxY] order
depth Number how many cells to output

Example

var extent = [-70.823364, -33.553984, -70.473175, -33.302986];
var depth = 10;
 
var grid = turf.grid(extent, depth);
 
//=grid

Installation

Requires nodejs.

$ npm install turf-grid

Tests

$ npm test

Readme

Keywords

Package Sidebar

Install

npm i turf-grid

Weekly Downloads

16,677

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tcql
  • morganherlocker
  • mourner
  • jvrousseau
  • jseppi
  • cspanring
  • cwmma
  • lyzidiamond
  • tmcw