Add st_isvalid check to imposm3 generalized tables

Fix #386
This commit is contained in:
jirik
2018-01-31 16:51:46 +01:00
committed by Jiri Kozel
parent c2c5fc8f32
commit 5c67f2769e
11 changed files with 15 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ CREATE MATERIALIZED VIEW osm_transportation_merge_linestring AS (
highway,
min(z_order) AS z_order
FROM osm_highway_linestring
WHERE highway IN ('motorway','trunk', 'primary')
WHERE highway IN ('motorway','trunk', 'primary') AND ST_IsValid(geometry)
group by highway
) AS highway_union
);