|
|
@@ -123,6 +123,7 @@ public class CommonService {
|
|
|
}
|
|
|
|
|
|
private static final Long equatorial_circumference = 40075020000L;
|
|
|
+ private static final Long LATITUDE_REFERENCE = 111000000L;
|
|
|
|
|
|
@Autowired
|
|
|
KwsDeviceReferenceMapper deviceReferenceMapper;
|
|
|
@@ -142,7 +143,7 @@ public class CommonService {
|
|
|
}
|
|
|
BigDecimal subtract = new BigDecimal(value).subtract((deviceRelation == null ? new BigDecimal("0.00") : deviceRelation.getCurrentValue()));
|
|
|
if (DictItemEnum.LATITUDE_Y.getValue().equals(itemName)) {
|
|
|
- offsetValue = new BigDecimal(equatorial_circumference).multiply(subtract);
|
|
|
+ offsetValue = new BigDecimal(LATITUDE_REFERENCE).multiply(subtract);
|
|
|
}
|
|
|
double angleInRadians = 0;
|
|
|
if (DictItemEnum.LONGITUDE_X.getValue().equals(itemName)) {
|
|
|
@@ -177,7 +178,7 @@ public class CommonService {
|
|
|
}
|
|
|
BigDecimal subtract = new BigDecimal(value).subtract((deviceRelation == null ? new BigDecimal("0.00") : deviceRelation.getOriginalValue()));
|
|
|
if (DictItemEnum.LATITUDE_Y.getValue().equals(itemName)) {
|
|
|
- offsetValue = new BigDecimal(equatorial_circumference).multiply(subtract);
|
|
|
+ offsetValue = new BigDecimal(LATITUDE_REFERENCE).multiply(subtract);
|
|
|
}
|
|
|
double angleInRadians = 0;
|
|
|
if (DictItemEnum.LONGITUDE_X.getValue().equals(itemName)) {
|