
9 Jan
2018
9 Jan
'18
12:26 p.m.
Hi, I have looked at code and get some doubts. File HGTConverter.java, function getElevation(). Shouldn't conversion double -> int use Math.floor? I mean these lines: int row = (int) ((lat32 - minLat32) * FACTOR); int col = (int) ((lon32 - minLon32) * FACTOR); int xLeft = (int) x1; int yBottom = (int) y1; I'm not sure, but I think, you won't get left/bottom value of coordinate for negative number. -- Best regards, Andrzej