Closed gillins closed 8 years ago
Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).
Thanks Sam. Yes, that was it. Weird. That fixes the problem of the NUMBER_OF_POINTS field suddenly turning into a float, which is good. Sadly, this does not in turn fix the mysterious problem of the number of points changing slightly when after running through pylidar_index, so apparently this is a separate question. I don't even know for certain that it is a problem, but it would be nice to know why that happens. Anyway, this issue is fixed, so I am closing it off.
Original report by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).
Somewhere in the conversion from a Riegl rxp file to an SPD V4 file, the NUMBER_OF_POINTS gets converted to a float64. This is likely to be problematic. It is defined in the format as uint64, and so this means that at some point in the process, there is an implicit type conversion going on. This is unlikely to be handling precision in the right ways, and I suspect it responsible for a loss of precision when the number of points is large. The same type conversion appears to also occur in conversion from .las to SPD V4. NUMBER_OF_PULSES also appears to undergo the same type conversion.