| | |
| | | string imgPath = ExportUtil.Generate(args, ref err); |
| | | if (string.IsNullOrEmpty(imgPath)) |
| | | { |
| | | return ResponseMsg<string>.fail(err); |
| | | return ResponseMsg<string>.fail(null == err ? "生成失败" : err); |
| | | } |
| | | |
| | | return ResponseMsg<string>.success("成功", imgPath); |
| | |
| | | try |
| | | { |
| | | string cmdText = string.Format("python {0} -qgz {1} -qpt {2}", py, qgz, qpt); |
| | | LogOut.Info("cmd = " + cmdText); |
| | | |
| | | Process p = new Process(); |
| | | p.StartInfo.FileName = "cmd.exe"; |
| | |
| | | string imgPath = Path.Combine(DownloadFolder, args.imgPath); |
| | | string templateFile = Path.Combine(SourcesPath, "Template.qpt"); |
| | | string qptFile = Path.Combine(SourcesPath, args.qpt); |
| | | if (File.Exists(qptFile)) |
| | | { |
| | | File.Delete(qptFile); |
| | | } |
| | | LogOut.Info("imgPath = " + imgPath + ", tempFile = " + templateFile + ", qptFile = " + qptFile); |
| | | |
| | | string xml = File.ReadAllText(templateFile); |
| | | xml = xml |
| | |
| | | <title></title> |
| | | <script src="js/jquery.1.12.4.js"></script> |
| | | <script> |
| | | var token = "68af5891-25fe-471e-9883-ab387fe44f86"; |
| | | var token = "37da6489-9286-4cb6-9662-69d464238e9b"; |
| | | |
| | | function ajax(url, type, data, dataType, contentType, fn) { |
| | | $.ajax({ |
| | |
| | | scale: "1:5万", |
| | | resolution: "5米", |
| | | date: "2022.11.09", |
| | | layers: "阀室,管道中心线,矢量注记,矢量图", |
| | | layers: "项目,站场,管道中心线,矢量图", |
| | | rotation: 0, |
| | | xmin: 103.394023, |
| | | ymin: 30.690466, |
| | |
| | | xmax: 112.534648 |
| | | }; |
| | | |
| | | ajax("Export/Start", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | ajax("http://192.168.20.205/ExportMap/Export/Start", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |
| | | }); |
| | |
| | | scale: "1:20万", |
| | | resolution: "20米", |
| | | date: "2022.11.10", |
| | | layers: "站场,管道中心线,高德影像注记,高德影像", |
| | | layers: "项目,站场,管道中心线,影像注记,影像图", |
| | | rotation: 0, |
| | | xmin: 103.394023, |
| | | ymin: 30.690466, |
| | |
| | | </script> |
| | | <script> |
| | | var url = "http://127.0.0.1:12316/server/"; |
| | | var token = "?token=95ba04ee-321b-4bb0-86c7-51a06af212f0"; |
| | | var token = "?token=37da6489-9286-4cb6-9662-69d464238e9b"; |
| | | // 项目,站场,管道中心线,战略通道,矢量图,影像注记,影像图 |
| | | |
| | | function exportMap1() { |
| | |
| | | var app = {}; |
| | | var path = "20230110010101"; |
| | | var url = "http://127.0.0.1:12316/server/"; |
| | | var token = "bb079561-da66-4a68-9fbc-889f50707b82"; |
| | | var token = "37da6489-9286-4cb6-9662-69d464238e9b"; |
| | | |
| | | $(function () { |
| | | $("#pathSpan").html(path); |