nathanielwarner / flightgear-photoscenery

FlightGear - PhotoScenery Edition
GNU General Public License v2.0
19 stars 6 forks source link

Fix tile width error near southern width change lines, notably between 21°S and 22°S. #13

Closed lacouture closed 1 year ago

lacouture commented 2 years ago

At negative latitudes, near tile width change lines, the tile width is miscalculated. This leads to shifted tile coordinates and downloading the wrong tiles.

The most problematic locations are between -21 and -22 °S. It can be seen easily in places like La Reunion or Mackay Airport, Australia (tile id 5394737).

It must occur in the Antarctic as well, although no one cares.

This fix has been tested in the following places:

Attached are two screenshots over Mackay Airport, with and without the fix. Without the fix, the aerial photo is of a nearby patch of ocean.

fgfs-20211218220315 fgfs-20211218215042

Please note that I tested this fix only with the Arcgis source.

nathanielwarner commented 1 year ago

Thank you! Sorry it took so long for me to see this.