Skip to content

Commit c8c9849

Browse files
committed
fix area test for platforms in OMT process
1 parent ea8d215 commit c8c9849

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

resources/process-openmaptiles.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ function way_function()
381381
local housenumber = Find("addr:housenumber")
382382
local write_name = false
383383
local construction = Find("construction")
384-
local is_highway_area = highway~="" and Find("area")=="yes" and is_closed
385384

386385
-- Miscellaneous preprocessing
387386
if Find("disused") == "yes" then return end
@@ -458,6 +457,7 @@ function way_function()
458457
if highway ~= "" or public_transport == "platform" then
459458
local access = Find("access")
460459
local surface = Find("surface")
460+
local is_area = (public_transport == "platform" or Find("area")=="yes") and is_closed
461461

462462
local h = highway
463463
local is_road = true
@@ -511,13 +511,13 @@ function way_function()
511511
end
512512

513513
-- Drop all areas except infrastructure for pedestrians handled above
514-
if is_highway_area and h ~= "path" then
514+
if is_area and h ~= "path" then
515515
minzoom = INVALID_ZOOM
516516
end
517517

518518
-- Write to layer
519519
if minzoom <= 14 then
520-
write_to_transportation_layer(minzoom, h, subclass, ramp, service, false, is_road, is_highway_area)
520+
write_to_transportation_layer(minzoom, h, subclass, ramp, service, false, is_road, is_area)
521521

522522
-- Write names
523523
if not is_closed and (HasNames() or Holds("ref")) then

0 commit comments

Comments
 (0)