M
Mike
After doing some research, it looks like in order to accurately store the
latitude and longitude of a point I must use an 8 byte (64 bits) floating
point variable for each of the coordinates. This would mean that to store
one point (latitude and longitude) I will need a total of 16 bytes (128
bits).
I came up with this conclusion after trying to parse some GPS coordinates
into a 4 Byte (32-bits) variable and noticing that the value was being
rounded.
The thing that bothers is that I took a look at the Garmin dlls that are
used to communicate with their GPS devices and notice that the dll returns
the coordinates using a 4-Byte value (32-bits), but then if I look at the
files generated by the devises after saving the track points I notice that
the track points are saved on the file needing an 8-Byte (64-Bit) variable.
I am sure that the accuracy for GPS is not really that big between using a 4
or 8 byte variables to store this points but I was wondering if anyone could
tell me what is the correct storage size that it should be used when storing
this values.
Any links explaining the subjects are appreciated.
Thanks.
latitude and longitude of a point I must use an 8 byte (64 bits) floating
point variable for each of the coordinates. This would mean that to store
one point (latitude and longitude) I will need a total of 16 bytes (128
bits).
I came up with this conclusion after trying to parse some GPS coordinates
into a 4 Byte (32-bits) variable and noticing that the value was being
rounded.
The thing that bothers is that I took a look at the Garmin dlls that are
used to communicate with their GPS devices and notice that the dll returns
the coordinates using a 4-Byte value (32-bits), but then if I look at the
files generated by the devises after saving the track points I notice that
the track points are saved on the file needing an 8-Byte (64-Bit) variable.
I am sure that the accuracy for GPS is not really that big between using a 4
or 8 byte variables to store this points but I was wondering if anyone could
tell me what is the correct storage size that it should be used when storing
this values.
Any links explaining the subjects are appreciated.
Thanks.