Group important waterways by language tags only

pull/362/head
jirik 2017-11-16 11:42:48 +01:00 zatwierdzone przez Jiri Kozel
rodzic 741be6d921
commit 3925c1b194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -25,10 +25,10 @@ CREATE MATERIALIZED VIEW osm_important_waterway_linestring AS (
FROM (
SELECT
ST_LineMerge(ST_Union(geometry)) AS geometry,
name, name_en, name_de, tags
name, name_en, name_de, slice_language_tags(tags) AS tags
FROM osm_waterway_linestring
WHERE name <> '' AND waterway = 'river'
GROUP BY name, name_en, name_de, tags
GROUP BY name, name_en, name_de, slice_language_tags(tags)
) AS waterway_union
);
CREATE INDEX IF NOT EXISTS osm_important_waterway_linestring_geometry_idx ON osm_important_waterway_linestring USING gist(geometry);