def get_cheap_bounding_pyramid(self): bounds = {} for z, xstart, xstop, ystart, ystop in query(self.connection, self.BOUNDING_PYRAMID_SQL): bounds[z] = (Bounds(xstart, xstop), Bounds(ystart, ystop)) return BoundingPyramid(bounds)
def set_metadata_zooms(self): for minzoom, maxzoom in query(self.connection, self.SET_METADATA_ZOOMS_SQL): self.metadata["minzoom"] = minzoom self.metadata["maxzoom"] = maxzoom
def set_metadata_zooms(self): for minzoom, maxzoom in query(self.connection, self.SET_METADATA_ZOOMS_SQL): self.metadata['minzoom'] = minzoom self.metadata['maxzoom'] = maxzoom
def get_cheap_bounding_pyramid(self): bounds = {} for z, xstart, xstop, ystart, ystop in query( self.connection, self.BOUNDING_PYRAMID_SQL): bounds[z] = (Bounds(xstart, xstop), Bounds(ystart, ystop)) return BoundingPyramid(bounds)