Commit 032ada85 authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Allow all airports to be used in checking against pavements - without explicit mention

parent 34e06e6f
......@@ -404,11 +404,13 @@ OVERLAP_CHECK_CONSIDER_SHARED Bool True Whether onl
models reused in different places like a church model).
For this to work ``PATH_TO_SCENERY`` must point to the TerraSync directory.
OVERLAP_CHECK_PAVEMENT_BUILDINGS_INCLUDE List [] At airports in list include overlap check with pavement for buildings.
Otherwise overlap check is done only against runways and helipads.
OVERLAP_CHECK_PAVEMENT_BUILDINGS_INCLUDE List None At airports in list include overlap check with pavement for buildings.
If the list is empty, then all airports are used.
If the value is ``None``, then overlap check is done only against runways
and helipads.
Pavement includes e.g. APRONs.
OVERLAP_CHECK_PAVEMENT_ROADS_INCLUDE List [] Ditto for roads and railways. E.g. ``['ENAT', 'LSZR']``
OVERLAP_CHECK_PAVEMENT_ROADS_INCLUDE List None Ditto for roads and railways. E.g. ``['ENAT', 'LSZR']``
OVERLAP_CHECK_ROAD_MIN_REMAINING Integer 10 When a static bridge model or other blocked area (e.g. airport object)
intersect with a way, how much must at least be left so the way is kept after
......
......@@ -102,8 +102,8 @@ OVERLAP_CHECK_CH_BUFFER_SHARED = 0.0
OVERLAP_CHECK_CONSIDER_SHARED = True
OVERLAP_CHECK_PAVEMENT_BUILDINGS_INCLUDE = [] # At airports in list include overlap check with pavement for buildings
OVERLAP_CHECK_PAVEMENT_ROADS_INCLUDE = [] # At airports in list include overlap check with pavement for roads
OVERLAP_CHECK_PAVEMENT_BUILDINGS_INCLUDE = None # At airports in list include overlap check with pavement for buildings
OVERLAP_CHECK_PAVEMENT_ROADS_INCLUDE = None # At airports in list include overlap check with pavement for roads
# -- Skip buildings based on their OSM name tag or OSM ID, e.g. in case there's already
# a static model for these, and the overlap check fails.
......
......@@ -140,7 +140,11 @@ class Airport(object):
pavement_include_list = parameters.OVERLAP_CHECK_PAVEMENT_ROADS_INCLUDE
if for_buildings:
pavement_include_list = parameters.OVERLAP_CHECK_PAVEMENT_BUILDINGS_INCLUDE
if self.code in pavement_include_list:
if pavement_include_list is None:
return blocked_areas
if len(pavement_include_list) == 0 or self.code in pavement_include_list:
for pavement in self.pavements:
pavement_buffers = pavement.create_polygon_buffer(coords_transform)
for pb in pavement_buffers:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment