| | |
| | | CreateTemplate(args); |
| | | |
| | | string cmd = string.Format("python \"{0}\" -qgz {1} -qpt {2}", PyFile, qgz, args.qpt); |
| | | err = Tools.ExecCmd(cmd, true, true); |
| | | err = Tools.ExecCmd(null, cmd, true, true); |
| | | |
| | | string qptFile = Path.Combine(SourcesPath, args.qpt); |
| | | if (File.Exists(qptFile)) File.Delete(qptFile); |
| | |
| | | |
| | | 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(cmd, false, false); |
| | | err = Tools.ExecCmd(null, cmd, false, false); |
| | | |
| | | string jsonFile = findTileset(meta, outPath); |
| | | if ("laz" == meta.type && File.Exists(lasPath)) File.Delete(lasPath); |
| | |
| | | string tilerPath = Tools.GetSetting("tilerPath"); |
| | | |
| | | string cmd = string.Format("{0}\\laszip64.exe -i \"{1}\" -o \"{2}\"", tilerPath, lazPath, lasPath); |
| | | Tools.ExecCmd(cmd, false, false); |
| | | Tools.ExecCmd(new List<string> { cmd }); |
| | | |
| | | return 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]); |
| | | err = Tools.ExecCmd(cmd, false, false); |
| | | err = Tools.ExecCmd(null, cmd, false, false); |
| | | err = null; |
| | | |
| | | if (null != srs) writeSRS(osgbPath, srs); |
| | |
| | | |
| | | string cmd = string.Format("\"C:\\Program Files\\Skyline\\TerraBuilder\\TerraBuilder.exe\" -script \"{0}\"", js); // -DisablePrint |
| | | ReloadTB(); |
| | | err = Tools.ExecCmd(cmd, false, false); |
| | | err = Tools.ExecCmd(new List<string> { cmd }); |
| | | isBusy = false; |
| | | |
| | | return File.Exists(MptPath) ? MoveMpt(MptPath, sourcePath) : null; |
| | |
| | | //list.Add("taskkill /f /t /im TBFuser.exe"); |
| | | //list.Add("start /d \"C:\\Program Files\\Skyline\\TerraBuilder Fuser\" TBFuser.exe /b"); |
| | | |
| | | Tools.ExecCmd(list, false); |
| | | Tools.ExecCmd(list); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\"", PyFile, Qgz, txtFile, tifFile); |
| | | err = Tools.ExecCmd(cmd, true, false); |
| | | err = Tools.ExecCmd(null, cmd, true, false); |
| | | |
| | | 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(list); |
| | | err = Tools.ExecCmd(null, list); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | 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(GetCmds(batFile, cmd)); |
| | | err = Tools.ExecCmd(cmd, true, false); |
| | | err = Tools.ExecCmd(null, cmd, true, false); |
| | | |
| | | //if (File.Exists(batFile)) File.Delete(batFile); |
| | | if (File.Exists(tifFile)) File.Delete(tifFile); |