From b007343f6c5d58845207374b969e1c3761213cbd Mon Sep 17 00:00:00 2001 From: "Steven D. Lander" Date: Thu, 25 Jul 2013 15:32:34 -0400 Subject: [PATCH] Switched res factors. --- gdal/swig/python/scripts/gdal2tiles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdal/swig/python/scripts/gdal2tiles.py b/gdal/swig/python/scripts/gdal2tiles.py index 51e5c2465517..25c44c1ccc95 100755 --- a/gdal/swig/python/scripts/gdal2tiles.py +++ b/gdal/swig/python/scripts/gdal2tiles.py @@ -355,13 +355,13 @@ class GlobalGeodetic(object): def __init__(self, tmscompatible, tileSize = 256): self.tileSize = tileSize if tmscompatible is not None: - # Defaults the resolution factor to 1.40625 (1 tile @ level 0) - # Adheres OpenLayers, MapProxy, etc default resolution for TMS - self.resFact = 180.0 / self.tileSize - else: # Defaults the resolution factor to 0.703125 (2 tiles @ level 0) # Adhers to OSGeo TMS spec http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification#global-geodetic self.resFact = 360.0 / self.tileSize + else: + # Defaults the resolution factor to 1.40625 (1 tile @ level 0) + # Adheres OpenLayers, MapProxy, etc default resolution for TMS + self.resFact = 180.0 / self.tileSize def LatLonToPixels(self, lat, lon, zoom): "Converts lat/lon to pixel coordinates in given zoom of the EPSG:4326 pyramid"