# combine
Combines a FeatureCollection of Point , LineString , or Polygon features into MultiPoint , MultiLineString , or MultiPolygon features.
将包含点、线和多边形的FeatureCollection
合并为MultiPoint
、MultiLineString
或MultiPolygon
。
参数
参数 | 类型 | 描述 |
---|---|---|
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);