This commit is contained in:
Looly 2022-02-24 11:37:51 +08:00
parent 169bc95d83
commit 4b71831822
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# 🚀Changelog # 🚀Changelog
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.7.22 (2022-02-23) # 5.7.22 (2022-02-24)
### 🐣新特性 ### 🐣新特性
* 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性issue#I4TJF4@gitee * 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性issue#I4TJF4@gitee
@ -20,6 +20,7 @@
* 【core 】 修复SystemPropsUtil.getInt返回long问题pr#546@Gitee * 【core 】 修复SystemPropsUtil.getInt返回long问题pr#546@Gitee
* 【crypto 】 修复SM2.getD前导0问题pr#2149@Github * 【crypto 】 修复SM2.getD前导0问题pr#2149@Github
* 【core 】 修复ChineseDate在1970年之前农历差一天问题issue#I4UTPK@Gitee * 【core 】 修复ChineseDate在1970年之前农历差一天问题issue#I4UTPK@Gitee
* 【core 】 修复CoordinateUtil精准问题及转换bugpr#551@Gitee
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.7.21 (2022-02-14) # 5.7.21 (2022-02-14)

View File

@ -167,7 +167,7 @@ public class CoordinateUtil {
dlng = (dlng * 180.0) / (RADIUS / sqrtMagic * Math.cos(lat / 180.0 * PI) * PI); dlng = (dlng * 180.0) / (RADIUS / sqrtMagic * Math.cos(lat / 180.0 * PI) * PI);
dlat = (dlat * 180.0) / ((RADIUS * (1 - CORRECTION_PARAM)) / (magic * sqrtMagic) * PI); dlat = (dlat * 180.0) / ((RADIUS * (1 - CORRECTION_PARAM)) / (magic * sqrtMagic) * PI);
if(!isPlus){ if(false == isPlus){
dlng = - dlng; dlng = - dlng;
dlat = - dlat; dlat = - dlat;
} }