colouring-montreal/etl/create_building_records.sh
Ed Chalstrey 3ef990ae2d tidy
2022-04-14 14:21:55 +01:00

12 lines
266 B
Bash
Executable File

#!/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 geometries;"