This commit is contained in:
Ed Chalstrey 2022-04-11 10:20:19 +01:00
parent 2f63f15aef
commit 99a8dbc63b

View File

@ -9,6 +9,19 @@
## - Make geometries table have coordinates (load_coordinates.sh) - DONE
## - <mastermap download>= 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