From 95d9356edef73a1ad5b04e62b7aef6b77697a226 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 05 九月 2024 10:13:30 +0800 Subject: [PATCH] 1 --- ExportMap/export.html | 102 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 92 insertions(+), 10 deletions(-) diff --git a/ExportMap/export.html b/ExportMap/export.html index 44ee0de..5cd134c 100644 --- a/ExportMap/export.html +++ b/ExportMap/export.html @@ -1,11 +1,20 @@ 锘�<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> + <title>Export</title> + <meta http-equiv="Expires" content="0" /> + <meta http-equiv="Cache" content="no-cache" /> + <meta http-equiv="Pragma" content="no-cache" /> + <meta http-equiv="Cache-control" content="no-cache" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title></title> <script src="js/jquery.1.12.4.js"></script> <script> - var token = "af7f814c-9f3d-4123-af04-70abb7d5a21c"; + var token = "b2657209-38ab-4ce3-af63-e2740bbd9f68"; + + $(function () { + $("#token").html(token); + }); // Ajax function ajax(url, type, data, dataType, contentType, fn) { @@ -77,14 +86,14 @@ // 娴嬭瘯鍒囧浘 function convertXYZ() { - var data = { token: token, ids: [2919, 2920], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" }; + var data = { token: token, ids: [1217], id: 1, min: 4, max: 17, depcode: "00", dircode: "0B", userId: 1, name: "5_A1", noData: 255 }; ajax("Convert/ToTiles", "POST", JSON.stringify(data), null, null, function (rs) { alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); console.log(rs); }); } - // 娴嬭瘯Rvt + // 娴嬭瘯Rvt * function convert1() { var data = { token: token, ids: [1521], depcode: "000305", dircode: "0102", userId: 1 }; ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { @@ -95,7 +104,7 @@ // 娴嬭瘯Fbx function convert2() { - var data = { token: token, ids: [1522], depcode: "000305", dircode: "0102", userId: 1 }; + var data = { token: token, ids: [8362], depcode: "000305", dircode: "0102", userId: 1 }; ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); console.log(rs); @@ -104,7 +113,7 @@ // 娴嬭瘯Ifc function convert3() { - var data = { token: token, ids: [6894], depcode: "000305", dircode: "0A040001010004", userId: 1 }; + var data = { token: token, ids: [7615], depcode: "000305", dircode: "0A040001010004", userId: 1 }; ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); console.log(rs); @@ -113,17 +122,79 @@ // 娴嬭瘯SG function toSG() { - var data = { token: token, ids: [1523, 1525], depcode: "000305", dircode: "0102", userId: 1 }; + var data = { token: token, ids: [10516], depcode: "000305", dircode: "0102", userId: 1 }; ajax("Convert/ToSG", "POST", JSON.stringify(data), null, null, function (rs) { alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); console.log(rs); }); } - // 娴嬭瘯Terra + // 娴嬭瘯Terra锛�10526锛�10527 | 10531 function toTerra() { - var data = { token: token, ids: [7088, 7089, 7090], depcode: "00", dircode: "0C00000003", userId: 1 }; + var data = { token: token, ids: [1413, 1412], min: 0, max: 18, depcode: "00", dircode: "0B", userId: 1, name: "宸濅簩" }; ajax("Convert/ToTerra", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 娴嬭瘯OSGB + function toOsgb() { + var data = { token: token, ids: [10287], depcode: "00", dircode: "0C", userId: 1, name: "3-1鍊炬枩妯″瀷-涓崼绔�", zs: [0] }; + ajax("Convert/ToOsgb", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // LasByPy + function toLasByPy() { + var data = { token: token, ids: [7188], depcode: "00", dircode: "0C", userId: 1, name: "HL_point_cloud_part_1.las", srids: [4548], zs: [0] }; + ajax("Convert/ToLasByPy", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 娴嬭瘯Las + function toLas() { + var data = { token: token, ids: [10481], depcode: "00", dircode: "0C", userId: 1, name: "HL_point_cloud_part_1.las", srids: [4548], zs: [0] }; + ajax("Convert/ToLas", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 娴嬭瘯Laz + function toLaz(){ + var data = { token: token, ids: [10285], depcode: "00", dircode: "0C", userId: 1, name: "577.laz", srids: [4548], zs: [0] }; + ajax("Convert/ToLas", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 鐢熸垚Mpt + function createMpt() { + ajax("TB/CreateMpt" + "?token=" + token + "&path=" + encodeURIComponent("D:\\LF\\data\\ANTU\\"), "GET", null, null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 璇诲彇Las鍧愭爣绯� + function ReadLasCs() { + var data = { token: token, ids: [10483, 10481, 10456, 10285], dircode: "00" }; + ajax("Convert/ReadLasCs", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 缁撴潫浠诲姟 + function deleteTask() { + var data = { token: token, ids: [$("#taskId").val()], dircode: "00" }; + ajax("Convert/DeleteTask", "POST", JSON.stringify(data), null, null, function (rs) { alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); console.log(rs); }); @@ -131,7 +202,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> @@ -141,6 +212,7 @@ </select> <input type="button" value="鍑哄浘-1" onclick="exportMap1()" /> <input type="button" value="鍑哄浘-2" onclick="exportMap2()" /> + <a href="Convert/Test">Test</a> <br /><br /> <input type="button" value="娴嬭瘯鍒囧浘" onclick="convertXYZ();" /> @@ -149,5 +221,15 @@ <input type="button" value="娴嬭瘯Ifc" onclick="convert3();" /> <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="LasByPy" onclick="toLasByPy();" /> + <input type="button" value="娴嬭瘯Las" onclick="toLas();" /> + <input type="button" value="娴嬭瘯Laz" onclick="toLaz();" /> + <input type="button" value="鐢熸垚Mpt" onclick="createMpt();" /> + <br /><br /> + + <input type="button" value="璇诲彇Las鍧愭爣绯�" onclick="ReadLasCs();" /> + <input id="taskId" value="0" /> + <input type="button" value="缁撴潫浠诲姟" onclick="deleteTask();" /> </body> </html> -- Gitblit v1.9.3