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

        mx = lon * self.originShift / 180.0
        my = math.log(math.tan((90 + lat) * math.pi / 360.0)) / (math.pi / 180.0)

        my = my * self.originShift / 180.0
        return mx, my
def LatLonToMeters ( self , lat , lon ) : mx = lon * self . originShift / 180.0 my = math . log ( math . tan ( ( 90 + lat ) * math . pi / 360.0 ) ) / ( math . pi / 180.0 ) my = my * self . originShift / 180.0 return mx , my