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.
Parameters
parameter | type | description |
---|---|---|
extent |
Array. | extent in [minX, minY, maxX, maxY] order |
depth |
Number | how many cells to output |
Example
var extent = -70823364 -33553984 -70473175 -33302986;var depth = 10; var grid = turf; //=grid
Installation
Requires nodejs.
$ npm install turf-grid
Tests
$ npm test