feat(extract): Flamingo Park in run.py, Parkwege in der Chunk-Ausgabe
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ef9e6774a
commit
442f5b2ada
5 files changed
+64
-12
No files matched your search
@@ -20,9 +20,18 @@ def test_coordinates_are_chunk_local_three_js():
|
||||
|
||||
def test_payload_matches_schema():
|
||||
payload = chunk_payload(2, 3, land=[], surfaces=[], roads=[], centerlines=[], buildings=[], palms=[])
|
||||
assert set(payload) == {"chunk", "origin", "land", "surfaces", "roads", "centerlines", "buildings", "palms"}
|
||||
assert set(payload) == {"chunk", "origin", "land", "surfaces", "roads", "centerlines", "buildings", "palms", "paths"}
|
||||
assert payload["chunk"] == [2, 3]
|
||||
|
||||
def test_paths_are_chunk_local_rings_like_roads():
|
||||
path = Polygon([(-990, 2490), (-980, 2490), (-980, 2480), (-990, 2480)])
|
||||
payload = chunk_payload(0, 0, land=[], surfaces=[], roads=[], centerlines=[], buildings=[], palms=[], paths=[path])
|
||||
(entry,) = payload["paths"]
|
||||
assert set(entry) == {"poly"}
|
||||
ring = entry["poly"][0]
|
||||
assert (min(x for x, _ in ring), max(x for x, _ in ring)) == (10, 20)
|
||||
assert (min(z for _, z in ring), max(z for _, z in ring)) == (10, 20)
|
||||
|
||||
def test_polygon_holes_survive_into_the_payload():
|
||||
"""Ein von Strassen umschlossener Block darf nicht zu Asphalt werden. An echten Daten
|
||||
gehen sonst 449.876 m2 Strassenloch und 208.657 m2 Stadtloch verloren."""
|
||||
|
||||
Reference in new issue
Block a user