Assist with pulling data out of an ESRI ArcGIS REST server into a more useful format.
A Node module to assist with pulling data out of an ESRI ArcGIS REST server into GeoJSON.
This is based on Python code I wrote to do the same thing.
npm install -g esri-dump
exposes a function, which if you give it a url, will return a stream of the geojson features.
var esriDump = require"esri-dump";var jsonStream = esriDumpurl;var featureCollection =type: 'FeatureCollection'features:jsonStreamon'data'featureCollectionfeaturespushfeature;;jsonStreamon'end'doSomethingnull featureCollection;jsonStreamon'error'doSomethingerr;;
Streams a geojson feature collection to stdout
esri-dump http://services2.bhamaps.com/arcgis/rest/services/AGS_jackson_co_il_taxmap/MapServer/0 > output.geojson