Skip to content

Commit

Permalink
Landcover low zoom cleaning (#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl authored Dec 2, 2018
1 parent e15c4bf commit 2d55249
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ Layer:
<<: *osm2pgsql
table: |-
(SELECT
way, name, way_pixels, religion,
way, way_pixels,
COALESCE(wetland, landuse, "natural") AS feature
FROM (SELECT
way, COALESCE(name, '') AS name, religion,
way,
('landuse_' || (CASE WHEN landuse IN ('forest', 'farmland', 'residential', 'commercial', 'retail', 'industrial',
'meadow', 'vineyard', 'orchard') THEN landuse ELSE NULL END)) AS landuse,
('natural_' || (CASE WHEN "natural" IN ('wood', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub') THEN "natural" ELSE NULL END)) AS "natural",
Expand All @@ -100,7 +100,6 @@ Layer:
WHERE (landuse IN ('forest', 'farmland', 'residential', 'commercial', 'retail', 'industrial', 'meadow', 'vineyard', 'orchard')
OR "natural" IN ('wood', 'wetland', 'mud', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland', 'scrub'))
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND building IS NULL
) AS features
ORDER BY way_area DESC, feature
) AS landcover_low_zoom
Expand Down

0 comments on commit 2d55249

Please sign in to comment.