Package Exports
- turf-grid
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (turf-grid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
turf-grid
Takes a bounding box and a cell depth and outputs a feature collection of points in a grid.
###Install
npm install turf-grid
###Parameters
name | description |
---|---|
bbox | where to put the grid |
depth | how many cells there will be |
###Usage
grid(bbox, depth)
###Example
var grid = require('turf-grid')
var depth = 15
var gridded = grid([0,0,10,10], depth)
console.log(gridded) // 15x15 grid of points in a FeatureCollection