Hi Andrzej,

if you want to try this:
you can easily change the code in interpolatedHeight to return the height in 
feet, just make sure that you don't convert UNDEF.

The only other change that is needed is  in this line in DemHeader:
writer.putInt(0); // 0: elevation in metres, 1: foot

well, the comment should say feet , not foot

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-boun...@lists.mkgmap.org.uk> im Auftrag von Frank 
Stinner <frank.stin...@kabelmail.de>
Gesendet: Mittwoch, 10. Januar 2018 17:27:22
An: mkgmap-dev@lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] HGT - getElevation()

Hi Gerd and Andrzej,

i think "overkill" is a good word.

For algorithm that'a only numbers, it does not matter. The questions is, how 
exact are the hgt-values. We don't know that, but i don't believe it is
+-1m or so. I'm not wondering, when the hgt's have +-5m or +-10m. The 
copernicus-data have +-7m and i don't believe the technic was worse.

That's why feets are overkill. The numbers are 3 times greater, that's why the 
dem's are greater. It's not worth it.


Frank

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to