happyjack27 / autoredistrict

Programmatically makes a fair congressional district map (prevents gerrymandering)
GNU General Public License v3.0
89 stars 15 forks source link

demographics are off #128

Closed happyjack27 closed 8 years ago

happyjack27 commented 8 years ago

demographics are off, whether county level or cvap block data

happyjack27 commented 8 years ago

...actually county level is good (i was comparing to total pop rather than voting age pop.)

cvap imports have something wrong with 'em. they're coming up way high.

happyjack27 commented 8 years ago

It's including multiple summary levels.

for list of summary levels, see: http://factfinder.census.gov/help/en/summary_level_code_list.htm

in Mainframe line 7227, add:

String pseudo_or_actual = ""+geo_line.charAt(167); String summary_level = geo_line.substring(8,11);

//ignore non-vtd's. if( !summary_level.equals("700")) { continue; }

/ these are "SUMLEV"'; census summary levels 700 = vtd 150 = block group /