Loader_Generate_Nation_Script — Generates a shell script for the specified platform that loads in the county and state lookup tables.
Generates a shell script for the specified platform that loads in the
schema. These inherit respectively from the
It uses unzip on Linux (7-zip on Windows by default) and wget to do the downloading. It uses Section 4.4.2, “shp2pgsql: Using the ESRI Shapefile Loader” to load in the data.
It uses the following control tables
to control the process and different OS shell syntax variations.
loader_variableskeeps track of various variables such as census site, year, data and staging schemas
loader_platformprofiles of various platforms and where the various executables are located. Comes with windows and linux/unix. More can be added.
loader_lookuptableseach record defines a kind of table (state, county), whether to process records in it and how to load them in. Defines the steps to import data, stage data, add, removes columns, indexes, and constraints for each. Each table is prefixed with the state and inherits from a table in the tiger schema. e.g. creates
tiger_data.ma_faceswhich inherits from
Enhanced: 2.4.1 zip code 5 tabulation area (zcta5) load step was fixed and when enabled, zcta5 data is loaded as a single table called zcta5_all as part of the nation script load.
If you want zip code 5 tabulation area (zcta5) to be included in your nation script load, do the following:
UPDATE tiger.loader_lookuptables SET load = true WHERE table_name = 'zcta510';
If you were running
Generate script script to load nation data Windows.
Generate script to load up data for Linux/Unix systems.