]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Use a default SRID of 4269 (North America, 1983) when importing the Tiger shapefiles.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 12 Sep 2009 22:31:56 +0000 (18:31 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 12 Sep 2009 22:31:56 +0000 (18:31 -0400)
makefile

index 2c20ffc4f90989ffa09bfa4b0172e54e900ff17e..13032e9a18ef6b031dc251820dfd49186f8dd26e 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,7 @@
 DB_NAME='census2000'
 DB_USER='postgres'
 TIGER_DATA_URL='http://www2.census.gov/cgi-bin/shapefiles/multi-file-download?files=24_MARYLAND%2Ftl_2008_24_tabblock00.zip'
-
+TIGER_SRID='4269'
 
 # Necessary to run test/data without prerequisites.
 #
@@ -68,8 +68,11 @@ db: data
              -U $(DB_USER) \
              -f /usr/share/postgresql/contrib/spatial_ref_sys.sql
 
-       shp2pgsql -I data/census-2000-block/maryland/tl_2008_24_tabblock00.shp tiger \
-                   | psql -U $(DB_USER) -d $(DB_NAME)
+       shp2pgsql -I                                                        \
+                 -s $(TIGER_SRID)                                          \
+                 data/census-2000-block/maryland/tl_2008_24_tabblock00.shp \
+                 tiger                                                     \
+                  | psql -U $(DB_USER) -d $(DB_NAME)
 
        psql -d $(DB_NAME) \
              -U $(DB_USER) \