turf-grid
turf grid module
Last updated 10 years ago by morganherlocker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install turf-grid 
SYNC missed versions from official npm registry.

turf-grid

build status

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.<number> 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.grid(extent, depth);

//=grid

Installation

Requires nodejs.

$ npm install turf-grid

Tests

$ npm test

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

5 Versions

  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.2                                ...           10 years ago
  • 0.0.1                                ...           11 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE