Fill in correct data about the district

This commit is contained in:
Eli Ribble 2026-02-16 15:26:41 +00:00
parent a1cc2dbaff
commit f859e372c6
No known key found for this signature in database
9 changed files with 244 additions and 66 deletions

View file

@ -20,3 +20,4 @@ GRANT ALL PRIVILEGES ON SCHEMA public TO $1;
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 centroid_4326 geometry(Point,4326) GENERATED ALWAYS AS (ST_Transform(ST_Centroid(geom), 4326)) STORED;
ALTER TABLE import.district ADD COLUMN extent_4326 geometry(Polygon,4326) GENERATED ALWAYS AS (ST_Transform(ST_Envelope(geom), 4326)) STORED;
ALTER TABLE import.district ADD COLUMN area_4326_sqm numeric GENERATED ALWAYS AS (ST_Area(ST_Transform(geom, 4326)::geography)) STORED;