The invention discloses a road shape
processing method and a related device, aiming at adjacent roads in a road network of an
electronic map, road segment data referring to a road segment pair is acquired, and the road segment pair comprises a first road segment and a second road segment which belong to two adjacent roads respectively. The method comprises the following steps: firstly, sampling a distance of a road segment pair in an overlapped part to obtain N sampling distances, and performing numerical adjustment on the N sampling distances by taking distance change smoothness of adjacent sampling distances as an adjustment target; the width value of each group of adjacent adjusted sampling distance is smoothly changed, and is not greatly different from the original sampling distance, so that the method can better fit the actual
road condition, is favorable for accurately identifying the road, and avoids
confusion or misjudgment of adjacent roads. The shape of the
boundary line segment can be accurately calibrated based on the N adjusted sampling distances, and the adjacent road is drawn in the
electronic map based on the generated road shape parameters, so that the shape
distortion of the road can be avoided, and the rendering accuracy is improved.