cartagen.strokes_rivers#
- strokes_rivers(rivers, attribute=None, angle=45.0, angle_sum=30.0)#
Calculate strokes inside a river network.
This algorithm is based on the ‘Good Continuation’ principle as defined by Thomson & Richardson. [1] It defines strokes, which are segments that follow this perceptual grouping also known as Gestalt’s principle.
- Parameters:
roads (
GeoDataFrameofLineString) – The roads to calculate the strokes from.attribute (
str) – The attribute to help the derivation of continuity.angle (
float, optional) – Thresholds for the maximum angle between two segments at the junction of two sections belonging to the same stroke.angle_sum (
float, optional) – Thresholds for the maximum angle between two sections belonging to the same stroke.
- Returns:
See also
strokes_roadsCalculate strokes inside a road network.
References