Talk:Toolserver:Ghel

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

Longitudes should be given modulo 360deg[edit]

mysql> select MIN(gc_lon), MAX(gc_lon) from coord_enwiki limit 1000;
+---------------+--------------+
| MIN(gc_lon)   | MAX(gc_lon)  |
+---------------+--------------+
| -360.00000000 | 360.00000000 |
+---------------+--------------+
1 row in set (5.14 sec)

Or is there a reason they are given in raw form? --Dschwen 14:18, 24 March 2011 (UTC)

Coordinate systems for non-earth planets can use the extended range [-360,360] due to convention. If abs(lon) >= 1000 or abs(lat) >= 100, we assume that the decimal point was misplaced and shifts appropriately rather than using a modulo, since the majority of cases are input errors. I may consider adding more conditions so the range are within -90 <= lat <= 90 and -180 <= lon <= 180. Dispenser