I would use the boundary rect, but I'm getting a 500-level error from stadia maps
3 lines
309 B
SQL
3 lines
309 B
SQL
-- +goose Up
|
|
ALTER TABLE organization ADD COLUMN service_area_centroid_x DOUBLE PRECISION GENERATED ALWAYS AS (ST_X(ST_Centroid(service_area_geometry))) STORED;
|
|
ALTER TABLE organization ADD COLUMN service_area_centroid_y DOUBLE PRECISION GENERATED ALWAYS AS (ST_Y(ST_Centroid(service_area_geometry))) STORED;
|