Add states, plus who's visited where
This commit is contained in:
parent
0b88a77b15
commit
3e3eae869c
4 changed files with 223 additions and 0 deletions
9
layers/states/get_data.sh
Executable file
9
layers/states/get_data.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue