| | |
| | | |
| | | FrmTool tool; |
| | | |
| | | string mainUrl; |
| | | bool isAngle; |
| | | |
| | | int angleCount; |
| | | |
| | | double angleSize; |
| | | |
| | | public SGWorld71 SG; |
| | | |
| | | private bool isAngle; |
| | | ITerrainLabel71 angleLabel; |
| | | |
| | | private int angleCount; |
| | | ITerrainPolyline71 angleLine; |
| | | |
| | | private double angleSize; |
| | | string angleGroupName = "角量算"; |
| | | |
| | | private ITerrainLabel71 angleLabel; |
| | | |
| | | private ITerrainPolyline71 angleLine; |
| | | |
| | | private string angleGroupName = "角量算"; |
| | | string mainUrl = Application.StartupPath; |
| | | |
| | | public FrmWin() |
| | | { |
| | |
| | | try |
| | | { |
| | | LogOut.Info("开始运行.."); |
| | | mainUrl = Application.StartupPath; |
| | | bool isTest = "1" == ConfigurationManager.AppSettings["isTest"]; |
| | | |
| | | //this.fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly"); |
| | | this.fly = ConfigurationManager.AppSettings["fly"] ?? ConfigurationManager.AppSettings["testFly"]; |
| | | if (!this.fly.Contains(":\\")) this.fly = Path.Combine(Application.StartupPath, this.fly); |
| | | if (!File.Exists(this.fly)) |
| | |
| | | return str; |
| | | } |
| | | |
| | | #region 角量算+空间统计+空间分析+osgblab |
| | | #region 角量算 |
| | | private void AngleMeasurement() |
| | | { |
| | | if (isAngle) |
| | |
| | | |
| | | return true; |
| | | } |
| | | #endregion |
| | | |
| | | private string GetAbsolutePath(string key) |
| | | { |
| | | string str = ConfigurationManager.AppSettings[key]; |
| | | |
| | | return str.Contains(":\\") ? str : Path.Combine(Application.StartupPath, str); |
| | | } |
| | | |
| | | private void SpaceStatistics() |
| | | { |
| | |
| | | private void InvokeOsgbLab() |
| | | { |
| | | ExecCmd(new List<string> { "taskkill /f /t /im OSGBLab.exe" }); |
| | | RunExe(ConfigurationManager.AppSettings["osgblabPath"], null, false); |
| | | RunExe(GetAbsolutePath("osgblabPath"), null, false); |
| | | } |
| | | #endregion |
| | | } |
| | | } |