Reach a trail just outside a source outline that is drawn tighter than the range

GMBA draws the Adirondacks by relief and its outline stops about 21 km east of Cranberry
Lake, so the 80 km Cranberry Lake 50 loop, inside the Adirondack Park, was in no range.
The cause is the source's outline, not the trail: an allow-list entry can now push a
range's outline out (grow_km, with grow_clip to keep it off ground it should not reach),
and the Adirondack Mountains use it so the loop is placed without a rule for one trail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Sonnet 5.5 committed 2026-11-20 10:51:35 -07:00
1 parent 8da26e5c1d
commit 1767bf4789
3 files changed
+39 -2

No files matched your search

+12
View File
@@ -260,6 +260,18 @@ class ProposalTest(unittest.TestCase):
self.assertEqual(P._clean_cpcad_name("Killarney Lakelands And Headwaters Provincial Park"),
"Killarney Lakelands and Headwaters Provincial Park")
def test_a_grown_outline_reaches_a_track_just_outside_it_but_only_inside_its_clip(self):
# about 20 km east of the park's edge (-109.0): a track the source's outline missed
east = LineString([(-108.75, 43.2), (-108.75, 43.29)])
self.assertEqual(P.propose([rec("a", ["WY"], east)], [self.park]).per_trail["a"], [])
grown = P.grow_outline(self.park.geometry, 25)
self.assertGreater(grown.area, self.park.geometry.area)
self.assertTrue(grown.contains(east))
# a clip keeps the growth off ground the owner did not mean: nothing east of -108.9
clipped = P.grow_outline(self.park.geometry, 25, clip=[-111.0, 42.0, -108.9, 45.0])
self.assertFalse(clipped.intersects(east))
self.assertTrue(clipped.contains(self.park.geometry))
def test_a_slug_collision_inside_a_kind_gets_the_state_code(self):
a = outline("park", "P1", "Glacier", self.park.geometry, slug=None, hint=["MT"])
b = outline("park", "P2", "Glacier", self.range.geometry, slug=None, hint=["BC"])