https://github.com/caged/judicial-district-data
https://github.com/caged/judicial-district-data
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/caged/judicial-district-data
- Owner: caged
- Created: 2020-04-01T03:28:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T05:49:33.000Z (almost 5 years ago)
- Last Synced: 2025-01-20T10:48:28.577Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://observablehq.com/@caged/the-united-states-courts-of-appeals-and-district-courts
- Size: 4.58 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

This is a set of god awful hacks to generate county-level data for judicial districts. See [this observable notebook](https://observablehq.com/@caged/the-united-states-courts-of-appeals-and-district-courts) for an interactive version.
### Old fragile stuff below
```shell
# Install system dependencies
brew install gdal postgis
# Install project dependencies
yarn
# Download datasets
make
# Import geodatabasess
./bin/import -d usa -g ./data/gdb/acs_2017_5yr_county/ACS_2017_5YR_COUNTY.gdb
./bin/import -d usa -g ./data/gdb/judicial_districts/7c787be41fc04bf6a4f47c3332367adc.gdb
# Fix bad data in jurisdictions
psql -f sql/fix-bad-polygon-in-jurisdictions.sql -d usa
psql -f sql/fix-bad-jurisdiction-data.sql -d usa
# Generate composite dataset with counties and jurisdictions
psql -f sql/intersect-query.sql -d usa
# Export data to new-line-delimited GeoJSON
./bin/export -d usa -t intersections_with_threshold -o counties-raw-ndjson.json
# Process into simplified TopoJSON
yarn topo
```