# terraformer-arcgis-parser

> ArcGIS JSON format parser and converter

Latest version **1.1.0** (published 2018-07-10) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install terraformer-arcgis-parser
pnpm add terraformer-arcgis-parser
yarn add terraformer-arcgis-parser
bun add terraformer-arcgis-parser
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-07-10 |
| First published | 2013-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 21.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Patrick Arlt |
| Maintainers | esri_dev |
| Keywords | ArcGIS, Esri, GIS, Geography |

## Links

- npm: https://www.npmjs.com/package/terraformer-arcgis-parser
- Repository: https://github.com/Esri/terraformer-arcgis-parser
- Homepage: https://github.com/Esri/terraformer-arcgis-parser#readme
- Issues: https://github.com/Esri/terraformer-arcgis-parser/issues
- npm.io page: https://npm.io/package/terraformer-arcgis-parser

## Dependencies (2)

- [terraformer](https://npm.io/package/terraformer.md) ~1.0.4
- [@types/geojson](https://npm.io/package/@types/geojson.md) ^1.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-07-10
- 1.0.5 — 2016-08-16
- 1.0.4 — 2014-06-17
- 1.0.3 — 2014-02-24
- 1.0.2 — 2014-02-10
- 1.0.1 — 2013-12-05
- 1.0.0 — 2013-10-22
- 0.1.10 — 2013-08-16
- 0.1.8 — 2013-06-24
- 0.2.0 — 2013-06-14
- 0.1.6 — 2013-03-26
- 0.1.5 — 2013-03-26
- 0.1.4 — 2013-03-08
- 0.1.3 — 2013-01-28
- 0.1.1 — 2013-01-23
- … 1 more at https://npm.io/package/terraformer-arcgis-parser/versions

## README

# Terraformer ArcGIS JSON Parser

[![Build Status](https://travis-ci.org/Esri/terraformer-arcgis-parser.svg?branch=master)](https://travis-ci.org/Esri/terraformer-arcgis-parser)

> Two way conversion between [GeoJSON](http://geojson.org/geojson-spec.html) and [ArcGIS Geometry](http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/geometry.html). Part of the [Terraformer](http://terraformer.io) project.

## Installing

### Node.js

    $ npm install terraformer-arcgis-parser

### Browser

In the browser, [Terraformer](http://github.com/esri/terraformer) is required.

## Documentation

For full documentation check out the [offical website](http://terraformer.io/arcgis-parser/).

### Node.js
```js
var ArcGIS = require('terraformer-arcgis-parser');

// parse ArcGIS JSON, convert it to a Terraformer.Primitive (GeoJSON)
var primitive = ArcGIS.parse({
    'x':-122.6764,
    'y':45.5165,
    'spatialReference': {
      'wkid': 4326
    }
  });

// take a Terraformer.Primitive or GeoJSON and convert it back to ArcGIS JSON
var point = ArcGIS.convert({
  'type': "Point",
  'coordinates': [45.5165, -122.6764]
});
```
### Browser
```html
  <!-- Load the main Terraformer library -->
  <script src="https://unpkg.com/terraformer/terraformer.js" type="text/javascript"></script>

  <!-- Load the ArcGIS Parser -->
  <script src="https://unpkg.com/terraformer-arcgis-parser/terraformer-arcgis-parser.js" type="text/javascript"></script>

  <!-- Use it! -->
  <script>
    var primitive = Terraformer.ArcGIS.parse({
      'x':-122.6764,
      'y':45.5165,
      'spatialReference': {
        'wkid': 4326
      }
    });

    // take a Terraformer.Primitive or GeoJSON and convert it to ArcGIS JSON
    var point = Terraformer.ArcGIS.convert({
      'type': "Point",
      'coordinates': [45.5165, -122.6764]
    });
  </script>
```
### TypeScript
```
import arcgis = require("terraformer-arcgis-parser");
```

## Resources

* [Terraformer Website](http://terraformer.io)
* [twitter@EsriPDX](http://twitter.com/esripdx)

## Issues

Find a bug or want to request a new feature?  Please let us know by submitting an issue.

## Contributing

Esri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).

## Licensing

Copyright &copy; 2013-2018 Esri

A copy of the license is available in the repository's [LICENSE](./LICENSE) file.

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