Skip to content

nvdnkpr/esri2geo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esri2geo

This is a tool to turn esri json to geojson, which should work in the browser, in a worker, and in node.

Looking for the esri toolbox? It's over at it's own repo to hopefully merge with @feomike's version

Sync Method

var geoJSON = toGeoJSON(esriJSON);

// do something with geoJSON object

Async Methods

// callback for resulting data
function handleGeoJSON(err, data) { 
  if (err) {
    console.error(err);
    return;
  }
  
  // data => GeoJSON
  // do something with it..
}

toGeoJSON(esriJSON, handleGeoJSON);
// or
toGeoJSON('same/origin/url/to/esriJSON', handleGeoJSON);

Using From Node

You can install from npm:

npm install esri2geo --save

The use from your node app like so:

var esri2geo = require('esri2geo');

esri2geo(esriJSON, function (err, data) {
  // handle error, deal with data here
});

Note: You can also use the other methods above.

Disclaimer: not endorsed by, or have anything to do with ESRI.

About

Converts ESRI json to geojson

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%