cityImage.center_line#

cityImage.center_line(line_geometries)[source]#

Compute a centre line from consistently oriented LineStrings.

The helper is used when duplicate street edges with the same endpoints need to be collapsed while preserving an approximate middle geometry.

Parameters:

line_geometries (list[LineString]) – LineStrings representing comparable edge geometries.

Returns:

Average line geometry using the shortest common coordinate sequence.

Return type:

LineString