Merge branch 'master' of https://git.code.tencent.com/jl-framework/rtss_simulation
This commit is contained in:
commit
26dd2c9127
@ -1 +1 @@
|
||||
Subproject commit 200352eb58f1704a741d367e3c8afd02ae492b58
|
||||
Subproject commit 7ce0d9aa7bf6cbbf045ef3aa57ec14d43a742906
|
@ -1,8 +1,6 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"joylink.club/rtsssimulation/repository/model/proto"
|
||||
)
|
||||
|
||||
@ -33,9 +31,9 @@ func convertKilometer(repo *Repository, km *proto.Kilometer, cs string) (*proto.
|
||||
} else {
|
||||
value = targetCsKm.Value - offset
|
||||
}
|
||||
if value < 0 {
|
||||
return nil, errors.New(fmt.Sprintf("公里标[%s]转换为坐标系[%s]的公里标的值[%d]小于0", km, cs, value))
|
||||
}
|
||||
//if value < 0 {
|
||||
// return nil, errors.New(fmt.Sprintf("公里标[%s]转换为坐标系[%s]的公里标的值[%d]小于0", km, cs, value))
|
||||
//}
|
||||
return &proto.Kilometer{
|
||||
Value: value,
|
||||
CoordinateSystem: cs,
|
||||
|
Loading…
Reference in New Issue
Block a user