trafficgen.check_land_crossing¶
Module with helper functions to determine if a generated path is crossing land.
Functions
|
Find if path is crossing land. |
- trafficgen.check_land_crossing.path_crosses_land(position_1: GeoPosition, speed: float, cog: float, lat_lon0: GeoPosition, time_interval: float = 300.0) bool ¶
Find if path is crossing land.
- Parameters:
position_1 (GeoPosition) – Ship position, latitudinal [rad] and longitudinal [rad].
speed (float) – Ship speed [m/s].
cog (float) – Ship course over ground [rad].
lat_lon0 (GeoPosition) – Reference point, latitudinal [rad] and longitudinal [rad].
time_interval (float) – The time interval the vessel should travel without crossing land [sec]. Default is 300.0.
- Returns:
is_on_land – True if parts of the path crosses land.
- Return type:
bool