... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decimal formatting in GPX 1.0 and 1.1
#3
> Did the case that a double isNaN() really occur with your files? 
> Why didn't you introduce a method to check double for null and isNaN()?

For GPX 1.1 I introduced two new formatting functions formatSpeedAsDouble() and formatTemperatureAsDouble(), which call formatDouble, which returns NaN in case of null. Because of that I had to fix isEmpty(), reorganize setting the value (maybe not necessary) and added some additional checks for isNaN (again maybe not necessary).

> Why did you increase the accuracy of elevation to centimeters when it's decimals at best?

I just set the same accuracy as it was already set in formatElevationAsString() (= 2). Maybe both should be at 1 then?
Reply


Messages In This Thread
RE: Decimal formatting in GPX 1.0 and 1.1 - by mrihtar - 16.10.2017, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)