From 7ba80e3c6231bd27a7a7fd583244fca1b3d38eb7 Mon Sep 17 00:00:00 2001 From: Matt Kubilus Date: Sun, 8 Oct 2023 14:06:01 -0400 Subject: [PATCH] Cleanup a bit --- autoortho/getortho.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/autoortho/getortho.py b/autoortho/getortho.py index 247a852e..76072b42 100644 --- a/autoortho/getortho.py +++ b/autoortho/getortho.py @@ -825,29 +825,6 @@ def get_best_chunk(self, col, row, mm, zoom): return False - def _get_best_chunk(self, x, y, mm): - for i in range(mm+1, 5): - if i in self.imgs: - # We have an image already - img = self.imgs[i] - - # Difference between requested mm and found image mm level - mmdiff = i - mm - - mm4_x = x >> mmdiff - mm4_y = y >> mmdiff - scalefactor = 1 << mmdiff - - mm_w = 256 >> mmdiff - mm_h = 256 >> mmdiff - - log.debug(f"GET_IMG: {self} Crop: {mm4_x}x{mm4_y} w:{mm_w} h:{mm_h}") - crop_img = AoImage.new('RGBA', (mm_w, mm_h), (0,255,0)) - img.crop(crop_img, (mm4_x, mm4_y)) - chunk_img = crop_img.scale(scalefactor) - return chunk_img - return False - #@profile @locked def get_mipmap(self, mipmap=0):