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