From 649e55d07ff86eb71ba3103c08c63fe50f175452 Mon Sep 17 00:00:00 2001 From: sgref Date: Fri, 16 Jul 2021 23:49:05 +0200 Subject: [PATCH] Fix index to match osm carto 5.3.1 --- indexes.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexes.sql b/indexes.sql index 3f68e6a..6940a21 100644 --- a/indexes.sql +++ b/indexes.sql @@ -32,7 +32,7 @@ CREATE INDEX planet_osm_polygon_nobuilding ON planet_osm_polygon USING GIST (way) WHERE building IS NULL; CREATE INDEX planet_osm_polygon_name - ON planet_osm_polygon USING GIST (way) + ON planet_osm_polygon USING GIST (ST_PointOnSurface(way)) WHERE name IS NOT NULL; CREATE INDEX planet_osm_polygon_way_area_z10 ON planet_osm_polygon USING GIST (way)