pymead.utils.geometry.convert_numpy_array_to_shapely_LineString#

convert_numpy_array_to_shapely_LineString(arr: ndarray)[source]#

Converts a 2-D numpy array of \(x\)-\(y\) coordinates to a LineString.

Parameters:

arr (np.ndarray) – 2-D array of \(x\)-\(y\) coordinates

Returns:

Geometric object defined by a set of points connected, in order, by lines.

Return type:

shapely.geometry.LineString