# explode

Takes a feature or set of features and returns all positions as points.
获取一个或一组Feature,并返回所有位置作为点。

参数

参数 类型 描述
geojson GeoJSON input features

返回

FeatureCollection <point> - points representing the exploded input features

示例

// 注意:polygon首尾坐标要一致
var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);

var explode = turf.explode(polygon);
Last Updated: 7/3/2023, 9:59:14 PM