Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JasonSanford/shapefile-ags
CLI to scrape ArcGIS Server instances and export as shapefiles
https://github.com/JasonSanford/shapefile-ags
Last synced: 16 days ago
JSON representation
CLI to scrape ArcGIS Server instances and export as shapefiles
- Host: GitHub
- URL: https://github.com/JasonSanford/shapefile-ags
- Owner: JasonSanford
- License: mit
- Created: 2015-09-02T13:01:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T13:18:10.000Z (about 9 years ago)
- Last Synced: 2024-10-19T07:09:00.703Z (24 days ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 25
- Watchers: 7
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## shapefile-ags
![npm version](https://img.shields.io/npm/v/shapefile-ags.svg)
Export an ArcGIS Server service layer as a shapefile.
### Installation
npm install -g shapefile-ags
### Usage
shapefile-ags [options]
A simple example that exports all features:
shapefile-ags http://gis-web.co.union.nc.us/arcgis/rest/services/PWGIS_Web/Operational_Layers/MapServer/5
Add a where clause to filter your features. Any SQL supported by ArcGIS Server should work here:
shapefile-ags http://gis-web.co.union.nc.us/arcgis/rest/services/PWGIS_Web/Operational_Layers/MapServer/5 --where='manhole_depth<6'
Specify the file name:
shapefile-ags http://gis-web.co.union.nc.us/arcgis/rest/services/PWGIS_Web/Operational_Layers/MapServer/5 --file-name='man_holes.zip'
### Caveats
All exports will be projected to 4326 (latitude, longitude).