Skip to content

Instantly share code, notes, and snippets.

@lukewhyte
Created November 12, 2018 00:10
Show Gist options
  • Save lukewhyte/f5e64b9bb719e07cdf25fdbc5a8ccb4b to your computer and use it in GitHub Desktop.
Save lukewhyte/f5e64b9bb719e07cdf25fdbc5a8ccb4b to your computer and use it in GitHub Desktop.

Revisions

  1. lukewhyte created this gist Nov 12, 2018.
    3 changes: 3 additions & 0 deletions convert-shp-to-json.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    shp2json cb_2017_us_state_20m.shp > states.geojson # Convert state shapefile to geojson

    shp2json cb_${YEAR}_us_cbsa_20m.shp > metroareas.geojson # Convert metro area shapefile to geojson