Skip to content

Commit

Permalink
fix: BD09MCtoBD09 error when latitude < 0 (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaofunchengfeng authored Jan 14, 2025
1 parent e5cd146 commit fc6bb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crs/BD09MC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function BD09MCtoBD09(coord: Position): Position {
const [x, y] = coord;
let factors: number[] = [];
for (let i = 0; i < MCBAND.length; i++) {
if (y >= MCBAND[i]) {
if (Math.abs(y) >= MCBAND[i]) {
factors = MC2LL[i];
break;
}
Expand Down

0 comments on commit fc6bb6d

Please sign in to comment.