(self, pixelSize)
Maximal scaledown zoom of the pyramid closest to the pixelSize.
Maximal scaledown zoom of the pyramid closest to the pixelSize.
Maximal scaledown zoom of the pyramid closest to the pixelSize .
def ZoomForPixelSize(self, pixelSize):
        '''Maximal scaledown zoom of the pyramid closest to the pixelSize.'''

        for i in range(MAXZOOMLEVEL):
            if pixelSize > self.Resolution(i):
                if i != 0:
                    return i - 1
                else:
                    return 0
def ZoomForPixelSize ( self , pixelSize ) : for i in range ( MAXZOOMLEVEL ) : if pixelSize > self . Resolution ( i ) : if i != 0 : return i - 1 else : return 0