管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-08-03 e6555dde4f10cf34fe393d80f438b5ac2bb0a2d9
1
已修改4个文件
15 ■■■■■ 文件已修改
ExportMap/cs/LasUtils.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/OsgbUtils.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/TerraUtils.cs 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/XYZUtils.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/LasUtils.cs
@@ -57,7 +57,8 @@
                    int idx = args.ids.IndexOf(meta.id);
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srids[idx], args.zs[idx]);
                    err = Tools.ExecCmd(null, cmd, false);
                    SysTask task = TaskDBHelper.CreateTask(args, meta, "LAS", "点云数据(LAS)");
                    err = Tools.ExecCmd(task, cmd, false);
                    string jsonFile = findTileset(meta, outPath);
                    if ("laz" == meta.type && File.Exists(lasPath)) File.Delete(lasPath);
ExportMap/cs/OsgbUtils.cs
@@ -61,6 +61,7 @@
                    int idx = args.ids.IndexOf(meta.id);
                    string cmd = string.Format("{0}\\3dtile.exe -f osgb -i \"{1}\" -o \"{2}\" -c \"{{\\\"offset\\\": {3}}}\"", d3tilesPath, osgbPath, outPath, args.zs[idx]);
                    SysTask task = TaskDBHelper.CreateTask(args, meta, "OSGB", "倾斜数据(OSGB)");
                    err = Tools.ExecCmd(null, cmd, false);
                    err = null;
ExportMap/cs/TerraUtils.cs
@@ -174,7 +174,9 @@
                }
                string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\"", PyFile, Qgz, txtFile, tifFile);
                err = Tools.ExecCmd(null, cmd, true);
                SysTask task = TaskDBHelper.CreateTask(args, "DEM", "高程镶嵌(DEM)");
                err = Tools.ExecCmd(task, cmd, true);
                if (null == task || task.status != 2) return string.Empty;
                return tifFile;
            }
@@ -260,7 +262,8 @@
            string createLayer = string.Format("{0}\\ctb-tile.exe -l -s {4} -o \"{1}\" -f Mesh \"{2}\\{3}.tif\"", ctbPath, dirPath, dirPath, args.dircode, maxLevel);
            List<string> list = new List<string>() { gdal_data, createMesh, createLayer };
            err = Tools.ExecCmd(null, list);
            SysTask task = TaskDBHelper.CreateTask(args, "DEM", "高程数据(DEM)");
            err = Tools.ExecCmd(task, list);
        }
        /// <summary>
ExportMap/cs/XYZUtils.cs
@@ -94,8 +94,8 @@
            WriteText(tifFile, list);
            string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\" -min {4} -max {5} -noData {6}", PyFile, Qgz, tifFile, xyzPath, args.min, args.max, args.noData);
            err = Tools.ExecCmd(null, cmd, true);
            SysTask task = TaskDBHelper.CreateTask(args, "DOM", "影像数据(DOM)");
            err = Tools.ExecCmd(task, cmd, true);
            //if (File.Exists(batFile)) File.Delete(batFile);
            if (File.Exists(tifFile)) File.Delete(tifFile);