Skip to content

Commit 621ad10

Browse files
authored
Backport: Stop after successfully applying grid (#91)
1 parent 5958d3e commit 621ad10

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Fixed
1010
- Fix EquidistantAzimuthalProjection through add geodesic package [#84](https://github.com/locationtech/proj4j/issues/84)
1111
- Fix RobinsonProjection [#87](https://github.com/locationtech/proj4j/issues/87)
12+
- Backport: Stop after successfully applying grid [#91](https://github.com/locationtech/proj4j/pull/91)
1213

1314
## [1.1.5] - 2022-03-25
1415

src/main/java/org/locationtech/proj4j/datum/Grid.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public static void shift(List<Grid> grids, boolean inverse, ProjCoordinate in) {
131131
}
132132

133133
output = nad_cvt(input, inverse, table);
134+
135+
if (!Double.isNaN(output.lam)) break;
134136
}
135137

136138
if (!Double.isNaN(output.lam)) {

0 commit comments

Comments
 (0)