logo separator

[mkgmap-dev] HGT - getElevation()

From Andrzej Popowski popej at poczta.onet.pl on Tue Jan 9 12:26:48 GMT 2018


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,

More information about the mkgmap-dev mailing list