kantooon / qradiopredict

Radio propagation prediction and simulation tool for VHF-UHF
3 stars 1 forks source link

SRTM reader does not work well in negative positions #1

Open muhammetasan opened 8 years ago

muhammetasan commented 8 years ago

I am using srtmreader class. When I set coordinates to

(-23.4,34.3)
_latitude_secs = -46.399999999999999

and in readHeight() function

unsigned temp_row = (unsigned) round(_latitude_secs *3600/3); where temp_row is expected be row number in binary file but its value is 4294911616in 1201*1201file.

kantooon commented 8 years ago

Thank you for reporting this, it is likely there is bug in the math code which converts the coordinates. I will investigate this issue. Tracking it under the other repository.