Add states, plus who's visited where

This commit is contained in:
Chandler Swift 2023-07-25 22:14:34 -05:00
parent 0b88a77b15
commit 3e3eae869c
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
4 changed files with 223 additions and 0 deletions

9
layers/states/get_data.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
for resolution in 20m 5m 500k; do
curl --silent --remote-name https://www2.census.gov/geo/tiger/GENZ2022/shp/cb_2022_us_state_${resolution}.zip
unzip cb_2022_us_state_${resolution}.zip
ogr2ogr -f GeoJSON us-states-${resolution}.geojson cb_2022_us_state_${resolution}.shp
sed -i '/^"crs":/d' us-states-${resolution}.geojson # TODO: handle this projection properly
rm cb_2022_us_state_${resolution}.*
done