Skip to content

Instantly share code, notes, and snippets.

View randolphledesma's full-sized avatar

Randolph Ledesma randolphledesma

  • Zylun
  • Cebu City
View GitHub Profile
@randolphledesma
randolphledesma / build.sh
Created March 20, 2018 03:27 — forked from aaronbinns/build.sh
Build GeoJSON shapes for all US cities.
#!/bin/bash
# Extract the US zip-code shapes and convert to a single US-wide
# GeoJSON file
echo -n "Extracting US-wide GeoJSON file (takes ~10 mins)..."
mkdir tl_2014_us_zcta510
unzip -qq tl_2014_us_zcta510.zip -d tl_2014_us_zcta510
ogr2ogr -f GeoJSON -t_srs crs:84 tl_2014_us_zcta510.geojson tl_2014_us_zcta510/tl_2014_us_zcta510.shp
rm -r tl_2014_us_zcta510
echo "done."