Socket
Socket
Sign inDemoInstall

turf-grid

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-grid

turf grid module


Version published
Weekly downloads
12K
decreased by-10.33%
Maintainers
1
Weekly downloads
 
Created
Source

turf-grid

Build Status

Takes a bounding box and a cell depth and outputs a feature collection of points in a grid.

###Install

npm install turf-grid

###Parameters

namedescription
bboxwhere to put the grid
depthhow 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

Keywords

FAQs

Package last updated on 21 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc