def mercator(xy):
 (_x, _y) = xy
 (x, y) = (((pi * _x) / 180), ((pi * _y) / 180))
 y = log(tan(((0.25 * pi) + (0.5 * y))))
 return ((6378137 * x), (6378137 * y))

def mercator ( xy ) : ( _x , _y ) = xy ( x , y ) = ( ( ( pi * _x ) / 180 ) , ( ( pi * _y ) / 180 ) ) y = log ( tan ( ( ( 0.25 * pi ) + ( 0.5 * y ) ) ) ) return ( ( 6378137 * x ) , ( 6378137 * y ) )
project an tuple to spherical mercator .