Constrain front lines better.

Holes in the inclusion zone are defined by exclusion zones, not by holes
in the inclusion zone. Add a cached property for the inclusion zone that
is not also sea or exclusion zone and use that boundary instead.
This commit is contained in:
Dan Albert
2020-12-24 13:50:29 -08:00
parent aafd09569c
commit 10debbc286
9 changed files with 52 additions and 10 deletions

View File

@@ -93,7 +93,7 @@ class Conflict:
line = LineString([p0, p1])
intersection = line.intersection(
theater.landmap.inclusion_zones.boundary)
theater.landmap.inclusion_zone_only.boundary)
if intersection.is_empty:
# Max extent does not intersect with the boundary of the inclusion
# zone, so the full front line is usable. This does assume that the