Add a segment attribute to indicate if it has a discontinuity