Mercurial > gemma
view schema/updates/1204/01.create-iso-areas.sql @ 4777:702f06d827a8
Updated requested scale for legend elements to avoid duplicates.
author | Raimund Renkert <raimund@renkert.org> |
---|---|
date | Mon, 21 Oct 2019 13:33:15 +0200 |
parents | 26e9846ed69f |
children |
line wrap: on
line source
CREATE TABLE waterway.sounding_results_iso_areas ( sounding_result_id int NOT NULL REFERENCES waterway.sounding_results ON DELETE CASCADE, height numeric NOT NULL, areas geography(MULTIPOLYGON, 4326) NOT NULL, -- TODO: generate valid simple features and add constraint: -- CHECK(ST_IsSimple(CAST(areas AS geometry))), PRIMARY KEY (sounding_result_id, height) ); CREATE TABLE caching.sounding_differences_iso_areas ( sounding_differences_id int NOT NULL REFERENCES caching.sounding_differences(id) ON DELETE CASCADE, height numeric NOT NULL, areas geography(MULTIPOLYGON, 4326) NOT NULL, PRIMARY KEY (sounding_differences_id, height) ); GRANT INSERT, UPDATE, DELETE ON waterway.sounding_results_iso_areas TO waterway_admin; GRANT SELECT ON waterway.sounding_results_iso_areas TO waterway_user; GRANT SELECT, UPDATE, DELETE, INSERT ON caching.sounding_differences_iso_areas TO waterway_user;