US Congressional District 118 boundary layers
Project description
civic-data-boundaries-us-cd118
U.S. Civic Boundary Data for Civic Interconnect, including boundaries for the 118th U.S. Congressional Districts.
This package provides and hosts standardized U.S. boundary GeoJSON and shapefile-derived layers from TIGER/Line shapefiles, including:
- Boundaries for the 118th Congressional Districts (CD118)
- Support for OCD IDs and simplified formats
- GeoJSON files and manifest indexes for civic data pipelines
GeoJSON files and indexes are generated for use in civic data pipelines.
For state and county boundaries, see civic-data-boundaries-us.
Installation
uv add civic-data-boundaries-us-cd118
#or
pip install civic-data-boundaries-us-cd118
Or add to pyproject.toml dependencies: "civic-data-boundaries-us-cd118"
Data
This repository hosts pre-generated GeoJSON output in data-out/ for direct use in apps, agents, and public mapping tools.
| File | Description |
|---|---|
index.json |
List of all available GeoJSON files with bbox & feature counts |
manifest.json |
Dataset metadata (source, license, timestamps, totals) |
states/<state>/<file>.geojson |
Per-state boundary files |
national/cd118_us.geojson |
Entire U.S. (all congressional districts) |
Example: Load from Python
import requests
import geopandas as gpd
URL = "https://raw.githubusercontent.com/civic-interconnect/civic-data-boundaries-us-cd118/refs/heads/main/data-out/states/minnesota/cd118_minnesota.geojson"
gdf = gpd.read_file(URL)
print(gdf.head())
Example: Load in JavaScript (Leaflet / MapLibre)
const url = "https://raw.githubusercontent.com/civic-interconnect/civic-data-boundaries-us-cd118/refs/heads/main/data-out/national/cd118_us.geojson";
fetch(url)
.then(r => r.json())
.then(data => {
L.geoJSON(data).addTo(map);
});
Development
See DEVELOPER.md
Pipeline
Fetch
- Downloads TIGER zip files
- Skips files already present
Extract
- Unzips shapefiles into folders
- Skips folders already extracted
Export
- Reads shapefiles
- Writes chunked GeoJSON files suitable for GH hosting
Cleanup
- Removes original .zip files and extracted shapefiles once chunked GeoJSONs are complete
References
Direct URLs for the TIGER/Line shapefiles (2022):
- U.S. States: https://www2.census.gov/geo/tiger/TIGER2022/STATE/tl_2022_us_state.zip
- U.S. Counties: https://www2.census.gov/geo/tiger/TIGER2022/COUNTY/tl_2022_us_county.zip
- 118th Congressional Districts: https://www2.census.gov/geo/tiger/TIGER2022/CD/tl_2022_us_cd118.zip
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file civic_data_boundaries_us_cd118-0.0.4.dev0.tar.gz.
File metadata
- Download URL: civic_data_boundaries_us_cd118-0.0.4.dev0.tar.gz
- Upload date:
- Size: 153.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f08d94881e886c11e61c65870fd5e5171ec3bbff8bfcc3768afe4487ad4a9de
|
|
| MD5 |
68633f1b8ad01187bc37bc528124846a
|
|
| BLAKE2b-256 |
68e881c7203c95e2cfdc8606eb507478d60d6cfc280ddc30c6c2431211a14b83
|
Provenance
The following attestation bundles were made for civic_data_boundaries_us_cd118-0.0.4.dev0.tar.gz:
Publisher:
release.yml on civic-interconnect/civic-data-boundaries-us-cd118
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civic_data_boundaries_us_cd118-0.0.4.dev0.tar.gz -
Subject digest:
5f08d94881e886c11e61c65870fd5e5171ec3bbff8bfcc3768afe4487ad4a9de - Sigstore transparency entry: 641949095
- Sigstore integration time:
-
Permalink:
civic-interconnect/civic-data-boundaries-us-cd118@de5a6ea9bd64b4df9889d4187da914f0b39a886c -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/civic-interconnect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@de5a6ea9bd64b4df9889d4187da914f0b39a886c -
Trigger Event:
push
-
Statement type:
File details
Details for the file civic_data_boundaries_us_cd118-0.0.4.dev0-py3-none-any.whl.
File metadata
- Download URL: civic_data_boundaries_us_cd118-0.0.4.dev0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dffe71c81df0a7f956942d27786ff0833f3a26dc0b447c6c87292f4ab943e8a
|
|
| MD5 |
422eb255e59fd55d897bcfe282a47a5b
|
|
| BLAKE2b-256 |
17ce8d55e434772f8a321a9aded67c43d0e9b997ec4b7b29ddfbe7fce21a475c
|
Provenance
The following attestation bundles were made for civic_data_boundaries_us_cd118-0.0.4.dev0-py3-none-any.whl:
Publisher:
release.yml on civic-interconnect/civic-data-boundaries-us-cd118
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civic_data_boundaries_us_cd118-0.0.4.dev0-py3-none-any.whl -
Subject digest:
9dffe71c81df0a7f956942d27786ff0833f3a26dc0b447c6c87292f4ab943e8a - Sigstore transparency entry: 641949096
- Sigstore integration time:
-
Permalink:
civic-interconnect/civic-data-boundaries-us-cd118@de5a6ea9bd64b4df9889d4187da914f0b39a886c -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/civic-interconnect
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@de5a6ea9bd64b4df9889d4187da914f0b39a886c -
Trigger Event:
push
-
Statement type: