# geojson-polygons-equal

> compares two GeoJSON Polygons or MultiPolygons for equality

Latest version **0.0.1** (published 2017-01-28) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install geojson-polygons-equal
pnpm add geojson-polygons-equal
yarn add geojson-polygons-equal
bun add geojson-polygons-equal
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-01-28 |
| First published | 2017-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stephen Whitmore |
| Maintainers | noffle |

## Links

- npm: https://www.npmjs.com/package/geojson-polygons-equal
- Repository: https://github.com/noffle/geojson-polygons-equal
- Issues: https://github.com/noffle/geojson-polygons-equal/issues
- npm.io page: https://npm.io/package/geojson-polygons-equal

## Recent versions

- 0.0.1 (latest) — 2017-01-28

## README

# geojson-polygons-equal

> Checks two GeoJSON Polygons or MultiPolygons for equality.

This includes detecting polygons whose coordinates are rotated left or right
differently.

## Usage

```js
var polyEqual = require('geojson-polygons-equal')

var poly1 = {
  type: 'Polygon',
  coordinates: [
    [
      [0, 0],
      [0, 1],
      [1, 1],
      [1, 0],
      [0, 0]
    ]
  ]
}

var poly2 = {
  type: 'Polygon',
  coordinates: [
    [
      [1, 1],
      [1, 0],
      [0, 0],
      [0, 1],
      [1, 1]
    ]
  ]
}

console.log(polyEqual(poly1, poly2))
```

outputs

```
true
```

## API

```js
var polyEquals = require('geojson-polygons-equal')
```

### polyEquals(poly1, poly2)

Compares the two GeoJSON objects `poly1` and `poly2`, which can be either
`Polygon` or `MultiPolygon` objects.


## Install

With [npm](https://npmjs.org/) installed, run

```
$ npm install geojson-polygons-equal
```

## License

ISC

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