| | |
| | | |
| | | 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"); |
| | |
| | | <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) { |
| | |
| | | </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> |