99SELECT create_areas_mview(
1010 ' osm_other_areas' ,
1111 ' mv_other_areas_z8_9' ,
12- 50 ,
12+ 100 ,
1313 1000000 ,
1414 ' id, osm_id, type' ,
1515 NULL
@@ -21,21 +21,19 @@ SELECT create_points_centroids_mview(
2121);
2222
2323-- ============================================================================
24- -- Zoom 10-11:
25- -- Medium-low simplification (15m)
26- -- Medium areas (>50K m² = 0.05 km²)
24+ -- Zoom 10-12
2725-- ============================================================================
2826SELECT create_areas_mview(
2927 ' osm_other_areas' ,
30- ' mv_other_areas_z10_11 ' ,
31- 15 ,
28+ ' mv_other_areas_z10_12 ' ,
29+ 20 ,
3230 50000 ,
3331 ' id, osm_id, type' ,
3432 NULL
3533);
3634SELECT create_points_centroids_mview(
37- ' mv_other_areas_z10_11 ' ,
38- ' mv_other_points_centroids_z10_11 ' ,
35+ ' mv_other_areas_z10_12 ' ,
36+ ' mv_other_points_centroids_z10_12 ' ,
3937 NULL
4038);
4139
@@ -49,43 +47,21 @@ SELECT create_points_mview(
4947 ' mv_other_points'
5048);
5149
52- -- ============================================================================
53- -- Zoom 12-13:
54- -- Low simplification (10m)
55- -- Small areas (>10K m² = 0.01 km²)
56- -- Include other points
57- -- ============================================================================
58- SELECT create_areas_mview(
59- ' osm_other_areas' ,
60- ' mv_other_areas_z12_13' ,
61- 10 ,
62- 10000 ,
63- ' id, osm_id, type' ,
64- NULL
65- );
66- SELECT create_points_centroids_mview(
67- ' mv_other_areas_z12_13' ,
68- ' mv_other_points_centroids_z12_13' ,
69- ' mv_other_points'
70- );
7150
7251-- ============================================================================
73- -- Zoom 14-15:
74- -- Very low simplification (5m)
75- -- Very small areas (>5K m² = 0.005 km²)
76- -- Include other points
52+ -- Zoom 13-15:
7753-- ============================================================================
7854SELECT create_areas_mview(
7955 ' osm_other_areas' ,
80- ' mv_other_areas_z14_15 ' ,
56+ ' mv_other_areas_z13_15 ' ,
8157 5 ,
8258 5000 ,
8359 ' id, osm_id, type' ,
8460 NULL
8561);
8662SELECT create_points_centroids_mview(
87- ' mv_other_areas_z14_15 ' ,
88- ' mv_other_points_centroids_z14_15 ' ,
63+ ' mv_other_areas_z13_15 ' ,
64+ ' mv_other_points_centroids_z13_15 ' ,
8965 ' mv_other_points'
9066);
9167
@@ -112,4 +88,6 @@ SELECT create_points_centroids_mview(
11288-- ============================================================================
11389-- Create materialized views for other lines
11490-- ============================================================================
115- SELECT create_generic_mview(' osm_other_lines' , ' mv_other_lines_z14_20' , ARRAY[' osm_id' , ' type' , ' class' ]);
91+ SELECT create_lines_mview(' osm_other_lines' , ' mv_other_lines_z16_20' , 0 , 0 , ' id, osm_id, type' );
92+ SELECT create_mview_line_from_mview(' mv_other_lines_z16_20' , ' mv_water_lines_z14_15' , 5 );
93+
0 commit comments