(
        self,
        tx,
        ty,
        zoom,
        )
return quadKey
Converts TMS tile coordinates to Microsoft QuadTree
Converts TMS tile coordinates to Microsoft QuadTree
Converts TMS tile coordinates to Microsoft QuadTree
def QuadTree(
        self,
        tx,
        ty,
        zoom,
        ):
        '''Converts TMS tile coordinates to Microsoft QuadTree'''

        quadKey = ''
        ty = 2 ** zoom - 1 - ty
        for i in range(zoom, 0, -1):
            digit = 0
            mask = 1 << i - 1
            if tx & mask != 0:
                digit += 1
            if ty & mask != 0:
                digit += 2
            quadKey += str(digit)

        return quadKey
def QuadTree ( self , tx , ty , zoom , ) : quadKey = '' ty = 2 ** zoom - 1 - ty for i in range ( zoom , 0 , - 1 ) : digit = 0 mask = 1 << i - 1 if tx & mask != 0 : digit += 1 if ty & mask != 0 : digit += 2 quadKey += str ( digit ) return quadKey