From 5537f38d7853562525f0ca55ebbb5690e7f8d28c Mon Sep 17 00:00:00 2001 From: alexeh Date: Tue, 7 May 2024 09:23:07 +0300 Subject: [PATCH] Add geo_region.totalArea to csv missing columns in populate_geo_and_admin_regions.sql --- data/gadm_importer/populate_geo_and_admin_regions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/gadm_importer/populate_geo_and_admin_regions.sql b/data/gadm_importer/populate_geo_and_admin_regions.sql index 0a5724406..8ebcbefaf 100644 --- a/data/gadm_importer/populate_geo_and_admin_regions.sql +++ b/data/gadm_importer/populate_geo_and_admin_regions.sql @@ -4,7 +4,7 @@ CREATE EXTENSION IF NOT EXISTS ltree; -- 1. Upsert from gadm to geo_region converting geometry to H3 TRUNCATE TABLE geo_region CASCADE; -\copy geo_region FROM 'geo_region.csv' WITH (FORMAT csv, HEADER, FORCE_NULL ("h3Compact", "h3Flat")); +\copy geo_region FROM 'geo_region.csv' WITH (FORMAT csv, HEADER, FORCE_NULL ("h3Compact", "h3Flat", "totalArea")); -- 2. Insert into admin_region referencing geo_region BEGIN;