Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
shapefile-reduce.rb
statesp020_nt00032.tar.gz

README.md

Election Map Stuff

This is a ruby point-reduction script using rgeo's shapefile library; while it's a single-purpose script, it can probably be fairly easily generalized for other uses.

The script uses min-heaps to implement the algorithm described here.

Included is the shapefile (from the US Census web page) that the script uses for source data.

This site may also be of interest to anyone looking at this; the current script does not account for this, though it does (somewhat) deal with triple-point state intersections.