Skip to content

TaxFoundation/congressional-district-interactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Congressional District Interactive Mapping Tool

Data Sources

To create the individual state topojson files, the mapshaper tool was used with the following configuration:

mapshaper -i cb_2015_us_cd114_500k.shp name='' -proj wgs84 -split STATEFP -o format=geojson
mapshaper -i *.json -o format=topojson force

Splitting directly to topojson does not create separate files, so you must first split to geojson and then convert to topojson. D3 expects WGS84 coordinate system, from which it will then apply whatever other projection (in this case, Mercator). Failing to project to WGS84 will result in computer generated art, not a map.

For Alaska specifically, which was 1mb originally, it was simplified with the -simplify 10% argument in mapshaper.

Releases

No releases published

Packages

No packages published