3.0.12 • Published 8 years ago
turf-point-grid v3.0.12
turf-point-grid
turf.point-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.pointGrid(extent, depth);
//=grid
Returns FeatureCollection
, grid as FeatureCollection with Point features
Installation
Requires nodejs.
$ npm install turf-point-grid
Tests
$ npm test
3.0.12
8 years ago
3.0.10
8 years ago
3.0.7-canary.ae89c8b3
8 years ago
3.0.5
8 years ago
3.0.1
8 years ago
3.0.0-canary.7879bf6c
8 years ago
3.0.0-canary.2f5f7167
8 years ago
2.0.0
9 years ago