perependicular_line
cellseg_gsontools.lines.perpendicular_line(line, seg_length)
¶
Create a perpendicular line from a line segment.
Note
Returns an empty line if perpendicular line is not possible from the input.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
line |
LineString
|
Line segment to create a perpendicular line from. |
required |
seg_length |
float
|
Length of the perpendicular line. |
required |
Returns:
Type | Description |
---|---|
LineString
|
shapely.LineString:
Perpendicular line to the input line of length |