(self, tileSize=256)
Initialize the TMS Global Mercator pyramid
Initialize the TMS Global Mercator pyramid
Initialize the TMS Global Mercator pyramid
def __init__(self, tileSize=256):
        '''Initialize the TMS Global Mercator pyramid'''

        self.tileSize = tileSize
        self.initialResolution = 2 * math.pi * 6378137 / self.tileSize

        # 156543.03392804062 for tileSize 256 pixels

        self.originShift = 2 * math.pi * 6378137 / 2.0
def __init__ ( self , tileSize = 256 ) : self . tileSize = tileSize self . initialResolution = 2 * math . pi * 6378137 / self . tileSize # 156543.03392804062 for tileSize 256 pixels self . originShift = 2 * math . pi * 6378137 / 2.0