From 8a563b4df17f2c9bf0c8aa6c08abea5474d522c8 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 11 三月 2023 14:31:50 +0800
Subject: [PATCH] 1

---
 ExportMap/Sources/xyz.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ExportMap/Sources/xyz.py b/ExportMap/Sources/xyz.py
index fff5285..e237eab 100644
--- a/ExportMap/Sources/xyz.py
+++ b/ExportMap/Sources/xyz.py
@@ -120,21 +120,22 @@
 
 
 # 鑾峰彇XYZ鍙傛暟
-def getXYZOps(args, level):
+def getXYZOps(args):
     return {
         'BACKGROUND_COLOR': QColor(0, 0, 0, 0),
         'DPI': 96,
         'EXTENT': args.ext,
         'METATILESIZE': 4,
         'OUTPUT_DIRECTORY': args.out,
-        'OUTPUT_HTML': args.out + "\\view.html" if args.min == level else 'TEMPORARY_OUTPUT',
+        # 'OUTPUT_HTML': 'TEMPORARY_OUTPUT',
+        'OUTPUT_HTML': args.out + "\\view.html",
         'QUALITY': 100,
         'TILE_FORMAT': 0,
         'TILE_HEIGHT': 256,
         'TILE_WIDTH': 256,
         'TMS_CONVENTION': True,
-        'ZOOM_MAX': level,
-        'ZOOM_MIN': level
+        'ZOOM_MAX': args.max,
+        'ZOOM_MIN': args.min
     }
 
 
@@ -142,10 +143,9 @@
 def createXYZ(args):
     import processing
 
-    for i in range(args.min, args.max + 1):
-        ops = getXYZOps(args, i)
-        print(ops)
-        processing.run("qgis:tilesxyzdirectory", ops)
+    ops = getXYZOps(args)
+    print(ops)
+    processing.run("qgis:tilesxyzdirectory", ops)
 
 
 # 鍒濆鍖�

--
Gitblit v1.9.3