cartagen.max_break#
- max_break(line, offset, exaggeration=1.0)#
Spread a road bend and keep its shape.
This algorithm was proposed by Mustière. [1] [2] It first finds the side of the road bend and dilates the line on its exterior side.
- Parameters:
line (
LineString) – The line to dilate.offset (
float) – The distance to dilate.exaggeration (
float, optional) – A multiplicator for the offset parameter.
- Returns:
See also
coalescence_splittingSplits a line into parts when coalescence is detected.
min_breakSpread a road bend and minimize its extent.
References
Examples
>>> line = LineString([(0, 0), (3, 3), (6, 0)]) >>> max_break(line, 1.0) <LINESTRING (-0.707 0.707, 2.293 3.707, 2.426 3.819...)>