From 6f2b39e657cea492c9ff748cc1bb2ea212264b48 Mon Sep 17 00:00:00 2001 From: Brian Sperlongano Date: Tue, 28 Mar 2023 04:33:18 -0400 Subject: [PATCH] Fix index typo (#1522) This PR fixes a copy/paste error which caused the z2 boundary layer index to be created twice and the z1 index to not be created at all. --- layers/boundary/boundary.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/boundary/boundary.sql b/layers/boundary/boundary.sql index fa73bd16..cfe39531 100644 --- a/layers/boundary/boundary.sql +++ b/layers/boundary/boundary.sql @@ -180,7 +180,7 @@ CREATE MATERIALIZED VIEW osm_border_disp_linestring_gen_z1 AS SELECT ST_Simplify(geometry, ZRes(2)) AS geometry, adm0_l, adm0_r, admin_level, TRUE AS disputed, name, claimed_by, maritime FROM osm_border_disp_linestring_gen_z2 ) /* DELAY_MATERIALIZED_VIEW_CREATION */ ; -CREATE INDEX IF NOT EXISTS osm_border_disp_linestring_gen_z2_idx ON osm_border_disp_linestring_gen_z2 USING gist (geometry); +CREATE INDEX IF NOT EXISTS osm_border_disp_linestring_gen_z1_idx ON osm_border_disp_linestring_gen_z1 USING gist (geometry); -- ne_10m_admin_0_boundary_lines_land -- etldoc: ne_10m_admin_0_boundary_lines_land -> ne_10m_admin_0_boundary_lines_land_gen_z4