管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-08-04 b2c0a435266a00bbd71d562bcd41f2ec311898db
1
已修改2个文件
16 ■■■■■ 文件已修改
ExportMap/cs/XYZUtils.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/export.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ExportMap/cs/XYZUtils.cs
@@ -86,19 +86,19 @@
            string dateStr = ExportUtil.DateStr;
            //string batFile = Path.Combine(BatPath, dateStr + ".bat");
            string tifFile = Path.Combine(Tools.TempDir, ExportUtil.DateStr + ".txt");
            string txtFile = Path.Combine(Tools.TempDir, ExportUtil.DateStr + ".txt");
            string xyzPath = Path.Combine(SGUtils.LFData, "2d\\tiles", args.dircode);
            //if (args.isNew && Directory.Exists(xyzPath)) Tools.DelPath(xyzPath); // 已存在的,删除
            if (!Directory.Exists(xyzPath)) Directory.CreateDirectory(xyzPath);
            WriteText(tifFile, list);
            WriteText(txtFile, 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);
            string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\" -min {4} -max {5} -noData {6}", PyFile, Qgz, txtFile, xyzPath, args.min, args.max, args.noData);
            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);
            if (File.Exists(txtFile)) File.Delete(txtFile);
            List<int> ids = new List<int>();
            string viewFile = Path.Combine(xyzPath, "view.html");
ExportMap/export.html
@@ -10,7 +10,11 @@
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <script src="js/jquery.1.12.4.js"></script>
  <script>
    var token = "04f00381-cefa-4a57-8b08-899d02814545";
    var token = "2befc513-49b6-45e9-8c22-4909e08c7e44";
    $(function () {
      $("#token").html(token);
    });
    // Ajax
    function ajax(url, type, data, dataType, contentType, fn) {
@@ -189,7 +193,7 @@
  </script>
</head>
<body>
  <h2>出图测试</h2>
  <h2>Toekn:<span id="token" style="font-size: 14px;"></span></h2>
  <select id="selectPage">
    <option>A0</option>
    <option>A1</option>