$ npm install turf-grid
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.
parameter | type | description |
---|---|---|
extent |
Array.<number> | extent in [minX, minY, maxX, maxY] order |
depth |
Number | how many cells to output |
var extent = [-70.823364, -33.553984, -70.473175, -33.302986];
var depth = 10;
var grid = turf.grid(extent, depth);
//=grid
Requires nodejs.
$ npm install turf-grid
$ npm test
© 2010 - cnpmjs.org x YWFE | Home | YWFE