logo separator

[mkgmap-dev] HGT - getElevation()

From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Jan 10 14:14:41 GMT 2018

Hi Andrzej,

sorry for my stupid error and thanks for the patch. I kept the double because I compared the results with those from class  InterpolationBilinear,
but I agree this should not be used in the final code.
See http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4043

Maybe I should change all values to int, maybe that is a bit faster.
Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej at poczta.onet.pl>
Gesendet: Mittwoch, 10. Januar 2018 14:33:40
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] HGT - getElevation()

Hi Gerd,

I see you have introduced NO_VAL constant in recent code. Please note,
then my interpolation code can return (double)HGTReader.UNDEF too, when
it returns nearest HGT value, which happened to be void.

I think more clear would be to move Math.round() to
interpolatedHeight(), see attached patch.

--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list