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.
#
-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) \