From d5be9e1de1a76c4f842a87035c1d5eea1faaeb2f Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 15 七月 2023 15:40:00 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/LasUtils.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ExportMap/cs/LasUtils.cs b/ExportMap/cs/LasUtils.cs
index 431c67b..72ba74a 100644
--- a/ExportMap/cs/LasUtils.cs
+++ b/ExportMap/cs/LasUtils.cs
@@ -43,8 +43,9 @@
                 string uploadFolder = Tools.GetSetting("uploadFolder");
 
                 List<int> ids = new List<int>();
-                foreach (SysMeta meta in list)
+                for (int i = 0, c = list.Count; i < c; i++)
                 {
+                    SysMeta meta = list[i];
                     string lasPath = Path.Combine(uploadFolder, meta.path);
                     if (!File.Exists(lasPath)) continue;
 
@@ -55,7 +56,8 @@
                     if (!Directory.Exists(outPath)) Directory.CreateDirectory(outPath);
                     if ("laz" == meta.type) lasPath = toLas(lasPath, Path.Combine(outPath, meta.id + ".las"));
 
-                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srid, args.z);
+                    int srid = args.srids[i];
+                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, srid, args.z);
                     err = Tools.ExecCmd(cmd, false, false);
 
                     string jsonFile = findTileset(meta, outPath);

--
Gitblit v1.9.3