管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-06-21 7daa8ef85ee1efb60f7d993602f42baaa105ac8f
1
已修改2个文件
16 ■■■■ 文件已修改
ExportMap/cs/LasUtils.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/export.html 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/LasUtils.cs
@@ -45,8 +45,8 @@
                List<int> ids = new List<int>();
                foreach (SysMeta meta in list)
                {
                    string osgbPath = Path.Combine(uploadFolder, meta.path);
                    if (!Directory.Exists(osgbPath)) continue;
                    string lasPath = Path.Combine(uploadFolder, meta.path);
                    if (!File.Exists(lasPath)) continue;
                    meta.ismeta = 0; // 0-倾斜摄影数据
                    string outPath = GetPath(meta.id);
@@ -56,7 +56,7 @@
                    if (!Directory.Exists(outPath)) Directory.CreateDirectory(outPath);
                    if (File.Exists(jsonFile)) File.Delete(jsonFile);
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, osgbPath, outPath, args.srid, args.z);
                    string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srid, args.z);
                    err = Tools.ExecCmd(cmd, false, false);
                    if (File.Exists(jsonFile))
ExportMap/export.html
@@ -137,6 +137,15 @@
        console.log(rs);
      });
    }
    // 测试Las
    function toLas() {
      var data = { token: token, ids: [7188], depcode: "00", dircode: "0C", userId: 1, name: "HL_point_cloud_part_1.las" };
      ajax("Convert/ToLas", "POST", JSON.stringify(data), null, null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
      });
    }
  </script>
</head>
<body>
@@ -159,5 +168,6 @@
  <input type="button" value="测试SG" onclick="toSG();" />
  <input type="button" value="测试Terra" onclick="toTerra();" />
  <input type="button" value="测试OSGB" onclick="toOsgb();" />
  <input type="button" value="测试Las" onclick="toLas();" />
</body>
</html>