in reply to Re^3: Permutation and comparison loop
in thread Permutation and comparison loop
There's no reason to touch latitudes, as they won't ever be outside of the -90 to 90 range.
Satellites that do global imaging tend to fly in polar orbits. So, it possible to imagine an image taken when the sat is directly over the pole, (I think that this is technically infeasible, but they can get pretty damn close), that has coordinates for its four corners:
(85,45) 90 (85,135) +--------|--------+ | | North | | | Pole | | | / | 0/360 +--------0--------+ 180 | | | | | | | | | +--------|--------+ (85,315) 270 (85,225)
If that was represented by the OPs minlat/maxlat, minlon/maxlon system, then you get: nnn, 85, 85, 0, 360 which isn't going to play well for overlap detection.
The simplest fix is to break such transition images into two (or 4) parts:
nnn-a, 85, 90, 0, 180 nnn-b, 85, 90, 180, 360
But even then, the distortions that occur at high latitudes screws the math as soon as you start doing any trig, so spherical coordinates become pretty much de rigueur.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Permutation and comparison loop
by wind (Priest) on Apr 21, 2011 at 14:05 UTC | |
by BrowserUk (Patriarch) on Apr 21, 2011 at 15:21 UTC |