Skip to content

Instantly share code, notes, and snippets.

@clhenrick
Created December 3, 2019 02:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clhenrick/ff28e365d85c4cea14793630a1863595 to your computer and use it in GitHub Desktop.
Save clhenrick/ff28e365d85c4cea14793630a1863595 to your computer and use it in GitHub Desktop.
California Assembly Districts GeoJSON using ogr2ogr
#!/usr/bin/env bash
URI="https://services1.arcgis.com/sTaVXkn06Nqew9yU/ArcGIS/rest/services/Political_Boundaries_Feb2016/FeatureServer/1/query?&outfields=*&f=geojson&where=objectid%20is%20not%20null"
ogr2ogr -f GeoJSON ca_assembly_districts.json $URI OGRGeoJSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment