cartagen.collapse_roundabouts#
- collapse_roundabouts(roads, roundabouts, crossroads=None, maximum_diameter=None)#
Collapse roundabouts to a point.
This algorithm proposed by Touya [1] collapses roundabouts to a point if their diameter is below the given value.
- Parameters:
roads (
GeoDataFrameofLineString) – Road network where roundabouts will be collapsed.roundabouts (
GeoDataFrameofPolygon) – Polygons representing the faces of the network detected as roundabouts.crossroads (
GeoDataFrameofPolygon, optional) – Polygons representing the faces of the network detected as branching crossroads. This allows incoming branching crossroads on roundabouts to be collapsed as well.maximum_diameter (
float, optional) – Diameter, in meter, below which roundabouts are collapsed. Collpase all roundabouts if left to None.
- Returns:
Warning
Detecting branching crossroads beforehand is important as a branching crossroad may be an entrance to a roundabout. This algorithm will collapse the roundabout as well as all its connected branching crossroads.
See also
detect_roundaboutsDetect roundabouts inside the road network.
detect_branching_crossroadsDetect branching crossroads inside the road network.
collapse_branching_crossroadsCollapse branching crossroads to a point.
References