Feature Conversion¶
explode¶
-
turf.
explode
(features: GeoJson) → turf.helpers._features.FeatureCollection[source]¶ Takes a feature or set of features and returns all positions as {Point|points}.
- Parameters
features – any GeoJSON feature or feature collection
- Returns
{FeatureCollection} points representing the exploded input features
Polygon to Line¶
-
turf.
polygon_to_line
()[source]¶ Converts a {Polygon} to a {LineString} or a {MultiPolygon} to a {FeatureCollection} or {MultiLineString}.
- Parameters
polygon – Feature to convert
options – Optional parameters
- Returns
{Feature Collection|LineString|MultiLineString} of converted (Multi)Polygon to (Multi)LineString