add create_new_building_records

This commit is contained in:
Ed Chalstrey 2022-04-14 14:16:44 +01:00
parent ee09491dfe
commit 81d8b1ef51

View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
#
# Create corresponding 'building' record with
# id: <building-guid>,
# doc: {},
# geom_id: <polygon-guid>
#
psql -c "INSERT INTO buildings ( geometry_id, ref_toid ) SELECT geometry_id, source_id from new_geometries;"