-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uss_qualifier] Add flight intent transformations (#400)
* Add flight intent transformations * Remove debugging message
- Loading branch information
1 parent
2bbe9cb
commit 28ae6a2
Showing
25 changed files
with
569 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from typing import Optional | ||
|
||
from implicitdict import ImplicitDict | ||
|
||
|
||
class RelativeTranslation(ImplicitDict): | ||
"""Offset a geo feature by a particular amount.""" | ||
|
||
meters_east: Optional[float] | ||
"""Number of meters east to translate.""" | ||
|
||
meters_north: Optional[float] | ||
"""Number of meters north to translate.""" | ||
|
||
meters_up: Optional[float] | ||
"""Number of meters upward to translate.""" | ||
|
||
degrees_east: Optional[float] | ||
"""Number of degrees of longitude east to translate.""" | ||
|
||
degrees_north: Optional[float] | ||
"""Number of degrees of latitude north to translate.""" | ||
|
||
|
||
class AbsoluteTranslation(ImplicitDict): | ||
"""Move a geo feature to a specified location.""" | ||
|
||
new_latitude: float | ||
"""The new latitude at which the feature should be located (degrees).""" | ||
|
||
new_longitude: float | ||
"""The new longitude at which the feature should be located (degrees).""" | ||
|
||
|
||
class Transformation(ImplicitDict): | ||
"""A transformation to apply to a geotemporal feature. Exactly one field must be specified.""" | ||
|
||
relative_translation: Optional[RelativeTranslation] | ||
|
||
absolute_translation: Optional[AbsoluteTranslation] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.