管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-07-15 d5be9e1de1a76c4f842a87035c1d5eea1faaeb2f
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);