Uncomment copy-uprns block

This commit is contained in:
Tom Russell 2018-10-03 20:10:47 +01:00
parent b73fb7118e
commit b180602a5b

View File

@ -15,10 +15,10 @@ data_dir=$1
# toid: <toid>,
# uprn_geom: <point>
#
# find $data_dir -type f -name '*.3857.csv.loadable' \
# -printf "$data_dir/%f\n" | \
# parallel \
# cat {} '|' psql -c "\"COPY building_properties ( uprn_geom, toid, uprn, parent_uprn ) FROM stdin WITH CSV HEADER;\""
find $data_dir -type f -name '*.3857.csv.loadable' \
-printf "$data_dir/%f\n" | \
parallel \
cat {} '|' psql -c "\"COPY building_properties ( uprn_geom, toid, uprn, parent_uprn ) FROM stdin WITH CSV HEADER;\""
#
# Create references