polygonize library

Implementation of the polygonize algorithm that converts a collection of LineString features to a collection of Polygon features.

This module follows RFC 7946 (GeoJSON) standards and provides a robust implementation for converting line segments into closed polygons.

Functions

polygonize(GeoJSONObject geoJSON, {PolygonizeConfig? config}) → FeatureCollection<Polygon>
Converts a collection of LineString features to a collection of Polygon features.