Set the database when importing districts

This commit is contained in:
Eli Ribble 2026-03-23 12:01:05 -07:00
parent a7fe9ee6d9
commit f90faa4732
No known key found for this signature in database

View file

@ -48,7 +48,7 @@ There's a table containing district information in the database, `import.distric
psql psql
CREATE SCHEMA import; CREATE SCHEMA import;
shp2pgsql -s 3857 -c -D -I CA_districts.shp import.district | psql -d nidus-sync shp2pgsql -s 3857 -c -D -I CA_districts.shp import.district | psql -d nidus-sync
psql psql -d nidus-sync
ALTER TABLE import.district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED; ALTER TABLE import.district ADD COLUMN geom_4326 geometry(MultiPolygon,4326) GENERATED ALWAYS AS (ST_Transform(geom, 4326)) STORED;
``` ```