Modified polyline to path