# flatlands

> Transforms a 3D GeoJSON feature geometry to 2D.

Latest version **0.0.0** (published 2014-06-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install flatlands
pnpm add flatlands
yarn add flatlands
bun add flatlands
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2014-06-16 |
| First published | 2014-06-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Christian Spanring |
| Maintainers | cspanring |
| Keywords | geojson |

## Links

- npm: https://www.npmjs.com/package/flatlands
- Repository: git@github.com:cspanring/flatlands
- Homepage: https://github.com/cspanring/flatlands
- Issues: https://github.com/cspanring/flatlands/issues
- npm.io page: https://npm.io/package/flatlands

## 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

- 0.0.0 (latest) — 2014-06-16

## README

# flatlands

[![Build Status](https://travis-ci.org/cspanring/flatlands.svg)](https://travis-ci.org/cspanring/flatlands)

Transforms a 3D GeoJSON feature geometry to 2D.

## Usage

    var flatlands = require('flatlands');

    var multipolygon = {
      "type": "MultiPolygon",
      "coordinates": [
        [
          [
            [102.0, 2.0, 0],
            [103.0, 2.0, 0],
            [103.0, 3.0, 0],
            [102.0, 3.0, 0],
            [102.0, 2.0, 0]
          ]
        ],
        [
          [
            [100.0, 0.0, 0],
            [101.0, 0.0, 0],
            [101.0, 1.0, 0],
            [100.0, 1.0, 0],
            [100.0, 0.0, 0]
          ],
          [
            [100.2, 0.2, 0],
            [100.8, 0.2, 0],
            [100.8, 0.8, 0],
            [100.2, 0.8, 0],
            [100.2, 0.2, 0]
          ]
        ]
      ]
    };

    var feature = flatlands(multipolygon);

Returns:

    {
      "type": "MultiPolygon",
      "coordinates": [
        [
          [
            [102, 2],
            [103, 2],
            [103, 3],
            [102, 3],
            [102, 2]
          ]
        ],
        [
          [
            [100, 0],
            [101, 0],
            [101, 1],
            [100, 1],
            [100, 0]
          ],
          [
            [100.2, 0.2],
            [100.8, 0.2],
            [100.8, 0.8],
            [100.2, 0.8],
            [100.2, 0.2]
          ]
        ]
      ]
    }

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