Skip to content

Commit

Permalink
Fix #250 for zoom 9+ (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed May 23, 2017
1 parent 4037256 commit a9b9c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions layers/transportation/layer.sql
Expand Up @@ -84,6 +84,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, class text, ramp int, oneway int
z_order
FROM osm_highway_linestring_gen2
WHERE zoom_level BETWEEN 9 AND 10
AND st_length(geometry)>zres(10)
UNION ALL

-- etldoc: osm_highway_linestring_gen1 -> layer_transportation:z11
Expand All @@ -95,6 +96,7 @@ RETURNS TABLE(osm_id bigint, geometry geometry, class text, ramp int, oneway int
z_order
FROM osm_highway_linestring_gen1
WHERE zoom_level = 11
AND st_length(geometry)>zres(11)
UNION ALL

-- etldoc: osm_highway_linestring -> layer_transportation:z12
Expand Down
4 changes: 2 additions & 2 deletions layers/transportation/mapping.yaml
Expand Up @@ -13,13 +13,13 @@ generalized_tables:
# etldoc: imposm3 -> osm_highway_linestring_gen2
highway_linestring_gen2:
source: highway_linestring_gen1
sql_filter: highway IN ('motorway','trunk', 'primary', 'secondary') AND NOT is_area
sql_filter: highway IN ('motorway', 'trunk', 'primary', 'secondary', 'motorway_link', 'trunk_link', 'primary_link', 'secondary_link') AND NOT is_area
tolerance: ZRES10

# etldoc: imposm3 -> osm_highway_linestring_gen1
highway_linestring_gen1:
source: highway_linestring
sql_filter: highway IN ('motorway','trunk', 'primary', 'secondary', 'tertiary') AND NOT is_area
sql_filter: highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'motorway_link', 'trunk_link', 'primary_link', 'secondary_link', 'tertiary_link') AND NOT is_area
tolerance: ZRES11

name_field: &name
Expand Down

0 comments on commit a9b9c79

Please sign in to comment.