Commit ca8428f3 authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Closing issue 102: No roads should be displayed in aeroway=apron

parent 39bd978c
......@@ -189,7 +189,9 @@ OBSTRUCTION_LIGHT_MIN_LEVELS = 15 # -- put obstruction lights on buildings wit
# discard cluster if too few objects. Do not go below 1, otherwise lots of empty ac-objects and useless STG entries.
CLUSTER_MIN_OBJECTS = 5
BUILDING_TOLERANCE_MATCH_NODE = 0.5 # when searching for a OSM node based on distance: what is the allowed tolerance
# When searching for an existing OSM node based on distance: what is the allowed tolerance.
# Also used in roads.py to make sure blocked areas do not generate tiny differences.
TOLERANCE_MATCH_NODE = 0.5
DETAILS_PROCESS_PIERS = True
DETAILS_PROCESS_PLATFORMS = True
......
This diff is collapsed.
......@@ -72,6 +72,7 @@ V_ACROSS = 'across'
V_AERODROME = 'aerodrome'
V_AERO_OTHER = 'aero_other' # does not exist in OSM - used when it is unsure whether terminal, hangar or different
V_ALONG = 'along'
V_APRON = 'apron'
V_BRIDGE = 'bridge'
V_BUILDING = 'building'
V_FLAT = 'flat'
......
......@@ -117,7 +117,7 @@ def replace_with_os_separator(path: str) -> str:
def match_local_coords_with_global_nodes(local_list: List[Tuple[float, float]], ref_list: List[int],
all_nodes: Dict[int, op.Node],
coords_transform: co.Transformation, osm_id: int,
create_node: bool=False) -> List[int]:
create_node: bool = False) -> List[int]:
"""Given a set of coordinates in local space find matching Node objects in global space.
Matching is using a bit of tolerance (cf. parameter), which should be enough to account for conversion precision
resp. float precision.
......@@ -137,7 +137,7 @@ def match_local_coords_with_global_nodes(local_list: List[Tuple[float, float]],
distance = co.calc_distance_local(local[0], local[1], node_local[0], node_local[1])
if distance < closest_distance:
closest_distance = distance
if distance < parameters.BUILDING_TOLERANCE_MATCH_NODE:
if distance < parameters.TOLERANCE_MATCH_NODE:
found_key = key
break
if found_key < 0:
......
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