Skip to content

Commit

Permalink
[definitions] Add missing list depth in ed269 polygons and fix example (
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco authored Oct 26, 2022
1 parent db8b100 commit 34fd921
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/uas_standards/eurocae_ed269.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_eurocae_ed269.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "UASZoneTestData 2022-10-16",
"title": "UASZoneTestData 2022-10-25",
"description": "Sample data for Automated Testing development",
"features": [
{
Expand Down Expand Up @@ -70,7 +70,7 @@
{
"startDateTime": "2022-06-15T09:00:00.00Z",
"endDateTime": "2023-06-15T09:00:00.00Z",
"permanent": "YES"
"permanent": "NO"
}
],
"zoneAuthority": [
Expand Down

0 comments on commit 34fd921

Please sign in to comment.