trafficgen.check_land_crossing module

Module with helper functions to determine if a generated path is crossing land.

trafficgen.check_land_crossing.path_crosses_land(position_1: Position, speed: float, course: float, lat_lon0: Position, time_interval: float = 300.0) bool[source]

Find if path is crossing land.

Params:

position_1: Ship position in latitude/longitude [rad]. speed: Ship speed [m/s]. course: Ship course [rad]. lat_lon0: Reference point, latitudinal [rad] and longitudinal [rad]. time_interval: The time interval the vessel should travel without crossing land [sec]

Returns:

is_on_land

Return type:

True if parts of the path crosses land.