From b4b2080e4be9bf244fc4ede52f7cf890f28df325 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 29 六月 2023 11:30:31 +0800 Subject: [PATCH] 1 --- ExportMap/Sources/merge.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ExportMap/Sources/merge.py b/ExportMap/Sources/merge.py index b0552f5..f9907bc 100644 --- a/ExportMap/Sources/merge.py +++ b/ExportMap/Sources/merge.py @@ -68,6 +68,12 @@ print("authid: " + args.authid) prj.setCrs(layer.crs()) + # for j in range(1, layer.bandCount() + 1): + # try: + # layer.dataProvider().setNoDataValue(j, 0) + # except Exception as e: + # print(e) + prj.addMapLayer(layer) @@ -81,8 +87,8 @@ 'INPUT': layers, 'DATA_TYPE': 5, 'OUTPUT': args.out, - 'NODATA_INPUT': 0, - 'NODATA_OUTPUT': 0, + # 'NODATA_INPUT': 0, + # 'NODATA_OUTPUT': 0, 'OPTIONS': '' } print(ops) -- Gitblit v1.9.3