Talk:Toolserver:Ghel

Longitudes should be given modulo 360deg
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