Retro: It didn't turn out how I wanted it to. Turns out there's an upper bound to feasible vector tile sizes, and that bound is lower than I needed it to be. Potential next steps are to look deeper into what it would take to convert the vector tiles into raster tiles so the heavy rendering is prebaked.
View it live: http://mlange.io/wc-final/
Often missing from political discourse is geographical features. A recent example is how the North Dakota Access Pipeline was being built on private property with apporval of the owners and the Standing Rock tribe, not being the owners of said property, have no right to protest. This ignores that fact that water sources on private property come from upstream, which may not be on the same owners property. A visual aid may do better than words can to describe the relationship between geography and property.
By creating a map using only geographical water bodies data alongside US county political borders, the conversation is forced to be about the interplay between the two givens. Additionally, the magnitude of the data (there are a lot of counties, and a dizzying complex network of water), should put into perspective how difficult and nuanced this problem is.
Water data comes from the USGS National Hydrography Dataset and political boundary data is TBD. Most likely just county data from the census.
- Data is downloaded as an ESRI Geodatabase from NHD High Resolution S3 Bucket
- Data is then converted to various geojson files using ArcGIS
- Ideally, ogr2ogr could be used to create a fully scripted, easily reproduced process, but the datasets are too larger for ogr2ogr.
- Geojson files are then processed into vector tiles using Tippecanoe
- Geojson files could be shared through Dat to avoid the processing step again
- Vector tiles are hosted by a custom tile server
- Hosting options include Digital Ocean (personal account), Heroku, or AWS Lambda + S3
- Data is downloaded as geojson
- Geojson is then processed into vector tiles using Tippecanoe
- Vector tiles are hosted the same way the NHD tiles are hosted
Mapbox GL is used to serve the custom vector tiles. On hover, counties will highlight water sources that lead into the county.