diff --git a/ats/verify/simulation/wayside/memory/wayside_simulation.go b/ats/verify/simulation/wayside/memory/wayside_simulation.go index 1ce402d..1e5b785 100644 --- a/ats/verify/simulation/wayside/memory/wayside_simulation.go +++ b/ats/verify/simulation/wayside/memory/wayside_simulation.go @@ -493,11 +493,11 @@ func findTurnoutIds(axleCountingMap map[string]*graphicData.AxleCounting, axleId func buildKmConverts(ksList []*graphicData.KilometerSystem) []*proto.KilometerConvert { var kmConverts []*proto.KilometerConvert for i, ks := range ksList { - if ks.Kilometer == 0 { + if ks.Kilometer == 0 || ks.CoordinateSystem == "" { continue } for j := i + 1; j < len(ksList); j++ { - if ks.Kilometer == 0 { + if ksList[j].Kilometer == 0 || ksList[j].CoordinateSystem == "" { continue } kmConverts = append(kmConverts, buildKmConvert(ks, ksList[j]))