colouring-montreal/etl/create_building_records.sh

12 lines
266 B
Bash
Raw Permalink Normal View History

2018-09-25 15:46:16 -04:00
#!/usr/bin/env bash
#
# Create corresponding 'building' record with
# id: <building-guid>,
# doc: {},
# geom_id: <polygon-guid>
#
2022-04-14 09:21:55 -04:00
psql -c "INSERT INTO buildings ( geometry_id, ref_toid )
SELECT geometry_id, source_id
FROM geometries;"