Commit 3d819a9
wilhel1812
fix: use Math.round for tile latStart/lonStart to handle GeoTIFF FP precision
Copernicus DEM GeoTIFF files for latitude bands N03, N15, and N63 have
ModelTiepoint Y coordinates slightly below the expected integer
(e.g., 63.99999999999999 instead of 64.0). Math.floor(minLat) then
rounded down to the wrong tile index, causing entire latitude bands
of terrain data to be unfindable.
Fixes #8171 parent 1b1af00 commit 3d819a9
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments