From 2f1ebc89b2e4e55537a077d41389678579e8decf Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 4 Apr 2022 13:59:40 +0100 Subject: [PATCH] spelling --- etl/load_coordinates.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etl/load_coordinates.sh b/etl/load_coordinates.sh index 62d0e339..24831c90 100644 --- a/etl/load_coordinates.sh +++ b/etl/load_coordinates.sh @@ -16,18 +16,18 @@ psql -c "CREATE TABLE open_toid ( easting float, northing float, longitude float, - latitute float + latitude float );" echo "Loading Open TOID CSV(s) to temporary table..." find $opentoid_dir -type f -name '*_converted.csv' \ -printf "$opentoid_dir/%f\n" | \ parallel \ -cat {} '|' psql -c "\"COPY open_toid ( toid, version_number, version_date, source_product, easting, northing, longitude, latitute ) FROM stdin WITH CSV HEADER;\"" +cat {} '|' psql -c "\"COPY open_toid ( toid, version_number, version_date, source_product, easting, northing, longitude, latitude ) FROM stdin WITH CSV HEADER;\"" echo "Updating the buildings table with coordinates..." psql -c "UPDATE buildings - SET location_latitude = open_toid.latitute, + SET location_latitude = open_toid.latitude, location_longitude = open_toid.longitude FROM open_toid WHERE open_toid.toid = buildings.ref_toid