| | |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <script src="js/jquery.1.12.4.js"></script> |
| | | <script> |
| | | var token = "ec6fb7ec-705d-483c-a87a-21a1478dbd64"; |
| | | var token = "b2657209-38ab-4ce3-af63-e2740bbd9f68"; |
| | | |
| | | $(function () { |
| | | $("#token").html(token); |
| | |
| | | |
| | | // 测试切图 |
| | | function convertXYZ() { |
| | | var data = { token: token, ids: [1217], 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); |
| | |
| | | // 测试Terra:10526,10527 | 10531 |
| | | function toTerra() { |
| | | var data = { token: token, ids: [1413, 1412], min: 0, max: 18, depcode: "00", dircode: "0B", userId: 1, name: "川二" }; |
| | | ajax("Convert/ToTerrain", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | ajax("Convert/ToTerra", "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: [10481], depcode: "00", dircode: "0C", userId: 1, name: "HL_point_cloud_part_1.las", srids: [4548], zs: [0] }; |
| | | 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); |
| | |
| | | |
| | | // 生成Mpt |
| | | function createMpt() { |
| | | ajax("TB/CreateMpt" + "?token=" + token + "&path=" + encodeURIComponent("D:\\LF\\data\\ANTU\\测绘(ESV)"), "GET", null, null, null, function (rs) { |
| | | 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); |
| | | }); |