fix create new buildings

This commit is contained in:
Ed Chalstrey 2022-04-14 14:21:35 +01:00
parent 81d8b1ef51
commit 5800b578d4

View File

@ -6,4 +6,9 @@
# doc: {}, # doc: {},
# geom_id: <polygon-guid> # geom_id: <polygon-guid>
# #
psql -c "INSERT INTO buildings ( geometry_id, ref_toid ) SELECT geometry_id, source_id from new_geometries;" psql -c "INSERT INTO buildings ( geometry_id, ref_toid )
SELECT geometry_id, source_id
FROM geometries AS g
WHERE EXISTS ( SELECT source_id
FROM new_geometries AS ng
WHERE g.source_id = ng.source_id);"