From 99a8dbc63ba31efe2b3212c697bace9b5219cd1f Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 11 Apr 2022 10:20:19 +0100 Subject: [PATCH] reorder --- etl/update_building_records.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/etl/update_building_records.sh b/etl/update_building_records.sh index 34ccbab4..8620a925 100644 --- a/etl/update_building_records.sh +++ b/etl/update_building_records.sh @@ -9,6 +9,19 @@ ## - Make geometries table have coordinates (load_coordinates.sh) - DONE ## - = release_geometries +############### +### CHECK 1 ### +############### + +# for building in buildings + + # if building.TOID not in new release_geometries + # buildings.dynamics_has_demolished_buildings = TRUE + +############### +### CHECK 2 ### +############### + # for geometry in geometries # if geometry.TOID not in builings @@ -25,11 +38,6 @@ psql -c "INSERT INTO new_geometries * SELECT * FROM geometries WHERE source_id NOT IN ( SELECT ref_toid FROM buildings);" - -# for building in buildings - - # if building.TOID not in new release_geometries - # buildings.dynamics_has_demolished_buildings = TRUE # secondarily, if building.coordinates <10m away from any new_geometry.coordinates # older_building.dynamics_has_demolished_buildings = TRUE