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

@@ -12,6 +12,7 @@ generalized_tables:
# etldoc: imposm3 -> osm_aeroway_linestring_gen1
aeroway_linestring_gen1:
source: aeroway_linestring
sql_filter: ST_IsValid(geometry)
tolerance: ZRES13
# etldoc: imposm3 -> osm_aeroway_polygon_gen3
@@ -29,7 +30,7 @@ generalized_tables:
# etldoc: imposm3 -> osm_aeroway_polygon_gen1
aeroway_polygon_gen1:
source: aeroway_polygon
sql_filter: area>power(ZRES12,2)
sql_filter: area>power(ZRES12,2) AND ST_IsValid(geometry)
tolerance: ZRES13
ref_field: &ref