|
|
4 months ago | |
|---|---|---|
| .. | ||
| dist | 4 months ago | |
| LICENSE | 4 months ago | |
| README.md | 4 months ago | |
| package.json | 4 months ago | |
Polygonizes (Multi)LineString(s) into Polygons.
Implementation of GEOSPolygonize function (geos::operation::polygonize::Polygonizer).
Polygonizes a set of lines that represents edges in a planar graph. Edges must be correctly noded, i.e., they must only meet at their endpoints.
The implementation correctly handles:
geoJson (FeatureCollection | Geometry | Feature<(LineString | MultiLineString)>) Lines in order to polygonizeReturns FeatureCollection<Polygon> Polygons created
This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.
Install this single module individually:
$ npm install @turf/polygonize
Or install the all-encompassing @turf/turf module that includes all modules as functions:
$ npm install @turf/turf