Drop osm_water_lakeline and osm_water_point tables before creating new ones (#1733)

I noticed that OpenMapTiles generate lake labels only when run for the first time. After that, it never recreates `osm_water_lakeline` and `osm_water_point` tables, so when I generate one region after another, only the first one has lake labels. This PR fixes that.
pull/1438/head^2
Michał Gwóźdź 2025-08-08 15:04:52 +02:00 zatwierdzone przez GitHub
rodzic e1f2acfe09
commit 077e7627f1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,8 @@ FROM osm_water_polygon AS wp
WHERE wp.name <> ''
AND ST_IsValid(wp.geometry);
DROP TABLE IF EXISTS osm_water_lakeline CASCADE;
-- etldoc: osm_water_polygon -> osm_water_lakeline
-- etldoc: lake_centerline -> osm_water_lakeline
CREATE TABLE IF NOT EXISTS osm_water_lakeline AS
@ -75,6 +77,8 @@ SELECT osm_id,
is_intermittent
FROM osm_water_point_view;
DROP TABLE IF EXISTS osm_water_point CASCADE;
-- etldoc: osm_water_point_earth_view -> osm_water_point
CREATE TABLE IF NOT EXISTS osm_water_point AS
SELECT *