feat: 提升汇总TIF输出清晰度

This commit is contained in:
RBP15P
2026-07-19 13:01:26 +08:00
parent 88f05eb90c
commit 1e0b655f04
4 changed files with 19 additions and 4 deletions
+5
View File
@@ -149,6 +149,11 @@ class OutputSafetyTest(unittest.TestCase):
self.assertLessEqual(layout[6] * layout[7], 100)
self.assertGreater(layout[8], 1.0)
def test_summary_raster_layout_uses_independent_pixel_limit(self):
layout = main.market_raster_layout((0, 0, 10, 10), 0.1, 0.1, 400)
self.assertLessEqual(layout[6] * layout[7], 400)
self.assertEqual((layout[6], layout[7]), (20, 20))
def test_zip_output_is_complete(self):
with tempfile.TemporaryDirectory() as temp_dir:
root = Path(temp_dir)