Skip to content

Commit

Permalink
Add geo_region.totalArea to csv missing columns in populate_geo_and_a…
Browse files Browse the repository at this point in the history
…dmin_regions.sql
  • Loading branch information
alexeh committed May 7, 2024
1 parent ade59f6 commit 5537f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/gadm_importer/populate_geo_and_admin_regions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5537f38

Please sign in to comment.