[Xastir] MGRS/Maidenhead grid squares.
Tapio Sokura
oh2kku at iki.fi
Sat Jan 8 05:48:31 EST 2005
James Ewen wrote:
> The grid lines fall exactly where they should to outline the Maidenhead grid
> squares...
I just noticed that the Maidenhead grid calculation in Xastir is
slightly incorrect. For example when I zoom close to 60N/20E crossing
the status line says 20E, 59 deg 59.983 min N is already KP00AA, but it
should be KO09AX right upto 59 deg 59.999 minutes N (the change happens
between 59.982 and 59.983). This seems to be visible on any south-north
maidenhead border, the change happens 0.017 minutes too soon (use zoom
level 1).
East-west direction calculation seems to be ok, the change happens right
at the degree border.
I ran into this error as I was thinking about adding two more characters
to the maidenhead grid square calculation to make it 8 characters. I did
it by changing a few lines of sec_to_loc function in util.c, but on
display it didn't look nice so I'm not going to suggest expanding the
calculation to 8 characters. If one wants to know his locator with
better accuracy than 6 characters, I guess he won't be using Xastir
anyway for that.
Tapio
More information about the Xastir
mailing list