Skip to content

Turfjs/turf-voronoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turf-voronoi

build status

turf voronoi module

turf.voronoi(points)

Under Development - Not ready for use! Takes a set of Point|points and creates Voronoi Polygons, returned as a collection of Polygons. These are often used for partitioning in to regions called Voronoi cells.

Parameters

parameter type description
points FeatureCollection.<Point> input points

Example

// generate some random point data
var points = turf.random('points', 30, {
  bbox: [50, 30, 70, 50]
});
var voronoi = turf.voronoi(points);
//=voronoi

Returns FeatureCollection.<Polygon>, Voronoi output

Installation

Requires nodejs.

$ npm install turf-voronoi

Tests

$ npm test

About

Create voronoi polygons from a set of points

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published