]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - bin/sf1blocks2sql
Added a "Related Projects" heading containing a description of TRAGIS.
[dead/census-tools.git] / bin / sf1blocks2sql
index 1918a2956640e0f0daebc5d9f01f50e6cb811513..42ea739797efeba97a60c69d240a69ae41ce745f 100755 (executable)
@@ -25,7 +25,7 @@ import SummaryFile1
 
 if (len(sys.argv) < 3):
     print "Usage: %s <geo_file> <table_name>" % sys.argv[0]
-    raise SystemExit(ExitCodes.NotEnoughArgs)
+    raise SystemExit(ExitCodes.NOT_ENOUGH_ARGS)
 
 geo_file_path = sys.argv[1]
 table_name = sys.argv[2]
@@ -42,7 +42,7 @@ INSERT INTO %s (state,
                 arealand,
                 areawatr,
                 total_area,
-                tiger_blkidfp00,
+                blkidfp00,
                 pop100,
                 population_density) 
 
@@ -60,6 +60,6 @@ for b in blocks:
                        b.arealand,
                        b.areawatr,
                        b.total_area(),
-                       b.tiger_blkidfp00(),
+                       b.blkidfp00(),
                        b.pop100,
                        b.population_density())