turf multipolygon module
Creates a Feature based on a coordinate array. Properties can be added optionally.
parameter | type | description |
---|---|---|
coordinates |
Array.<Array.<Number>> | an array of Positions |
properties |
Object | optional: an Object of key-value pairs to add as properties |
var multiPoly = turf.multipolygon([[0,0],[10,10]]);
//=multiPoly
Returns Feature.<MultiPolygon>
, a multipolygon feature
Requires nodejs.
$ npm install turf-multipolygon
$ npm test