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.
This commit is contained in:
Michał Gwóźdź 2025-08-08 15:04:52 +02:00 committed by GitHub
parent e1f2acfe09
commit 077e7627f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 *