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

ags-download

Download layers or a map service from an ESRI ArcGIS server as geoJSON.

Installation

$ npm install ags-download -g

Usage

$ ags-download -u <ags_layer_url> [-f <path_to_save> -s <output_srid>]

Examples

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

License

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

githalytics.com 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