esri-dump
A Node module to assist with pulling data out of an ESRI ArcGIS REST server into GeoJSON or ImageryURLs.
This is based on Python code @iandees wrote to do the same thing.
install
npm install -g esri-dump
API
exposes a function, which if you give it a url, will return a stream of the geojson features.
var esriDump = ;var jsonStream = ;var featureCollection = type: 'FeatureCollection' features: jsonStream; jsonStream; jsonStream; jsonStream;
Command Line
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
Data Output
FeatureServer and MapServer
Output from an ESRI FeatureServer
or an ESRI MapServer
is returned as GeoJSON like the example below.
ImageServer
Output from an ESRI ImageServer
is returned as GeoJSON extents for the image like in the example below.
Each GeoJSON feature will include an id
in the properties which refers to its Raster ID from the server.
It will also include a files
array which will contain the URL of the image as well as additional metadata.