turf-combine
Combines a FeatureCollection of point, linestring, or polygon Features into multipoint, multilinestring, or multipolygon Features.
###Install
npm install turf-combine
###Parameters
name | description |
---|
fc | A Feature or FeatureCollection of any type |
###Usage
combine(fc)
###Example
var combine = require('turf-combine')
var point = require('turf-point')
var featurecollection = require('turf-featurecollection')
var pt1 = point(50, 1)
var pt2 = point(100, 101)
var fc = featurecollection([pt1, pt2])
var combined = combine(fc)
console.log(combined)