| | |
| | | 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); |
| | |
| | | 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)) |
| | |
| | | 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> |
| | |
| | | <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> |