(self, mx, my)
return lat, lon
Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
Converts XY point from Spherical Mercator EPSG : 900913 to lat / lon in WGS84 Datum
def MetersToLatLon(self, mx, my):
        "Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum"

        lon = (mx / self.originShift) * 180.0
        lat = (my / self.originShift) * 180.0

        lat = 180 / math.pi * (2 * math.atan(math.exp(lat * math.pi / 180.0)) - math.pi / 2.0)
        return lat, lon
def MetersToLatLon ( self , mx , my ) : lon = ( mx / self . originShift ) * 180.0 lat = ( my / self . originShift ) * 180.0 lat = 180 / math . pi * ( 2 * math . atan ( math . exp ( lat * math . pi / 180.0 ) ) - math . pi / 2.0 ) return lat , lon