Skip to content

Commit fc6bb6d

Browse files
fix: BD09MCtoBD09 error when latitude < 0 (#236)
1 parent e5cd146 commit fc6bb6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crs/BD09MC.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function BD09MCtoBD09(coord: Position): Position {
103103
const [x, y] = coord;
104104
let factors: number[] = [];
105105
for (let i = 0; i < MCBAND.length; i++) {
106-
if (y >= MCBAND[i]) {
106+
if (Math.abs(y) >= MCBAND[i]) {
107107
factors = MC2LL[i];
108108
break;
109109
}

0 commit comments

Comments
 (0)