3.0.12 • Published 8 years ago
turf-triangle-grid v3.0.12
turf-triangle-grid
turf.triangle-grid(extent, cellWidth, units)
Takes a bounding box and a cell depth and returns a FeatureCollection of Polygon features in a grid.
Parameters
parameter | type | description |
---|---|---|
extent | Array. | extent in minX, minY, maxX, maxY order |
cellWidth | Number | width of each cell |
units | String | units to use for cellWidth |
Example
var extent = [-77.3876953125,38.71980474264239,-76.9482421875,39.027718840211605];
var cellWidth = 10;
var units = 'miles';
var triangleGrid = turf.triangleGrid(extent, cellWidth, units);
//=triangleGrid
Installation
Requires nodejs.
$ npm install turf-triangle-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
1.0.1
9 years ago
1.0.0
9 years ago