From 81d8b1ef51320fbf4dec3f06b8ba52c199a35b26 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 14 Apr 2022 14:16:44 +0100 Subject: [PATCH] add create_new_building_records --- etl/create_new_building_records.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etl/create_new_building_records.sh diff --git a/etl/create_new_building_records.sh b/etl/create_new_building_records.sh new file mode 100644 index 00000000..cf3f7f36 --- /dev/null +++ b/etl/create_new_building_records.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# +# Create corresponding 'building' record with +# id: , +# doc: {}, +# geom_id: +# +psql -c "INSERT INTO buildings ( geometry_id, ref_toid ) SELECT geometry_id, source_id from new_geometries;"