# combine

Combines a FeatureCollection of Point , LineString , or Polygon features into MultiPoint , MultiLineString , or MultiPolygon features.
将包含点、线和多边形的 FeatureCollection 合并为 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: 7/3/2023, 9:59:14 PM