From: Michael Orlitzky Date: Sun, 11 Oct 2009 16:49:15 +0000 (-0400) Subject: Added the West Virginia county lines files to download_data. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2f9baf2bf5df3f7fa8191a7898e9ede706f61f7c;p=dead%2Fcensus-tools.git Added the West Virginia county lines files to download_data. --- diff --git a/bin/download_data b/bin/download_data index c8a81a4..7e59ece 100755 --- a/bin/download_data +++ b/bin/download_data @@ -16,16 +16,23 @@ import Data from Data import State, County +# Create the State objects. dc = State(11, 'District of Columbia') md = State(24, 'Maryland') ny = State(36, 'New York') pa = State(42, 'Pennsylvania') va = State(51, 'Virginia') +wv = State(54, 'West Virginia') + + +# Now we add all of the counties belonging to each state, starting +# with Washington D.C. -# Washington D.C. dc.add_county(1, 'District of Columbia', True) + # Maryland + md.add_county(1, 'Allegany') md.add_county(3, 'Anne Arundel') md.add_county(5, 'Baltimore') @@ -51,7 +58,9 @@ md.add_county(43, 'Washington') md.add_county(45, 'Wicomico') md.add_county(47, 'Worcester') + # New York + ny.add_county(1, 'Albany') ny.add_county(3, 'Allegany') ny.add_county(5, 'Bronx') @@ -117,6 +126,7 @@ ny.add_county(123, 'Yates') # Pennsylvania + pa.add_county(1, 'Adams') pa.add_county(3, 'Allegheny') pa.add_county(5, 'Armstrong') @@ -185,6 +195,9 @@ pa.add_county(129, 'Westmoreland') pa.add_county(131, 'Wyoming') pa.add_county(133, 'York') + +# Virginia + va.add_county(1, 'Accomack') va.add_county(3, 'Albemarle') va.add_county(5, 'Alleghany') @@ -321,6 +334,66 @@ va.add_county(830, 'Williamsburg city', True) va.add_county(840, 'Winchester city', True) -states = [dc, md, ny, pa, va] +# West Virginia + +wv.add_county(1, 'Barbour') +wv.add_county(3, 'Berkeley') +wv.add_county(5, 'Boone') +wv.add_county(7, 'Braxton') +wv.add_county(9, 'Brooke') +wv.add_county(11, 'Cabell') +wv.add_county(13, 'Calhoun') +wv.add_county(15, 'Clay') +wv.add_county(17, 'Doddridge') +wv.add_county(19, 'Fayette') +wv.add_county(21, 'Gilmer') +wv.add_county(23, 'Grant') +wv.add_county(25, 'Greenbrier') +wv.add_county(27, 'Hampshire') +wv.add_county(29, 'Hancock') +wv.add_county(31, 'Hardy') +wv.add_county(33, 'Harrison') +wv.add_county(35, 'Jackson') +wv.add_county(37, 'Jefferson') +wv.add_county(39, 'Kanawha') +wv.add_county(41, 'Lewis') +wv.add_county(43, 'Lincoln') +wv.add_county(45, 'Logan') +wv.add_county(47, 'McDowell') +wv.add_county(49, 'Marion') +wv.add_county(51, 'Marshall') +wv.add_county(53, 'Mason') +wv.add_county(55, 'Mercer') +wv.add_county(57, 'Mineral') +wv.add_county(59, 'Mingo') +wv.add_county(61, 'Monongalia') +wv.add_county(63, 'Monroe') +wv.add_county(65, 'Morgan') +wv.add_county(67, 'Nicholas') +wv.add_county(69, 'Ohio') +wv.add_county(71, 'Pendleton') +wv.add_county(73, 'Pleasants') +wv.add_county(75, 'Pocahontas') +wv.add_county(77, 'Preston') +wv.add_county(79, 'Putnam') +wv.add_county(81, 'Raleigh') +wv.add_county(83, 'Randolph') +wv.add_county(85, 'Ritchie') +wv.add_county(87, 'Roane') +wv.add_county(89, 'Summers') +wv.add_county(91, 'Taylor') +wv.add_county(93, 'Tucker') +wv.add_county(95, 'Tyler') +wv.add_county(97, 'Upshur') +wv.add_county(99, 'Wayne') +wv.add_county(101, 'Webster') +wv.add_county(103, 'Wetzel') +wv.add_county(105, 'Wirt') +wv.add_county(107, 'Wood') +wv.add_county(109, 'Wyoming') + +# Now that the counties have been added, create a list of states to +# pass to the download_lines function. +states = [dc, md, ny, pa, va, wv] Data.download_lines(states)