mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix bugf
This commit is contained in:
parent
169bc95d83
commit
4b71831822
@ -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精准问题及转换bug(pr#551@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.7.21 (2022-02-14)
|
# 5.7.21 (2022-02-14)
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user