Skip to content

Techniques used to split Minnesota voting precincts into higher level district boundaries.

License

Notifications You must be signed in to change notification settings

MinnPost/minnpost-voting-districting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voting Districting

Techniques used to split Minnesota voting precincts into higher level district boundaries. The Minnesota Secretary of State released Voting Precinct data on the MN Legislature site. The dataset includes higher level boundaries like district courts, but we need to group them together to get new datasets (shapefiles). This codebase is a simple collection of what was done to make that happen.

Instruction assume a Mac (sorry).

Import into PostGIS

Install PostGIS with homebrew (a quick search will find you some good instructions). Make sure to install GDAL with Postgres support.

  1. Create a PostGIS database named minnpost.
  2. Extract shapefile: cd data && unzip vtd2012_primary_rev20120720.zip; cd -;
  3. Import the shapefile into the database (change psql credentials as need): shp2pgsql -d -I -D -s 26915 -g the_geom data/vtd2012_primary_rev20120720.shp mn_voting_precincts | psql -U postgres -h localhost minnpost

Create subsets

  1. Run the following to create the data subsets in the data/subsets directory, update Postgres credentials as needed: bash data-processing/create-subsets.sh

About

Techniques used to split Minnesota voting precincts into higher level district boundaries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages