Skip to content

Commit

Permalink
Dropping subpixel accuracy for areas
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed May 12, 2018
1 parent e3a508a commit 8474fc6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Layer:
FROM planet_osm_polygon
WHERE (landuse IN ('forest', 'military', 'farmland', 'residential', 'commercial', 'retail', 'industrial', 'meadow')
OR "natural" IN ('wood', 'wetland', 'mud', 'sand', 'scree', 'shingle', 'bare_rock', 'heath', 'grassland'))
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
AND building IS NULL
ORDER BY way_area DESC
) AS features
Expand Down Expand Up @@ -152,7 +152,7 @@ Layer:
OR tourism IN ('camp_site', 'caravan_site', 'picnic_site')
OR highway IN ('services', 'rest_area')
OR railway = 'station')
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
ORDER BY way_area DESC
) AS landcover
) AS features
Expand Down Expand Up @@ -265,7 +265,7 @@ Layer:
FROM planet_osm_polygon
WHERE ("natural" IN ('marsh', 'mud', 'wetland', 'wood', 'beach', 'shoal', 'reef', 'scrub', 'sand') OR landuse = 'forest')
AND building IS NULL
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
ORDER BY COALESCE(layer,0), way_area DESC
) AS landcover_area_symbols
properties:
Expand Down Expand Up @@ -434,7 +434,7 @@ Layer:
AND building != 'train_station'
AND (aerialway IS NULL OR aerialway != 'station')
AND ((tags->'public_transport') IS NULL OR tags->'public_transport' != 'station')
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
ORDER BY COALESCE(layer,0), way_area DESC
) AS buildings
properties:
Expand All @@ -460,7 +460,7 @@ Layer:
OR building = 'train_station'
OR aerialway = 'station'
OR tags->'public_transport' = 'station')
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
ORDER BY COALESCE(layer,0), way_area DESC)
AS buildings_major
properties:
Expand Down Expand Up @@ -1371,7 +1371,7 @@ Layer:
FROM planet_osm_polygon
WHERE (boundary = 'national_park' OR leisure = 'nature_reserve')
AND building IS NULL
AND way_area > 0.01*!pixel_width!::real*!pixel_height!::real
AND way_area > 1*!pixel_width!::real*!pixel_height!::real
) AS national_park_boundaries
properties:
minzoom: 8
Expand Down

0 comments on commit 8474fc6

Please sign in to comment.