Fix mistake in join point placement.

This looks like it was just a typo. We want to join as late as possible
to allow flights coming from other airfields to take the best route to
the target that is safe, rather than joining as early as possible, which
isn't useful since pre-join and post-split are supposed to be safe areas
anyway.
This commit is contained in:
Dan Albert
2022-09-09 15:04:02 -07:00
committed by Raffson
parent cb5783e360
commit 5de94843ea

View File

@@ -100,5 +100,5 @@ class JoinZoneGeometry:
if self.preferred_lines.is_empty:
join, _ = shapely.ops.nearest_points(self.permissible_zones, self.ip)
else:
join, _ = shapely.ops.nearest_points(self.preferred_lines, self.home)
join, _ = shapely.ops.nearest_points(self.preferred_lines, self.ip)
return self._target.new_in_same_map(join.x, join.y)