# turf-multipolygon

> turf multipolygon module

Latest version **1.0.1** (published 2015-05-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install turf-multipolygon
pnpm add turf-multipolygon
yarn add turf-multipolygon
bun add turf-multipolygon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-05-05 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | morganherlocker |
| Maintainers | morganherlocker |
| Keywords | geo, point, multipolygon, turf, geojson |

## Links

- npm: https://www.npmjs.com/package/turf-multipolygon
- Repository: https://github.com/Turfjs/turf-multipolygon
- Issues: https://github.com/Turfjs/turf-multipolygon/issues
- npm.io page: https://npm.io/package/turf-multipolygon

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-05-05
- 1.0.0 — 2015-05-05

## README

# turf-multipolygon

[![build status](https://secure.travis-ci.org/Turfjs/turf-multipolygon.png)](http://travis-ci.org/Turfjs/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

```js
var multiPoly = turf.multipolygon([[0,0],[10,10]]);

//=multiPoly
```


**Returns** `Feature.<MultiPolygon>`, a multipolygon feature

## Installation

Requires [nodejs](http://nodejs.org/).

```sh
$ npm install turf-multipolygon
```

## Tests

```sh
$ npm test
```

---
_Source: https://npm.io/package/turf-multipolygon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
