From 7daa8ef85ee1efb60f7d993602f42baaa105ac8f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 21 六月 2023 16:40:57 +0800 Subject: [PATCH] 1 --- ExportMap/export.html | 10 ++++++++++ ExportMap/cs/LasUtils.cs | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ExportMap/cs/LasUtils.cs b/ExportMap/cs/LasUtils.cs index 09eb78f..dacb29f 100644 --- a/ExportMap/cs/LasUtils.cs +++ b/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)) diff --git a/ExportMap/export.html b/ExportMap/export.html index dd6ab7c..52f285c 100644 --- a/ExportMap/export.html +++ b/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> -- Gitblit v1.9.3