[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc
From: |
Philip Nienhuis |
Subject: |
[Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc |
Date: |
Thu, 30 Jul 2020 16:54:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #9, patch #9958 (project octave):
This condition at L.129:
:
elseif (sind (rad2deg (vect(:, 1))) == sind (rad2deg (vect(:, 4))) &&
sind (rad2deg (vect(:, 2))) == -sind (rad2deg (vect(:, 5))))
warning("gcxgc: Non-unique intersection.\n")
is too simple.
I think the only reliable way to detect coinciding great circles is to compare
the (Lat, Lon) values of their poles at the surface of the sphere (i.e., the
cross product of those polar axes).
Those can easily be deduced by the cross products of the input points and
inferred points e.g., a quarter of the circumference away on the great
circles. Or maybe directly from the given (Lat, Lon) points + azimuths, but I
couldn't find an expression for the latter on the web. (And TBH my own
spherical trig textbook is too thick :-) last time I seriously looked in it
was 45 years ago at high school when I did a navigation project for
geography.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?9958>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, anonymous, 2020/07/20
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/26
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/27
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/27
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, anonymous, 2020/07/27
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/28
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, anonymous, 2020/07/30
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/30
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/30
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc,
Philip Nienhuis <=
- [Octave-patch-tracker] [patch #9958] [octave forge](mapping) gcxgc, Philip Nienhuis, 2020/07/30