map2loop.utils.find_segment_strike_from_pt#

map2loop.utils.find_segment_strike_from_pt(line: LineString, point: Point, measurement: Series) float#

Finds the strike of a line segment (contact) closest to a given point (structural measurement).

Parameters: line (shapely.geometry.LineString): The line segment (from sampled_contacts) point (shapely.geometry.Point): The point representing the structural measurement measurement (Geoseries): sampled_contacts.iloc[i, :], where i is a given row number.

Returns: float: The strike of the line segment closer to the point