From a1b05cdf8a265a432c31a518a23744a3bf2eb29f Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Fri, 1 Mar 2024 17:42:23 -0800 Subject: [PATCH] overwrite existing bcdata.parcelmap --- jobs/whse_basemapping.transport_line | 1 + jobs/whse_cadastre.pmbc_parcel_fabric_poly_svw | 1 + 2 files changed, 2 insertions(+) diff --git a/jobs/whse_basemapping.transport_line b/jobs/whse_basemapping.transport_line index d07d90a5..46808db3 100755 --- a/jobs/whse_basemapping.transport_line +++ b/jobs/whse_basemapping.transport_line @@ -10,6 +10,7 @@ PSQL="psql $DATABASE_URL -v ON_ERROR_STOP=1" ogr2ogr \ -f PostgreSQL \ "PG:$DATABASE_URL" \ + --config PG_USE_COPY YES \ -lco GEOMETRY_NAME=geom \ -lco FID=transport_line_id \ -nln bcdata.transport_line \ diff --git a/jobs/whse_cadastre.pmbc_parcel_fabric_poly_svw b/jobs/whse_cadastre.pmbc_parcel_fabric_poly_svw index c92d5f33..607154f4 100755 --- a/jobs/whse_cadastre.pmbc_parcel_fabric_poly_svw +++ b/jobs/whse_cadastre.pmbc_parcel_fabric_poly_svw @@ -20,6 +20,7 @@ ogr2ogr \ PG:$DATABASE_URL \ -lco GEOMETRY_NAME=geom \ -lco FID=PARCEL_FABRIC_POLY_ID \ + -overwrite \ -nln bcdata.pmbc_parcel_fabric_poly_svw \ /tmp/pmbc_parcel_fabric_poly_svw.gdb.zip \ pmbc_parcel_fabric_poly_svw