Socket
Socket
Sign inDemoInstall

terraformer-arcgis-parser

Package Overview
Dependencies
2
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    terraformer-arcgis-parser

ArcGIS JSON format parser and converter


Version published
Weekly downloads
2.2K
decreased by-7.74%
Maintainers
1
Install size
91.0 kB
Created
Weekly downloads
 

Changelog

Source

[1.1.0] - 2018-07-09

Added

  • ArcGIS Extents/Envelopes are now converted to GeoJSON polygons 🙏CorinChappy🙏
  • great new command line demo app 🙏gseyffert🙏
  • an appropriate CRS is appended to output GeoJSON when web mercator geometries are encountered.

Changed

  • Ensure ring-order of GeoJSON is compliant with RFC 7946
  • web mercator northings/eastings are no longer reprojected during conversion.
  • TypeScript support files updated 🙏JeffJacobson🙏

Readme

Source

Terraformer ArcGIS JSON Parser

Build Status

Two way conversion between GeoJSON and ArcGIS Geometry. Part of the Terraformer project.

Installing

Node.js

$ npm install terraformer-arcgis-parser

Browser

In the browser, Terraformer is required.

Documentation

For full documentation check out the offical website.

Node.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

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

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.

Licensing

Copyright © 2013-2018 Esri

A copy of the license is available in the repository's LICENSE file.

Keywords

FAQs

Last updated on 10 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc