It seems that all the bus routes are contiguous, but I'm not sure of it. I'm trying to use python shapely to dissolve all those LineStrings but I get the following errors:
TopologyException: found non-noded intersection between LINESTRING (193929 -48233.6, 193930 -48234) and LINESTRING (193930 -48233.8, 193930 -48234) at 193929.98210726795 -48233.983282576017 ... ValueError: No Shapely geometry can be created from null value
This is my code:
with fiona.open(src, 'r') as ds_in: crs = ds_in.crs drv = ds_in.driver #combine lines into multiString lines =  for feature in ds_in: geom = geometry.shape(feature['geometry']) if geom is not None and geom.is_valid: lines.append(geom) dissolved = ops.unary_union(lines
I'm trying to understand whether the TopologyException is critical and why I get the error after that. When printing the geometries, I don't see Nulls or missing data.
Other posts deal with polygons, but with linestring a buffer isn't an applicable solution.