From 63214ba3e431921cc4806229961c2ed9a8659238 Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Tue, 17 Dec 2024 12:22:21 -0800 Subject: [PATCH] reproject cached data to BC albers on load --- jobs/load_monthly | 2 ++ jobs/load_weekly | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jobs/load_monthly b/jobs/load_monthly index 699d2aab..665c11d5 100755 --- a/jobs/load_monthly +++ b/jobs/load_monthly @@ -18,6 +18,8 @@ jq -c '.[]' bcgw_sources.json | while read item; do ogr2ogr -f PostgreSQL \ "PG:$DATABASE_URL" \ --config OGR_TRUNCATE=YES \ + -s_srs EPSG:4326 \ + -t_srs EPSG:3005 \ -append \ -nln $source \ /vsis3/bchamp/bcdata/$source.parquet \ diff --git a/jobs/load_weekly b/jobs/load_weekly index 497c5376..35528b17 100755 --- a/jobs/load_weekly +++ b/jobs/load_weekly @@ -20,6 +20,8 @@ jq -c '.[]' bcgw_sources.json | while read item; do ogr2ogr -f PostgreSQL \ "PG:$DATABASE_URL" \ --config OGR_TRUNCATE=YES \ + -s_srs EPSG:4326 \ + -t_srs EPSG:3005 \ -append \ -nln $source \ /vsis3/bchamp/bcdata/$source.parquet \