Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ags-download with all npm packages installed. Try it out:

var agsDownload = require("ags-download")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ags-download v0.2.1

Download data from ArcGIS server as geoJSON


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 

Download individual layer to /tmp with srid of EPSF:4326

$ ags-download -u -f /tmp -s 4326


Copyright (c) 2013 Matthew McFarland
Licensed under the MIT license. alpha

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free