turf-multipolygon

turf multipolygon module

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
turf-multipolygon
001.0.18 years ago8 years agoMinified + gzip package size for turf-multipolygon in KB

Readme

turf-multipolygon
build status
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\.\\> | 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]]);

//=multiPoly

Returns Feature.<MultiPolygon>, a multipolygon feature

Installation

Requires nodejs.
$ npm install turf-multipolygon

Tests

$ npm test