From 1283635bfe5b627300b16b41f6c47bf9d61f90de Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 20 九月 2023 20:32:10 +0800 Subject: [PATCH] las入库时添加json数据 --- ExportMap/cs/PyLasUtils.cs | 1 + ExportMap/export.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ExportMap/cs/PyLasUtils.cs b/ExportMap/cs/PyLasUtils.cs index 00097b3..398a9c2 100644 --- a/ExportMap/cs/PyLasUtils.cs +++ b/ExportMap/cs/PyLasUtils.cs @@ -94,6 +94,7 @@ } SysPublish sys = Tools.NewPublish(meta, args, GetReleaseUrl(path), path); + sys.json = GetLasGeomJSON(Path.Combine(Tools.GetSetting("uploadFolder"), meta.path), meta.id); pubid = PubDBHelper.InsertPublish(sys); if (pubid > 0) diff --git a/ExportMap/export.html b/ExportMap/export.html index 2eed1c2..2e96094 100644 --- a/ExportMap/export.html +++ b/ExportMap/export.html @@ -10,7 +10,7 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="js/jquery.1.12.4.js"></script> <script> - var token = "0909c1b4-e573-4b8a-95d1-bcc392433c44"; + var token = "d252658b-0ac1-45f3-90d4-bd78d7429592"; $(function () { $("#token").html(token); @@ -149,7 +149,7 @@ // 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); -- Gitblit v1.9.3