block by maptastik 3b7f5d74a302265351af3f385b6c5932

Querying ArcGIS services with shapefile-ags

The basic syntax for downloading a service as a shapefile using shapefile-ags is:

shapefile-ags <map_service_layer_url>

The default output .zip is named There is an option to rename the output:

shapefile-ags <map_service_layer_url> --file-name=''

You can also query the service to return a subset of the data. For instance, say we only want to return Graves Rd in Scott County from the transportation service. We could write a query like this:

shapefil-ags --where="FULLNAME='GRAVES RD'"

You can query and rename in the same command!

shapefil-ags --where="FULLNAME='GRAVES RD'"