1.0.1 • Published 9 years ago

turf-grid v1.0.1

Weekly downloads
11,353
License
MIT
Repository
github
Last release
9 years ago

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

parametertypedescription
extentArray.extent in minX, minY, maxX, maxY order
depthNumberhow 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
1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago