Download layers or a map service from an ESRI ArcGIS server as geoJSON.
$ npm install ags-download -g
$ ags-download -u <ags_layer_url> [-f <path_to_save> -s <output_srid>]
Download all layers in a MapServer to the current directory with source srid
$ ags-download -u http://gis.phila.gov/ArcGIS/rest/services/PhilaGov/RCO/MapServer
Download individual layer to /tmp with srid of EPSF:4326
$ ags-download -u http://gis.phila.gov/ArcGIS/rest/services/PhilaGov/RCO/MapServer/0 -f /tmp -s 4326
Copyright (c) 2013 Matthew McFarland
Licensed under the MIT license.