terraformer ArcGIS Parser

ArcGIS Parser

Documentation Get ArcGIS Parser

Allows you to convert between Terraformer Primitives or GeoJSON and the ArcGIS Geometry Objects.

// parse ArcGIS JSON, convert it to a Terraformer.Primitive
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]
});