From 34fd921d08f44d283d51ab1b9fd34a1e0d9a37d1 Mon Sep 17 00:00:00 2001 From: Michael Barroco Date: Tue, 25 Oct 2022 23:27:39 -0400 Subject: [PATCH] [definitions] Add missing list depth in ed269 polygons and fix example (#4) --- src/uas_standards/eurocae_ed269.py | 5 +++-- tests/test_eurocae_ed269.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/uas_standards/eurocae_ed269.py b/src/uas_standards/eurocae_ed269.py index 3cace7f..9789041 100644 --- a/src/uas_standards/eurocae_ed269.py +++ b/src/uas_standards/eurocae_ed269.py @@ -59,9 +59,10 @@ class HorizontalProjectionType(str, Enum): class CircleOrPolygonType(ImplicitDict): type: HorizontalProjectionType - center: Optional[List[float]] # 2 items + center: Optional[List[float]] # 2 items. Coordinates: lat, lng radius: Optional[float] # > 0 - coordinates: Optional[List[List[float]]] # min 4 items # 2 items + coordinates: Optional[List[List[List[float]]]] # List of polygons -> List of points: min 4 items -> Coordinates: lat, lng + class UomDimensions(str, Enum): diff --git a/tests/test_eurocae_ed269.json b/tests/test_eurocae_ed269.json index 38e5089..3eb9dd4 100644 --- a/tests/test_eurocae_ed269.json +++ b/tests/test_eurocae_ed269.json @@ -1,5 +1,5 @@ { - "title": "UASZoneTestData 2022-10-16", + "title": "UASZoneTestData 2022-10-25", "description": "Sample data for Automated Testing development", "features": [ { @@ -70,7 +70,7 @@ { "startDateTime": "2022-06-15T09:00:00.00Z", "endDateTime": "2023-06-15T09:00:00.00Z", - "permanent": "YES" + "permanent": "NO" } ], "zoneAuthority": [