| | |
| | | |
| | | int idx = args.ids.IndexOf(meta.id); |
| | | string cmd = string.Format("{0}\\gocesiumtiler.exe -i \"{1}\" -o \"{2}\" -e {3} -z {4} -g -s", tilerPath, lasPath, outPath, args.srids[idx], args.zs[idx]); |
| | | err = Tools.ExecCmd(null, cmd, false); |
| | | SysTask task = TaskDBHelper.CreateTask(args, meta, "LAS", "点云数据(LAS)"); |
| | | err = Tools.ExecCmd(task, cmd, false); |
| | | |
| | | string jsonFile = findTileset(meta, outPath); |
| | | if ("laz" == meta.type && File.Exists(lasPath)) File.Delete(lasPath); |
| | |
| | | |
| | | int idx = args.ids.IndexOf(meta.id); |
| | | string cmd = string.Format("{0}\\3dtile.exe -f osgb -i \"{1}\" -o \"{2}\" -c \"{{\\\"offset\\\": {3}}}\"", d3tilesPath, osgbPath, outPath, args.zs[idx]); |
| | | SysTask task = TaskDBHelper.CreateTask(args, meta, "OSGB", "倾斜数据(OSGB)"); |
| | | err = Tools.ExecCmd(null, cmd, false); |
| | | err = null; |
| | | |
| | |
| | | } |
| | | |
| | | string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\"", PyFile, Qgz, txtFile, tifFile); |
| | | err = Tools.ExecCmd(null, cmd, true); |
| | | SysTask task = TaskDBHelper.CreateTask(args, "DEM", "高程镶嵌(DEM)"); |
| | | err = Tools.ExecCmd(task, cmd, true); |
| | | if (null == task || task.status != 2) return string.Empty; |
| | | |
| | | return tifFile; |
| | | } |
| | |
| | | string createLayer = string.Format("{0}\\ctb-tile.exe -l -s {4} -o \"{1}\" -f Mesh \"{2}\\{3}.tif\"", ctbPath, dirPath, dirPath, args.dircode, maxLevel); |
| | | |
| | | List<string> list = new List<string>() { gdal_data, createMesh, createLayer }; |
| | | err = Tools.ExecCmd(null, list); |
| | | SysTask task = TaskDBHelper.CreateTask(args, "DEM", "高程数据(DEM)"); |
| | | err = Tools.ExecCmd(task, list); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | WriteText(tifFile, list); |
| | | |
| | | string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\" -min {4} -max {5} -noData {6}", PyFile, Qgz, tifFile, xyzPath, args.min, args.max, args.noData); |
| | | |
| | | err = Tools.ExecCmd(null, cmd, true); |
| | | SysTask task = TaskDBHelper.CreateTask(args, "DOM", "影像数据(DOM)"); |
| | | err = Tools.ExecCmd(task, cmd, true); |
| | | |
| | | //if (File.Exists(batFile)) File.Delete(batFile); |
| | | if (File.Exists(tifFile)) File.Delete(tifFile); |