Skip to content

Commit d45afc3

Browse files
authored
fix area test for platforms in OMT process (#854)
1 parent 68847d3 commit d45afc3

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
@@ -382,7 +382,6 @@ function way_function()
382382
local housenumber = Find("addr:housenumber")
383383
local write_name = false
384384
local construction = Find("construction")
385-
local is_highway_area = highway~="" and Find("area")=="yes" and is_closed
386385

387386
-- Miscellaneous preprocessing
388387
if Find("disused") == "yes" then return end
@@ -459,6 +458,7 @@ function way_function()
459458
if highway ~= "" or public_transport == "platform" then
460459
local access = Find("access")
461460
local surface = Find("surface")
461+
local is_area = (public_transport == "platform" or Find("area")=="yes") and is_closed
462462

463463
local h = highway
464464
local is_road = true
@@ -512,13 +512,13 @@ function way_function()
512512
end
513513

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

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

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

0 commit comments

Comments
 (0)