Skip to content

Commit

Permalink
fix: solves bug which resulted in wrong geohashes
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusWallin committed Mar 3, 2024
1 parent 2a8d131 commit 69ca9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/esri/core/geometry/Geohash.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public static String[] coveringGeohash(Envelope2D envelope) {
} else {
for (int i = 0; i < deltaLon; i++){
for (int j = 0; j < deltaLat; j++){
Point2D p = new Point2D(gridMinLon + i * grid, gridMinLat + j * grid);
Point2D p = new Point2D(xmin + i * grid, ymin + j * grid);
geoHashes[i*deltaLat + j] = toGeohash(p, 1);
}
}
Expand Down

0 comments on commit 69ca9c0

Please sign in to comment.