turf-polygon-to-line

Transforms Polygons and MultiPolygons to LineStrings.

Usage no npm install needed!

<script type="module">
  import turfPolygonToLine from 'https://cdn.skypack.dev/turf-polygon-to-line';
</script>

README

turf-polygon-to-line

build status

turf.polygonToLine(geojson)

Transforms Polygons and MultiPolygons to LineStrings.

Parameters

parameter type description
geojson Object any GeoJSON object

Returns Object, FeatureCollection where Polygons and MultiPolygons transformed to LineStrings.

Installation

Requires nodejs.

$ npm install turf-polygon-to-line

Tests

$ npm test