copy all table columns
This commit is contained in:
parent
8433a95f2d
commit
2f63f15aef
@ -14,12 +14,15 @@
|
|||||||
# if geometry.TOID not in builings
|
# if geometry.TOID not in builings
|
||||||
# Add TOID to temp table called new_geometries
|
# Add TOID to temp table called new_geometries
|
||||||
|
|
||||||
# psql -c "CREATE TABLE new_geometries (
|
psql -c "CREATE TABLE new_geometries (
|
||||||
# geometry_id serial PRIMARY KEY,
|
geometry_id serial PRIMARY KEY,
|
||||||
# source_id varchar(30)
|
source_id varchar(30),
|
||||||
# );"
|
geometry_geom geometry(GEOMETRY, 3857),
|
||||||
psql -c "INSERT INTO new_geometries ( geometry_id, source_id )
|
longitude float,
|
||||||
SELECT geometry_id, source_id
|
latitude float
|
||||||
|
);"
|
||||||
|
psql -c "INSERT INTO new_geometries *
|
||||||
|
SELECT *
|
||||||
FROM geometries
|
FROM geometries
|
||||||
WHERE source_id NOT IN ( SELECT ref_toid FROM buildings);"
|
WHERE source_id NOT IN ( SELECT ref_toid FROM buildings);"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user