# combine

Combines a FeatureCollection of Point , LineString , or Polygon features into MultiPoint , MultiLineString , or MultiPolygon features.
PointLineStringPolygonFeatureCollection组合为MultiPointMultiLineStringMultiPolygon

参数

参数 类型 描述
fc FeatureCollection <(Point|LineString|Polygon)> a FeatureCollection of any type

返回

FeatureCollection <(MultiPoint|MultiLineString|MultiPolygon)> - a FeatureCollection of corresponding type to input

示例

var fc = turf.featureCollection([
  turf.point([19.026432, 47.49134]),
  turf.point([19.074497, 47.509548])
]);

var combined = turf.combine(fc);
Last Updated: 1/19/2021, 10:59:20 AM