Revision: fa63a39c5b2a
Branch: webhack
Author: Brian Olson <
brian...@gmail.com>
Date: Sun Mar 24 10:33:25 2013
Log: close
http://code.google.com/p/redistricter/source/detail?r=fa63a39c5b2a
Modified:
/crawl2010.py
/notes.txt
=======================================
--- /crawl2010.py Fri Feb 18 14:13:26 2011
+++ /crawl2010.py Sun Mar 24 10:33:25 2013
@@ -19,11 +19,16 @@
import setupstatedata
import shapefile
+TIGER_ROOT_URL = '
http://www2.census.gov/geo/tiger/TIGER2010/'
TABBLOCK_URL = '
http://www2.census.gov/geo/tiger/TIGER2010/TABBLOCK/2010/'
FACES_URL = '
http://www2.census.gov/geo/tiger/TIGER2010/FACES/'
EDGES_URL = '
http://www2.census.gov/geo/tiger/TIGER2010/EDGES/'
COUNTY_URL = '
http://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/'
+# e.g.
http://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/Virginia/va2010.pl.zip
+# takes (state name, stl) like ('Virginia', 'va')
+PL_ZIP_TEMPLATE
= '
http://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/%s/%s2010.pl.zip'
+
# Three days
INDEX_CACHE_SECONDS = 3*24*3600
@@ -124,10 +129,6 @@
return getCensusTigerSetList(datadir, COUNTY_URL, 'county_index.html',
COUNTY_RE)
-# e.g.
http://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/Virginia/va2010.pl.zip
-# takes (state name, stl) like ('Virginia', 'va')
-PL_ZIP_TEMPLATE
= '
http://www2.census.gov/census_2010/01-Redistricting_File--PL_94-171/%s/%s2010.pl.zip'
-
class Crawler(object):
def __init__(self, options):
self.options = options
@@ -235,7 +236,7 @@
def __init__(self, options, crawley):
super(ProcessGlobals, self).__init__(options)
self.crawley = crawley
- self.tigerlatest = '
http://www2.census.gov/geo/tiger/TIGER2010/'
+ self.tigerlatest = TIGER_ROOT_URL
def getState(self, name):
return StateData(self, name, self.options)
=======================================
--- /notes.txt Mon May 28 12:10:39 2012
+++ /notes.txt Sun Mar 24 10:33:25 2013
@@ -192,3 +192,19 @@
TODO: set G+ on the website
https://plusone.google.com/_/+1/confirm?hl=en&url=${url}
+
+2012-06-28 15:09:01 EDT (Thursday, June 28 03:09:01 PM)
+
+TODO: use 'proj' open source to remap lat,lon to better x,y
+either "Lambert Azimuthal Equal Area Projection"
++proj=laea +lon_0=90w +lat_0=45
+
+or
+
+"Azimuthal Equidistant Projection"
++proj=aeqd +lon_0=90w +lat_0=45
+
+
+"THE PROMISE AND PERILS OF COMPUTERS IN REDISTRICTING"
+MICAH ALTMAN* MICHAEL MCDONALD
+
http://scholarship.law.duke.edu/cgi/viewcontent.cgi?article=1026&context=djclpp