colouring-montreal/etl/create_building_records.sh
2018-09-25 20:46:16 +01:00

10 lines
227 B
Bash

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