(self, lat, lon, zoom)
return px, py
Converts lat/lon to pixel coordinates in given zoom of the EPSG:4326 pyramid
Converts lat/lon to pixel coordinates in given zoom of the EPSG:4326 pyramid
Converts lat / lon to pixel coordinates in given zoom of the EPSG : 4326 pyramid
def LatLonToPixels(self, lat, lon, zoom):
        "Converts lat/lon to pixel coordinates in given zoom of the EPSG:4326 pyramid"

        res = 180 / 256.0 / 2 ** zoom
        px = (180 + lat) / res
        py = (90 + lon) / res
        return px, py
def LatLonToPixels ( self , lat , lon , zoom ) : res = 180 / 256.0 / 2 ** zoom px = ( 180 + lat ) / res py = ( 90 + lon ) / res return px , py