├── README.md ├── .gitattributes ├── SingleLeveling-间接平差 ├── README.md ├── SingleLeveling.suo ├── SingleLeveling.v12.suo ├── SingleLeveling │ ├── Matrix.cs │ ├── Indirect.cs │ ├── Resources │ │ ├── 65.jpg │ │ ├── 16195825.jpg │ │ └── 20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif │ ├── bin │ │ └── Debug │ │ │ ├── SingleLeveling.exe │ │ │ ├── SingleLeveling.pdb │ │ │ ├── SingleLeveling.vshost.exe │ │ │ └── SingleLeveling.vshost.exe.manifest │ ├── obj │ │ └── x86 │ │ │ └── Debug │ │ │ ├── SingleLeveling.exe │ │ │ ├── SingleLeveling.pdb │ │ │ ├── SingleLeveling.FormGPS.resources │ │ │ ├── SingleLeveling.FormMain.resources │ │ │ ├── SingleLeveling.FormLevel.resources │ │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ │ ├── TempPE │ │ │ └── Properties.Resources.Designer.cs.dll │ │ │ ├── SingleLeveling.Properties.Resources.resources │ │ │ ├── SingleLeveling.csproj.GenerateResource.Cache │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── AdjustmentLittlePrince.csproj.GenerateResource.Cache │ │ │ ├── SingleLeveling.csprojResolveAssemblyReference.cache │ │ │ ├── AdjustmentLittlePrince.csprojResolveAssemblyReference.cache │ │ │ ├── SingleLeveling.csproj.FileListAbsolute.txt │ │ │ └── AdjustmentLittlePrince.csproj.FileListAbsolute.txt │ ├── Properties │ │ ├── Settings.settings │ │ ├── AssemblyInfo.cs │ │ ├── Settings.Designer.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── Program.cs │ ├── FormMain.cs │ ├── AdjustmentLittlePrince.csproj │ ├── FormGPS.Designer.cs │ ├── FormLevel.resx │ ├── FormMain.resx │ ├── FormGPS.resx │ ├── FormLevel.Designer.cs │ ├── FormMain.Designer.cs │ ├── FormLevel.cs │ └── FormGPS.cs └── SingleLeveling.sln └── SingleLeveling-7.10-简易水准平差 ├── Readme.md └── SingleLeveling ├── SingleLeveling.suo ├── SingleLeveling.v12.suo ├── SingleLeveling ├── bin │ └── Debug │ │ ├── SingleLeveling.exe │ │ ├── SingleLeveling.pdb │ │ ├── SingleLeveling.vshost.exe │ │ └── SingleLeveling.vshost.exe.manifest ├── obj │ └── x86 │ │ └── Debug │ │ ├── SingleLeveling.exe │ │ ├── SingleLeveling.pdb │ │ ├── SingleLeveling.Form1.resources │ │ ├── SingleLeveling.FormMain.resources │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── TempPE │ │ └── Properties.Resources.Designer.cs.dll │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── SingleLeveling.Properties.Resources.resources │ │ ├── SingleLeveling.csproj.GenerateResource.Cache │ │ ├── SingleLeveling.csprojResolveAssemblyReference.cache │ │ └── SingleLeveling.csproj.FileListAbsolute.txt ├── Resources │ └── 20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── FormMain.cs ├── Program.cs ├── SingleLeveling.csproj ├── FormMain.Designer.cs ├── Form1.resx ├── Form1.Designer.cs ├── FormMain.resx └── Form1.cs └── SingleLeveling.sln /README.md: -------------------------------------------------------------------------------- 1 | # Adjustment 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/README.md -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/Readme.md -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling.suo -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling.v12.suo -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Matrix.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/Matrix.cs -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Indirect.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/Indirect.cs -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Resources/65.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/Resources/65.jpg -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Resources/16195825.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/Resources/16195825.jpg -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling.suo -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling.v12.suo -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.exe -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.pdb -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.exe -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.pdb -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormGPS.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormGPS.resources -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormMain.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormMain.resources -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormLevel.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.FormLevel.resources -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.exe -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.pdb -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.exe -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.pdb -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Resources/20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/Resources/20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.Properties.Resources.resources -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.Form1.resources -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/AdjustmentLittlePrince.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/AdjustmentLittlePrince.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.FormMain.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.FormMain.resources -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/AdjustmentLittlePrince.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/AdjustmentLittlePrince.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Resources/20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Resources/20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.Properties.Resources.resources -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bestYou/Adjustment/HEAD/SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/FormMain.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | namespace SingleLeveling 11 | { 12 | public partial class FormMain : Form 13 | { 14 | public FormMain() 15 | { 16 | InitializeComponent(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace SingleLeveling 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// 应用程序的主入口点。 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new FormMain()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace SingleLeveling 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// 应用程序的主入口点。 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Form1()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/bin/Debug/SingleLeveling.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdjustmentLittlePrince", "SingleLeveling\AdjustmentLittlePrince.csproj", "{E55E5B28-CADA-47C4-B34D-4A5780243CCB}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Debug|x86.ActiveCfg = Debug|x86 13 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Debug|x86.Build.0 = Debug|x86 14 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Release|x86.ActiveCfg = Release|x86 15 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SingleLeveling", "SingleLeveling\SingleLeveling.csproj", "{E55E5B28-CADA-47C4-B34D-4A5780243CCB}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Debug|x86.ActiveCfg = Debug|x86 13 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Debug|x86.Build.0 = Debug|x86 14 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Release|x86.ActiveCfg = Release|x86 15 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.exe 2 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.pdb 3 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.Properties.Resources.resources 4 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.csproj.GenerateResource.Cache 5 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 6 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 7 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.csprojResolveAssemblyReference.cache 8 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormMain.resources 9 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormLevel.resources 10 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormGPS.resources 11 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("SingleLeveling")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SingleLeveling")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 使此程序集中的类型 18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, 19 | // 则将该类型上的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("7bc3a28e-ea41-4d75-973b-d3c577b01296")] 24 | 25 | // 程序集的版本信息由下面四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 内部版本号 30 | // 修订号 31 | // 32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/obj/x86/Debug/SingleLeveling.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.exe 2 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.pdb 3 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.Form1.resources 4 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.Properties.Resources.resources 5 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.csproj.GenerateResource.Cache 6 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 7 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 8 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.csprojResolveAssemblyReference.cache 9 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormMain.resources 10 | G:\111文档\SingleLeveling\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 11 | G:\111文档\SingleLeveling\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 12 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("SingleLeveling")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SingleLeveling")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 使此程序集中的类型 18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, 19 | // 则将该类型上的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("7bc3a28e-ea41-4d75-973b-d3c577b01296")] 24 | 25 | // 程序集的版本信息由下面四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 内部版本号 30 | // 修订号 31 | // 32 | // 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SingleLeveling.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SingleLeveling.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/obj/x86/Debug/AdjustmentLittlePrince.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.exe 2 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\bin\Debug\SingleLeveling.pdb 3 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormGPS.resources 4 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormLevel.resources 5 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.FormMain.resources 6 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.Properties.Resources.resources 7 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\AdjustmentLittlePrince.csproj.GenerateResource.Cache 8 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 9 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 10 | D:\code\cShap\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\AdjustmentLittlePrince.csprojResolveAssemblyReference.cache 11 | G:\111文档\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 12 | G:\111文档\coverVC\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 13 | C:\Users\bestYou\Documents\Adjustment\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.exe 14 | C:\Users\bestYou\Documents\Adjustment\SingleLeveling\SingleLeveling\obj\x86\Debug\SingleLeveling.pdb 15 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormMain.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | namespace SingleLeveling 11 | { 12 | public partial class FormMain : Form 13 | { 14 | public FormMain() 15 | { 16 | InitializeComponent(); 17 | } 18 | 19 | private void 水准网ToolStripMenuItem_Click(object sender, EventArgs e) 20 | { 21 | //将formMain窗体设为父窗体 22 | this.IsMdiContainer = true; 23 | //隐藏父窗体上的标题文本 24 | this.label_mainTitle.Visible = false; 25 | //隐藏父窗体上的修饰图片 26 | this.pictureBox_main.Visible = false; 27 | //隐藏父窗体上的版权文本 28 | this.labeltop.Visible = false; 29 | 30 | FormLevel formLevel = new FormLevel(); 31 | formLevel.MdiParent = this; 32 | formLevel.Show(); 33 | 34 | } 35 | 36 | private void 平面网ToolStripMenuItem_Click(object sender, EventArgs e) 37 | { 38 | 39 | } 40 | 41 | private void gPS网ToolStripMenuItem_Click(object sender, EventArgs e) 42 | { 43 | //将formMain窗体设为父窗体 44 | this.IsMdiContainer = true; 45 | //隐藏父窗体上的标题文本 46 | this.label_mainTitle.Visible = false; 47 | //隐藏父窗体上的修饰图片 48 | this.pictureBox_main.Visible = false; 49 | //隐藏父窗体上的版权文本 50 | this.labeltop.Visible = false; 51 | 52 | FormGPS formGPS = new FormGPS(); 53 | formGPS.MdiParent = this; 54 | formGPS.Show(); 55 | } 56 | 57 | private void label1_Click(object sender, EventArgs e) 58 | { 59 | 60 | } 61 | 62 | private void 关于系统ToolStripMenuItem_Click(object sender, EventArgs e) 63 | { 64 | 65 | } 66 | 67 | private void 退出XToolStripMenuItem_Click(object sender, EventArgs e) 68 | { 69 | //退出系统 70 | Application.Exit(); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SingleLeveling.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SingleLeveling.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 使用此强类型资源类,为所有资源查找 51 | /// 重写当前线程的 CurrentUICulture 属性。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 65 | /// 66 | internal static System.Drawing.Bitmap _20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4 { 67 | get { 68 | object obj = ResourceManager.GetObject("20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace SingleLeveling.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// 一个强类型的资源类,用于查找本地化的字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// 返回此类使用的缓存的 ResourceManager 实例。 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SingleLeveling.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// 使用此强类型资源类,为所有资源查找 51 | /// 重写当前线程的 CurrentUICulture 属性。 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 65 | /// 66 | internal static System.Drawing.Bitmap _16195825 { 67 | get { 68 | object obj = ResourceManager.GetObject("16195825", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 75 | /// 76 | internal static System.Drawing.Bitmap _20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4 { 77 | get { 78 | object obj = ResourceManager.GetObject("20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// 查找 System.Drawing.Bitmap 类型的本地化资源。 85 | /// 86 | internal static System.Drawing.Bitmap _65 { 87 | get { 88 | object obj = ResourceManager.GetObject("65", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/SingleLeveling.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB} 9 | WinExe 10 | Properties 11 | SingleLeveling 12 | SingleLeveling 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Form 51 | 52 | 53 | Form1.cs 54 | 55 | 56 | Form 57 | 58 | 59 | FormMain.cs 60 | 61 | 62 | 63 | 64 | Form1.cs 65 | 66 | 67 | FormMain.cs 68 | 69 | 70 | ResXFileCodeGenerator 71 | Resources.Designer.cs 72 | Designer 73 | 74 | 75 | True 76 | Resources.resx 77 | True 78 | 79 | 80 | SettingsSingleFileGenerator 81 | Settings.Designer.cs 82 | 83 | 84 | True 85 | Settings.settings 86 | True 87 | 88 | 89 | 90 | 91 | 92 | 93 | 100 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/AdjustmentLittlePrince.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {E55E5B28-CADA-47C4-B34D-4A5780243CCB} 9 | WinExe 10 | Properties 11 | SingleLeveling 12 | SingleLeveling 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Form 51 | 52 | 53 | FormGPS.cs 54 | 55 | 56 | Form 57 | 58 | 59 | FormLevel.cs 60 | 61 | 62 | Form 63 | 64 | 65 | FormMain.cs 66 | 67 | 68 | 69 | 70 | 71 | 72 | FormGPS.cs 73 | 74 | 75 | FormLevel.cs 76 | 77 | 78 | FormMain.cs 79 | 80 | 81 | ResXFileCodeGenerator 82 | Resources.Designer.cs 83 | Designer 84 | 85 | 86 | True 87 | Resources.resx 88 | True 89 | 90 | 91 | SettingsSingleFileGenerator 92 | Settings.Designer.cs 93 | 94 | 95 | True 96 | Settings.settings 97 | True 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 117 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormGPS.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SingleLeveling 2 | { 3 | partial class FormGPS 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.splitter1 = new System.Windows.Forms.Splitter(); 32 | this.rTBox_input = new System.Windows.Forms.RichTextBox(); 33 | this.rTBox_output = new System.Windows.Forms.RichTextBox(); 34 | this.button_jiSuan = new System.Windows.Forms.Button(); 35 | this.button_save = new System.Windows.Forms.Button(); 36 | this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog(); 37 | this.SuspendLayout(); 38 | // 39 | // splitter1 40 | // 41 | this.splitter1.Location = new System.Drawing.Point(0, 0); 42 | this.splitter1.Name = "splitter1"; 43 | this.splitter1.Size = new System.Drawing.Size(657, 563); 44 | this.splitter1.TabIndex = 0; 45 | this.splitter1.TabStop = false; 46 | // 47 | // rTBox_input 48 | // 49 | this.rTBox_input.Location = new System.Drawing.Point(12, 12); 50 | this.rTBox_input.Name = "rTBox_input"; 51 | this.rTBox_input.Size = new System.Drawing.Size(636, 490); 52 | this.rTBox_input.TabIndex = 1; 53 | this.rTBox_input.Text = ""; 54 | this.rTBox_input.TextChanged += new System.EventHandler(this.rTBox_input_TextChanged); 55 | // 56 | // rTBox_output 57 | // 58 | this.rTBox_output.Location = new System.Drawing.Point(663, 12); 59 | this.rTBox_output.Name = "rTBox_output"; 60 | this.rTBox_output.Size = new System.Drawing.Size(396, 490); 61 | this.rTBox_output.TabIndex = 2; 62 | this.rTBox_output.Tag = ""; 63 | this.rTBox_output.Text = "结果显示区域"; 64 | // 65 | // button_jiSuan 66 | // 67 | this.button_jiSuan.Font = new System.Drawing.Font("幼圆", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 68 | this.button_jiSuan.Location = new System.Drawing.Point(497, 508); 69 | this.button_jiSuan.Name = "button_jiSuan"; 70 | this.button_jiSuan.Size = new System.Drawing.Size(105, 44); 71 | this.button_jiSuan.TabIndex = 3; 72 | this.button_jiSuan.Text = "计算"; 73 | this.button_jiSuan.UseVisualStyleBackColor = true; 74 | this.button_jiSuan.Click += new System.EventHandler(this.button_jiSuan_Click); 75 | // 76 | // button_save 77 | // 78 | this.button_save.Font = new System.Drawing.Font("幼圆", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 79 | this.button_save.Location = new System.Drawing.Point(743, 508); 80 | this.button_save.Name = "button_save"; 81 | this.button_save.Size = new System.Drawing.Size(105, 44); 82 | this.button_save.TabIndex = 4; 83 | this.button_save.Text = "保存"; 84 | this.button_save.UseVisualStyleBackColor = true; 85 | // 86 | // FormGPS 87 | // 88 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); 89 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 90 | this.ClientSize = new System.Drawing.Size(1061, 563); 91 | this.Controls.Add(this.button_save); 92 | this.Controls.Add(this.button_jiSuan); 93 | this.Controls.Add(this.rTBox_output); 94 | this.Controls.Add(this.rTBox_input); 95 | this.Controls.Add(this.splitter1); 96 | this.Name = "FormGPS"; 97 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 98 | this.Text = "GPS网间接平差"; 99 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormGPS_FormClosing); 100 | this.ResumeLayout(false); 101 | 102 | } 103 | 104 | #endregion 105 | 106 | private System.Windows.Forms.Splitter splitter1; 107 | private System.Windows.Forms.RichTextBox rTBox_input; 108 | private System.Windows.Forms.RichTextBox rTBox_output; 109 | private System.Windows.Forms.Button button_jiSuan; 110 | private System.Windows.Forms.Button button_save; 111 | private System.Windows.Forms.SaveFileDialog saveFileDialog1; 112 | 113 | } 114 | } -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/FormMain.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SingleLeveling 2 | { 3 | partial class FormMain 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.pictureBox_main = new System.Windows.Forms.PictureBox(); 32 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); 33 | this.文件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 34 | this.平差类型ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 35 | this.水准网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 36 | this.平面网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 37 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox_main)).BeginInit(); 38 | this.menuStrip1.SuspendLayout(); 39 | this.SuspendLayout(); 40 | // 41 | // pictureBox_main 42 | // 43 | this.pictureBox_main.InitialImage = global::SingleLeveling.Properties.Resources._20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4; 44 | this.pictureBox_main.Location = new System.Drawing.Point(296, 98); 45 | this.pictureBox_main.Name = "pictureBox_main"; 46 | this.pictureBox_main.Size = new System.Drawing.Size(478, 359); 47 | this.pictureBox_main.TabIndex = 0; 48 | this.pictureBox_main.TabStop = false; 49 | // 50 | // menuStrip1 51 | // 52 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 53 | this.文件ToolStripMenuItem, 54 | this.平差类型ToolStripMenuItem}); 55 | this.menuStrip1.Location = new System.Drawing.Point(0, 0); 56 | this.menuStrip1.Name = "menuStrip1"; 57 | this.menuStrip1.Size = new System.Drawing.Size(1116, 28); 58 | this.menuStrip1.TabIndex = 1; 59 | this.menuStrip1.Text = "menuStrip1"; 60 | // 61 | // 文件ToolStripMenuItem 62 | // 63 | this.文件ToolStripMenuItem.Name = "文件ToolStripMenuItem"; 64 | this.文件ToolStripMenuItem.Size = new System.Drawing.Size(51, 24); 65 | this.文件ToolStripMenuItem.Text = "文件"; 66 | // 67 | // 平差类型ToolStripMenuItem 68 | // 69 | this.平差类型ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 70 | this.水准网ToolStripMenuItem, 71 | this.平面网ToolStripMenuItem}); 72 | this.平差类型ToolStripMenuItem.Name = "平差类型ToolStripMenuItem"; 73 | this.平差类型ToolStripMenuItem.Size = new System.Drawing.Size(81, 24); 74 | this.平差类型ToolStripMenuItem.Text = "平差类型"; 75 | // 76 | // 水准网ToolStripMenuItem 77 | // 78 | this.水准网ToolStripMenuItem.Name = "水准网ToolStripMenuItem"; 79 | this.水准网ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 80 | this.水准网ToolStripMenuItem.Text = "水准网"; 81 | // 82 | // 平面网ToolStripMenuItem 83 | // 84 | this.平面网ToolStripMenuItem.Name = "平面网ToolStripMenuItem"; 85 | this.平面网ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 86 | this.平面网ToolStripMenuItem.Text = "平面网"; 87 | // 88 | // FormMain 89 | // 90 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); 91 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 92 | this.ClientSize = new System.Drawing.Size(1116, 643); 93 | this.Controls.Add(this.pictureBox_main); 94 | this.Controls.Add(this.menuStrip1); 95 | this.MainMenuStrip = this.menuStrip1; 96 | this.Name = "FormMain"; 97 | this.Text = "FormMain"; 98 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox_main)).EndInit(); 99 | this.menuStrip1.ResumeLayout(false); 100 | this.menuStrip1.PerformLayout(); 101 | this.ResumeLayout(false); 102 | this.PerformLayout(); 103 | 104 | } 105 | 106 | #endregion 107 | 108 | private System.Windows.Forms.PictureBox pictureBox_main; 109 | private System.Windows.Forms.MenuStrip menuStrip1; 110 | private System.Windows.Forms.ToolStripMenuItem 文件ToolStripMenuItem; 111 | private System.Windows.Forms.ToolStripMenuItem 平差类型ToolStripMenuItem; 112 | private System.Windows.Forms.ToolStripMenuItem 水准网ToolStripMenuItem; 113 | private System.Windows.Forms.ToolStripMenuItem 平面网ToolStripMenuItem; 114 | } 115 | } -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormLevel.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Form1.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SingleLeveling 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows 窗体设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 32 | this.rTextBox_output = new System.Windows.Forms.RichTextBox(); 33 | this.rTextBox_input = new System.Windows.Forms.RichTextBox(); 34 | this.button_jisuan = new System.Windows.Forms.Button(); 35 | this.button_ceshi = new System.Windows.Forms.Button(); 36 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); 37 | this.splitContainer1.Panel1.SuspendLayout(); 38 | this.splitContainer1.Panel2.SuspendLayout(); 39 | this.splitContainer1.SuspendLayout(); 40 | this.SuspendLayout(); 41 | // 42 | // splitContainer1 43 | // 44 | this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; 45 | this.splitContainer1.Location = new System.Drawing.Point(0, 0); 46 | this.splitContainer1.Name = "splitContainer1"; 47 | // 48 | // splitContainer1.Panel1 49 | // 50 | this.splitContainer1.Panel1.Controls.Add(this.button_jisuan); 51 | this.splitContainer1.Panel1.Controls.Add(this.rTextBox_input); 52 | this.splitContainer1.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel1_Paint); 53 | // 54 | // splitContainer1.Panel2 55 | // 56 | this.splitContainer1.Panel2.Controls.Add(this.button_ceshi); 57 | this.splitContainer1.Panel2.Controls.Add(this.rTextBox_output); 58 | this.splitContainer1.Size = new System.Drawing.Size(883, 533); 59 | this.splitContainer1.SplitterDistance = 426; 60 | this.splitContainer1.TabIndex = 0; 61 | // 62 | // rTextBox_output 63 | // 64 | this.rTextBox_output.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 65 | this.rTextBox_output.Location = new System.Drawing.Point(41, 25); 66 | this.rTextBox_output.Name = "rTextBox_output"; 67 | this.rTextBox_output.Size = new System.Drawing.Size(380, 404); 68 | this.rTextBox_output.TabIndex = 1; 69 | this.rTextBox_output.Text = ""; 70 | this.rTextBox_output.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); 71 | // 72 | // rTextBox_input 73 | // 74 | this.rTextBox_input.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 75 | this.rTextBox_input.Location = new System.Drawing.Point(27, 25); 76 | this.rTextBox_input.Name = "rTextBox_input"; 77 | this.rTextBox_input.Size = new System.Drawing.Size(371, 404); 78 | this.rTextBox_input.TabIndex = 2; 79 | this.rTextBox_input.Text = ""; 80 | this.rTextBox_input.TextChanged += new System.EventHandler(this.richTextBox2_TextChanged); 81 | // 82 | // button_jisuan 83 | // 84 | this.button_jisuan.Location = new System.Drawing.Point(313, 463); 85 | this.button_jisuan.Name = "button_jisuan"; 86 | this.button_jisuan.Size = new System.Drawing.Size(85, 37); 87 | this.button_jisuan.TabIndex = 3; 88 | this.button_jisuan.Text = "计算"; 89 | this.button_jisuan.UseVisualStyleBackColor = true; 90 | this.button_jisuan.Click += new System.EventHandler(this.button_jisuan_Click); 91 | // 92 | // button_ceshi 93 | // 94 | this.button_ceshi.Location = new System.Drawing.Point(41, 463); 95 | this.button_ceshi.Name = "button_ceshi"; 96 | this.button_ceshi.Size = new System.Drawing.Size(85, 37); 97 | this.button_ceshi.TabIndex = 4; 98 | this.button_ceshi.Text = "测试"; 99 | this.button_ceshi.UseVisualStyleBackColor = true; 100 | this.button_ceshi.Click += new System.EventHandler(this.button_ceshi_Click); 101 | // 102 | // Form1 103 | // 104 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); 105 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 106 | this.ClientSize = new System.Drawing.Size(883, 533); 107 | this.Controls.Add(this.splitContainer1); 108 | this.Name = "Form1"; 109 | this.Text = "单一水准计算"; 110 | this.Load += new System.EventHandler(this.Form1_Load); 111 | this.splitContainer1.Panel1.ResumeLayout(false); 112 | this.splitContainer1.Panel2.ResumeLayout(false); 113 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); 114 | this.splitContainer1.ResumeLayout(false); 115 | this.ResumeLayout(false); 116 | 117 | } 118 | 119 | #endregion 120 | 121 | private System.Windows.Forms.SplitContainer splitContainer1; 122 | private System.Windows.Forms.RichTextBox rTextBox_output; 123 | private System.Windows.Forms.Button button_jisuan; 124 | private System.Windows.Forms.RichTextBox rTextBox_input; 125 | private System.Windows.Forms.Button button_ceshi; 126 | } 127 | } 128 | 129 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormMain.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormGPS.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/FormMain.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormLevel.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace SingleLeveling 2 | { 3 | partial class FormLevel 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows 窗体设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 32 | this.button_jisuan = new System.Windows.Forms.Button(); 33 | this.rTextBox_input = new System.Windows.Forms.RichTextBox(); 34 | this.button_ceshi = new System.Windows.Forms.Button(); 35 | this.rTextBox_output = new System.Windows.Forms.RichTextBox(); 36 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); 37 | this.splitContainer1.Panel1.SuspendLayout(); 38 | this.splitContainer1.Panel2.SuspendLayout(); 39 | this.splitContainer1.SuspendLayout(); 40 | this.SuspendLayout(); 41 | // 42 | // splitContainer1 43 | // 44 | this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; 45 | this.splitContainer1.Location = new System.Drawing.Point(0, 0); 46 | this.splitContainer1.Name = "splitContainer1"; 47 | // 48 | // splitContainer1.Panel1 49 | // 50 | this.splitContainer1.Panel1.Controls.Add(this.button_jisuan); 51 | this.splitContainer1.Panel1.Controls.Add(this.rTextBox_input); 52 | this.splitContainer1.Panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer1_Panel1_Paint); 53 | // 54 | // splitContainer1.Panel2 55 | // 56 | this.splitContainer1.Panel2.Controls.Add(this.button_ceshi); 57 | this.splitContainer1.Panel2.Controls.Add(this.rTextBox_output); 58 | this.splitContainer1.Size = new System.Drawing.Size(883, 533); 59 | this.splitContainer1.SplitterDistance = 426; 60 | this.splitContainer1.TabIndex = 0; 61 | // 62 | // button_jisuan 63 | // 64 | this.button_jisuan.Location = new System.Drawing.Point(313, 463); 65 | this.button_jisuan.Name = "button_jisuan"; 66 | this.button_jisuan.Size = new System.Drawing.Size(85, 37); 67 | this.button_jisuan.TabIndex = 3; 68 | this.button_jisuan.Text = "计算"; 69 | this.button_jisuan.UseVisualStyleBackColor = true; 70 | this.button_jisuan.Click += new System.EventHandler(this.button_jisuan_Click); 71 | // 72 | // rTextBox_input 73 | // 74 | this.rTextBox_input.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 75 | this.rTextBox_input.Location = new System.Drawing.Point(27, 25); 76 | this.rTextBox_input.Name = "rTextBox_input"; 77 | this.rTextBox_input.Size = new System.Drawing.Size(371, 404); 78 | this.rTextBox_input.TabIndex = 2; 79 | this.rTextBox_input.Text = ""; 80 | this.rTextBox_input.TextChanged += new System.EventHandler(this.richTextBox2_TextChanged); 81 | // 82 | // button_ceshi 83 | // 84 | this.button_ceshi.Location = new System.Drawing.Point(41, 463); 85 | this.button_ceshi.Name = "button_ceshi"; 86 | this.button_ceshi.Size = new System.Drawing.Size(85, 37); 87 | this.button_ceshi.TabIndex = 4; 88 | this.button_ceshi.Text = "测试"; 89 | this.button_ceshi.UseVisualStyleBackColor = true; 90 | this.button_ceshi.Click += new System.EventHandler(this.button_ceshi_Click); 91 | // 92 | // rTextBox_output 93 | // 94 | this.rTextBox_output.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 95 | this.rTextBox_output.Location = new System.Drawing.Point(41, 25); 96 | this.rTextBox_output.Name = "rTextBox_output"; 97 | this.rTextBox_output.Size = new System.Drawing.Size(380, 404); 98 | this.rTextBox_output.TabIndex = 1; 99 | this.rTextBox_output.Text = ""; 100 | this.rTextBox_output.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); 101 | // 102 | // FormLevel 103 | // 104 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); 105 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 106 | this.ClientSize = new System.Drawing.Size(883, 533); 107 | this.Controls.Add(this.splitContainer1); 108 | this.Name = "FormLevel"; 109 | this.Text = "水准网间接平差"; 110 | this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormLevel_FormClosed); 111 | this.Load += new System.EventHandler(this.Form1_Load); 112 | this.splitContainer1.Panel1.ResumeLayout(false); 113 | this.splitContainer1.Panel2.ResumeLayout(false); 114 | ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); 115 | this.splitContainer1.ResumeLayout(false); 116 | this.ResumeLayout(false); 117 | 118 | } 119 | 120 | #endregion 121 | 122 | private System.Windows.Forms.SplitContainer splitContainer1; 123 | private System.Windows.Forms.RichTextBox rTextBox_output; 124 | private System.Windows.Forms.Button button_jisuan; 125 | private System.Windows.Forms.RichTextBox rTextBox_input; 126 | private System.Windows.Forms.Button button_ceshi; 127 | } 128 | } 129 | 130 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | ..\Resources\65.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 123 | 124 | 125 | ..\Resources\20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 126 | 127 | 128 | ..\Resources\16195825.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | -------------------------------------------------------------------------------- /SingleLeveling-7.10-简易水准平差/SingleLeveling/SingleLeveling/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Collections; 10 | 11 | 12 | namespace SingleLeveling 13 | { 14 | 15 | struct Num 16 | { 17 | public static int yh;//记录已知高程点的个数 18 | public static int nh;//记录待定高程点的个数 19 | public static int inputNum;//记录待定高程点输入的个数 20 | } 21 | struct Point ////////////结构体,用于记录已知高程点 22 | { 23 | //public int id; 24 | public string name; 25 | public double h; 26 | } 27 | struct Point1 /////////用于记录计算待定高程点的信息 28 | { 29 | public string startPoint;//后视点,起点 30 | public string endPoint;//前视点,终点 31 | public int id; 32 | public double dh;//高差 33 | public double ds;//距离 34 | } 35 | 36 | public partial class Form1 : Form 37 | { 38 | public Form1() 39 | { 40 | InitializeComponent(); 41 | } 42 | 43 | private void Form1_Load(object sender, EventArgs e) 44 | { 45 | 46 | } 47 | 48 | ArrayList pointlist = new ArrayList();//存已知点的高程 49 | ArrayList pointlist1 = new ArrayList();//存输入的待定高程点的信息 50 | 51 | private void richTextBox1_TextChanged(object sender, EventArgs e) 52 | { 53 | 54 | } 55 | 56 | private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e) 57 | { 58 | 59 | } 60 | 61 | int nLevelType; //单一水准类型,1=附合,0=闭合 62 | 63 | int iObsCount ; //= rTextBox_input.Lines.Length - 3;//观测值个数 64 | double Ha, Hb; //已知点高程 65 | // double* hObs = new double[iObsCount];//高差观测值 66 | // double* dObs = new double[iObsCount];//水准路线长度 67 | 68 | 69 | 70 | 71 | private void button_jisuan_Click(object sender, EventArgs e) 72 | { 73 | string[] sLines = rTextBox_input.Lines; //richTextBox中的数据以string数组的形式存在sLines中,每行为一个元素 74 | 75 | if (rTextBox_input.Lines.Length < 4 ) 76 | { 77 | MessageBox.Show("输入的数据不完整!", "温馨提示"); 78 | return; 79 | } 80 | 81 | Num.inputNum = 0; 82 | 83 | try{ 84 | nLevelType = int.Parse(sLines[0]); 85 | if(nLevelType==1){ // 1 为附合水准 86 | Num.yh = 2; 87 | iObsCount = rTextBox_input.Lines.Length - 3;//观测值个数,rTextBox_input.Lines.Length表示的是richTextBox中的文本行数 88 | 89 | //第二行数据 90 | string[] a = sLines[1].Split(','); 91 | Point p1; 92 | p1.name = a[0]; 93 | p1.h = double.Parse(a[1].ToString()); 94 | pointlist.Add(p1); 95 | Ha = double.Parse(a[1].ToString()); 96 | 97 | //第三行数据 98 | string[] a1 = sLines[2].Split(','); 99 | Point p2; 100 | p2.name = a1[0]; 101 | p2.h = double.Parse(a1[1].ToString()); 102 | pointlist.Add(p2); 103 | Hb = double.Parse(a1[1].ToString()); 104 | 105 | //逐行用Split函数分离,获取观测数据 106 | for (int i = 0; i < iObsCount; i++) 107 | { 108 | //第四行数据 109 | //观测数据,格式为:起点,终点,高差,距离 110 | /* 111 | 1 112 | A, 45.286 113 | B, 49.579 114 | A,1,2.331,1.6 115 | 1,2,2.813,2.1 116 | 2,3,-2.244,1.7 117 | 3,4,1.430,2.0 118 | */ 119 | string[] a2 = sLines[i+3].Split(','); 120 | Point1 p3; 121 | p3.startPoint = a2[0]; 122 | p3.endPoint = a2[1]; 123 | p3.id = i; 124 | p3.dh = double.Parse(a2[2].ToString()); 125 | p3.ds = double.Parse(a2[3].ToString()); 126 | pointlist1.Add(p3); 127 | Num.inputNum++; //输入的待定高程点数量增加1 128 | } 129 | 130 | double dFh=0;//高差闭合差 131 | double dSumD=0;//路线总长度 132 | 133 | for(int i=0;i 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.pictureBox_main = new System.Windows.Forms.PictureBox(); 32 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); 33 | this.文件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 34 | this.平差类型ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 35 | this.水准网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 36 | this.平面网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 37 | this.gPS网ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 38 | this.label_mainTitle = new System.Windows.Forms.Label(); 39 | this.labeltop = new System.Windows.Forms.Label(); 40 | this.帮助ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 41 | this.关于系统ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 42 | this.作者信息ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 43 | this.退出XToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 44 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox_main)).BeginInit(); 45 | this.menuStrip1.SuspendLayout(); 46 | this.SuspendLayout(); 47 | // 48 | // pictureBox_main 49 | // 50 | this.pictureBox_main.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; 51 | this.pictureBox_main.Image = global::SingleLeveling.Properties.Resources._20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4; 52 | this.pictureBox_main.InitialImage = global::SingleLeveling.Properties.Resources._20080122_f0ed7b443d4e87785dcaAJ9wGEaAu1O4; 53 | this.pictureBox_main.Location = new System.Drawing.Point(377, 193); 54 | this.pictureBox_main.Name = "pictureBox_main"; 55 | this.pictureBox_main.Size = new System.Drawing.Size(256, 256); 56 | this.pictureBox_main.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; 57 | this.pictureBox_main.TabIndex = 0; 58 | this.pictureBox_main.TabStop = false; 59 | // 60 | // menuStrip1 61 | // 62 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 63 | this.文件ToolStripMenuItem, 64 | this.平差类型ToolStripMenuItem, 65 | this.帮助ToolStripMenuItem}); 66 | this.menuStrip1.Location = new System.Drawing.Point(0, 0); 67 | this.menuStrip1.Name = "menuStrip1"; 68 | this.menuStrip1.Size = new System.Drawing.Size(1031, 28); 69 | this.menuStrip1.TabIndex = 1; 70 | this.menuStrip1.Text = "menuStrip1"; 71 | // 72 | // 文件ToolStripMenuItem 73 | // 74 | this.文件ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 75 | this.退出XToolStripMenuItem}); 76 | this.文件ToolStripMenuItem.Name = "文件ToolStripMenuItem"; 77 | this.文件ToolStripMenuItem.Size = new System.Drawing.Size(73, 24); 78 | this.文件ToolStripMenuItem.Text = "文件 (&F)"; 79 | // 80 | // 平差类型ToolStripMenuItem 81 | // 82 | this.平差类型ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 83 | this.水准网ToolStripMenuItem, 84 | this.平面网ToolStripMenuItem, 85 | this.gPS网ToolStripMenuItem}); 86 | this.平差类型ToolStripMenuItem.Name = "平差类型ToolStripMenuItem"; 87 | this.平差类型ToolStripMenuItem.Size = new System.Drawing.Size(104, 24); 88 | this.平差类型ToolStripMenuItem.Text = "平差类型 (&T)"; 89 | // 90 | // 水准网ToolStripMenuItem 91 | // 92 | this.水准网ToolStripMenuItem.Name = "水准网ToolStripMenuItem"; 93 | this.水准网ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 94 | this.水准网ToolStripMenuItem.Text = "水准网"; 95 | this.水准网ToolStripMenuItem.Click += new System.EventHandler(this.水准网ToolStripMenuItem_Click); 96 | // 97 | // 平面网ToolStripMenuItem 98 | // 99 | this.平面网ToolStripMenuItem.Name = "平面网ToolStripMenuItem"; 100 | this.平面网ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 101 | this.平面网ToolStripMenuItem.Text = "平面网"; 102 | this.平面网ToolStripMenuItem.Click += new System.EventHandler(this.平面网ToolStripMenuItem_Click); 103 | // 104 | // gPS网ToolStripMenuItem 105 | // 106 | this.gPS网ToolStripMenuItem.Name = "gPS网ToolStripMenuItem"; 107 | this.gPS网ToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 108 | this.gPS网ToolStripMenuItem.Text = "GPS网"; 109 | this.gPS网ToolStripMenuItem.Click += new System.EventHandler(this.gPS网ToolStripMenuItem_Click); 110 | // 111 | // label_mainTitle 112 | // 113 | this.label_mainTitle.AutoSize = true; 114 | this.label_mainTitle.Font = new System.Drawing.Font("苏新诗卵石体", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 115 | this.label_mainTitle.Location = new System.Drawing.Point(266, 80); 116 | this.label_mainTitle.Name = "label_mainTitle"; 117 | this.label_mainTitle.Size = new System.Drawing.Size(509, 80); 118 | this.label_mainTitle.TabIndex = 2; 119 | this.label_mainTitle.Text = "平差小王子"; 120 | this.label_mainTitle.Click += new System.EventHandler(this.label1_Click); 121 | // 122 | // labeltop 123 | // 124 | this.labeltop.AutoSize = true; 125 | this.labeltop.Font = new System.Drawing.Font("幼圆", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); 126 | this.labeltop.Location = new System.Drawing.Point(324, 517); 127 | this.labeltop.Name = "labeltop"; 128 | this.labeltop.Size = new System.Drawing.Size(393, 20); 129 | this.labeltop.TabIndex = 3; 130 | this.labeltop.Text = "版权所有 2016-2017 @平差小王子编组委"; 131 | // 132 | // 帮助ToolStripMenuItem 133 | // 134 | this.帮助ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 135 | this.关于系统ToolStripMenuItem, 136 | this.作者信息ToolStripMenuItem}); 137 | this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem"; 138 | this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(77, 24); 139 | this.帮助ToolStripMenuItem.Text = "帮助 (&H)"; 140 | // 141 | // 关于系统ToolStripMenuItem 142 | // 143 | this.关于系统ToolStripMenuItem.Name = "关于系统ToolStripMenuItem"; 144 | this.关于系统ToolStripMenuItem.Size = new System.Drawing.Size(163, 24); 145 | this.关于系统ToolStripMenuItem.Text = "关于系统 (&A)"; 146 | this.关于系统ToolStripMenuItem.Click += new System.EventHandler(this.关于系统ToolStripMenuItem_Click); 147 | // 148 | // 作者信息ToolStripMenuItem 149 | // 150 | this.作者信息ToolStripMenuItem.Name = "作者信息ToolStripMenuItem"; 151 | this.作者信息ToolStripMenuItem.Size = new System.Drawing.Size(163, 24); 152 | this.作者信息ToolStripMenuItem.Text = "作者信息"; 153 | // 154 | // 退出XToolStripMenuItem 155 | // 156 | this.退出XToolStripMenuItem.Name = "退出XToolStripMenuItem"; 157 | this.退出XToolStripMenuItem.Size = new System.Drawing.Size(152, 24); 158 | this.退出XToolStripMenuItem.Text = "退出 (&X)"; 159 | this.退出XToolStripMenuItem.Click += new System.EventHandler(this.退出XToolStripMenuItem_Click); 160 | // 161 | // FormMain 162 | // 163 | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); 164 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 165 | this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; 166 | this.ClientSize = new System.Drawing.Size(1031, 649); 167 | this.Controls.Add(this.labeltop); 168 | this.Controls.Add(this.label_mainTitle); 169 | this.Controls.Add(this.pictureBox_main); 170 | this.Controls.Add(this.menuStrip1); 171 | this.MainMenuStrip = this.menuStrip1; 172 | this.Name = "FormMain"; 173 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 174 | this.Text = "测量平差课程设计"; 175 | this.TopMost = true; 176 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox_main)).EndInit(); 177 | this.menuStrip1.ResumeLayout(false); 178 | this.menuStrip1.PerformLayout(); 179 | this.ResumeLayout(false); 180 | this.PerformLayout(); 181 | 182 | } 183 | 184 | #endregion 185 | 186 | private System.Windows.Forms.PictureBox pictureBox_main; 187 | private System.Windows.Forms.MenuStrip menuStrip1; 188 | private System.Windows.Forms.ToolStripMenuItem 文件ToolStripMenuItem; 189 | private System.Windows.Forms.ToolStripMenuItem 平差类型ToolStripMenuItem; 190 | private System.Windows.Forms.ToolStripMenuItem 水准网ToolStripMenuItem; 191 | private System.Windows.Forms.ToolStripMenuItem 平面网ToolStripMenuItem; 192 | private System.Windows.Forms.ToolStripMenuItem gPS网ToolStripMenuItem; 193 | private System.Windows.Forms.Label label_mainTitle; 194 | private System.Windows.Forms.Label labeltop; 195 | private System.Windows.Forms.ToolStripMenuItem 帮助ToolStripMenuItem; 196 | private System.Windows.Forms.ToolStripMenuItem 关于系统ToolStripMenuItem; 197 | private System.Windows.Forms.ToolStripMenuItem 退出XToolStripMenuItem; 198 | private System.Windows.Forms.ToolStripMenuItem 作者信息ToolStripMenuItem; 199 | } 200 | } -------------------------------------------------------------------------------- /SingleLeveling-间接平差/SingleLeveling/FormLevel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Collections; 10 | 11 | 12 | namespace SingleLeveling 13 | { 14 | 15 | struct Num 16 | { 17 | public static int knowH;//记录已知高程点的个数 18 | public static int unKnowH;//记录待定高程点的个数 19 | public static int input;//记录待定高程点输入的个数 20 | public static int levelRoute;//记录水准路线条数 同时用作线路ID 21 | public static int resultH;//记录计算后得到的高程点数量 22 | public static int finallyH;//记录平差后得到的高程平差值 23 | } 24 | struct PointKnowH ////////////结构体,用于记录已知高程点 25 | { 26 | //public int id; 27 | public string name; 28 | public double h; 29 | } 30 | struct PointUnKnowH /////////用于记录计算待定高程点的信息 31 | { 32 | public string startPoint;//后视点,起点 33 | public string endPoint;//前视点,终点 34 | //public int id; 35 | public double dh;//高差 36 | public double ds;//距离 37 | //public int levelRoute;//线路ID 38 | } 39 | struct PointResultH ////////////结构体,用于记录计算后得到的高程点,是为了得到待定点的近似高程值 40 | { 41 | //public int id; //列立方程时 用于标记方程的参数,还要记录线路名称,确立B矩阵中参数位置 42 | 43 | public string name; 44 | public double h; 45 | 46 | //public string startPoint; //起点 根据起点和终点确定线路, 47 | //public string endPoint; //终点 48 | } 49 | struct PointNameId { 50 | public int id; //列立方程时 用于标记方程的参数,还要记录线路名称,确立B矩阵中参数位置 51 | public string name; 52 | } 53 | struct PointNameIdH 54 | { 55 | public int id; //列立方程时 用于标记方程的参数,还要记录线路名称,确立B矩阵中参数位置 56 | public string name; 57 | public double h; //近似高程值 58 | public int hCount; //待定点出现的次数,用于求待定点的高程平均值 59 | } 60 | struct PointFinally{ 61 | public double h; //存储最后平差得到的高差平差值 h = 观测高差(Matrix hObservition) + 改正数(V矩阵) 62 | } 63 | 64 | public partial class FormLevel : Form 65 | { 66 | public FormLevel() 67 | { 68 | InitializeComponent(); 69 | } 70 | 71 | private void Form1_Load(object sender, EventArgs e) 72 | { 73 | 74 | } 75 | 76 | ArrayList pointlistKnow = new ArrayList();//存已知点的高程 77 | ArrayList pointlistUnKnow = new ArrayList();//存输入的待定高程点的信息 78 | ArrayList pointlistResultH = new ArrayList();//存计算后得到的高程点的信息 79 | ArrayList pointlistDaiDing = new ArrayList();//存待定点的点名,包含重复的名字,去重后,再存入pointlistNameId中 80 | ArrayList pointlistNameId = new ArrayList();//存储用于计算B矩阵的点名和对点名进行编号,号码即为在B矩阵中的列数 81 | ArrayList pointlistNameIdH = new ArrayList();//存储用于计算B矩阵的点名和点号,而且添加了近似高程值,用于l矩阵的计算 82 | ArrayList pointlistFinallyH = new ArrayList();//存平差后得到的高程平差值 83 | 84 | private void richTextBox1_TextChanged(object sender, EventArgs e) 85 | { 86 | 87 | } 88 | 89 | private void splitContainer1_Panel1_Paint(object sender, PaintEventArgs e) 90 | { 91 | 92 | } 93 | 94 | int iObsCount ; //= rTextBox_input.Lines.Length - 3;//观测值个数 95 | 96 | private void button_jisuan_Click(object sender, EventArgs e) 97 | { 98 | string[] sLines = rTextBox_input.Lines; //richTextBox中的数据以string数组的形式存在sLines中,每行为一个元素 99 | 100 | if (rTextBox_input.Lines.Length < 2 ) //至少一行是起算点,一行是待定高程点,共两行 101 | { 102 | MessageBox.Show("输入的数据不完整!", "温馨提示"); 103 | return; 104 | } 105 | 106 | Num.knowH = 0; 107 | Num.unKnowH = 0; 108 | Num.levelRoute = 0; 109 | Num.resultH = 0; 110 | Num.finallyH = 0; 111 | 112 | try 113 | { 114 | //读取已知数据和观测数据 115 | /* 116 | * @先从richTextBox中读取已知点高程,存入pointlistKnow 117 | * 118 | * @再继续读取待定点高程,存入pointlistUnKnow 119 | * 120 | */ 121 | #region 读取 已知数据 和 观测数据 122 | //Input Know Point Height 123 | for (int i = 0; i < rTextBox_input.Lines.Length; i++) { 124 | string[] knowPoint = sLines[i].Split(','); 125 | PointKnowH pointKnowH; 126 | if (knowPoint.Length == 2) 127 | { 128 | Num.knowH++; //已知高程点数量增加1 129 | pointKnowH.name = knowPoint[0]; 130 | pointKnowH.h = double.Parse(knowPoint[1]); 131 | pointlistKnow.Add(pointKnowH); 132 | } 133 | else 134 | break; 135 | } 136 | 137 | //Input unKnow Point Height 138 | for (int i = Num.knowH; i < rTextBox_input.Lines.Length ; i++) 139 | { 140 | string[] unKnowPoint = sLines[i].Split(','); 141 | PointUnKnowH pointUnKnowH; 142 | if (unKnowPoint.Length == 4) 143 | { 144 | //Num.unKnowH++; //待定高程点数量增加1 处理:判断重复点,去重 145 | Num.levelRoute++; //水准路线条数增加1 理解为:每读取一行数据,观测值 +1,也就是B矩阵的行数 +1, 146 | pointUnKnowH.startPoint = unKnowPoint[0]; 147 | pointUnKnowH.endPoint = unKnowPoint[1]; 148 | pointUnKnowH.dh = double.Parse(unKnowPoint[2]); 149 | pointUnKnowH.ds = double.Parse(unKnowPoint[3]); 150 | pointlistUnKnow.Add(pointUnKnowH); 151 | } 152 | else { 153 | MessageBox.Show("请检查数据格式是否正确", "温馨提示"); 154 | return; 155 | } 156 | } 157 | 158 | /* 159 | * 160 | * 筛选待定高程点 161 | * 162 | */ 163 | //第一步,把所有待定高程点的起点、终点点名 ,去掉已知点点名后存到pointlistDaiDing中,然后,再去重 164 | for (int i = 0; i < Num.levelRoute; i++) { 165 | PointUnKnowH pointUnKnowH_read = (PointUnKnowH)pointlistUnKnow[i]; 166 | for (int j = 0; j < Num.knowH; j++) { 167 | PointKnowH pointKnowH_read = (PointKnowH)pointlistKnow[j]; 168 | if (pointKnowH_read.name != pointUnKnowH_read.startPoint && pointKnowH_read.name != pointUnKnowH_read.endPoint) 169 | { //起点终点均为待定点 170 | pointlistDaiDing.Add(pointUnKnowH_read.startPoint); 171 | pointlistDaiDing.Add(pointUnKnowH_read.endPoint); 172 | } 173 | else if (pointKnowH_read.name != pointUnKnowH_read.startPoint && pointKnowH_read.name == pointUnKnowH_read.endPoint) 174 | { //起点为待定点 175 | pointlistDaiDing.Add(pointUnKnowH_read.startPoint); 176 | } 177 | else if (pointKnowH_read.name == pointUnKnowH_read.startPoint && pointKnowH_read.name != pointUnKnowH_read.endPoint) 178 | { //终点为待定点 179 | pointlistDaiDing.Add(pointUnKnowH_read.endPoint); 180 | } 181 | else 182 | continue; //假如两个点都是已知点的话,继续执行 几乎没有这种情况吧? 183 | } 184 | } 185 | //删除重复数据 186 | for (int i = 0; i < pointlistDaiDing.Count; i++) 187 | { 188 | for (int j = i + 1; j < pointlistDaiDing.Count; j++) 189 | { 190 | if (pointlistDaiDing[i].Equals(pointlistDaiDing[j])) 191 | { 192 | pointlistDaiDing.RemoveAt(j); 193 | if (i > 0) 194 | { 195 | i--; 196 | } 197 | } 198 | } 199 | } 200 | Num.unKnowH = pointlistDaiDing.Count; //去重后的待定高程点数量即为 待定点数量,也就是B矩阵的列数 201 | 202 | double [,] arrayB = new double[Num.levelRoute,Num.unKnowH]; 203 | 204 | //取点名,对点名进行编号 205 | for (int i = 0; i < pointlistDaiDing.Count; i++) { 206 | PointNameId pointNameId; 207 | pointNameId.id = i; 208 | pointNameId.name = (string)pointlistDaiDing[i]; //此处用法待考证:能直接用string进行强制类型转换? 209 | pointlistNameId.Add(pointNameId); 210 | } 211 | 212 | //判断x^系数 213 | for (int i = 0; i < Num.levelRoute;i++ ) 214 | { 215 | PointUnKnowH pointUnKnowH_read = (PointUnKnowH)pointlistUnKnow[i]; 216 | for (int j = 0; j < Num.unKnowH; j++) { 217 | PointNameId pointNameId_read = (PointNameId)pointlistNameId[j]; 218 | if (pointNameId_read.name == pointUnKnowH_read.startPoint) { 219 | arrayB[i, j] = -1; 220 | } 221 | else if (pointNameId_read.name == pointUnKnowH_read.endPoint) 222 | { 223 | arrayB[i, j] = 1; 224 | } 225 | else { 226 | arrayB[i, j] = 0; 227 | } 228 | } 229 | } 230 | #endregion 231 | 232 | 233 | //推算待定点高程近似值 234 | /* 235 | * @先由已知点高程推算待定点高程 236 | * 237 | * @再由生成的结果继续进行。 238 | * 思路为: 239 | * 让 PointUnKnowH 与 PointResultH 中的点位高程信息遍历,计算其余待定高程点 240 | */ 241 | #region 推算待定点高程近似值 242 | for (int i = 0; i < Num.knowH; i++) 243 | { 244 | PointKnowH pointKnowH_read = (PointKnowH)pointlistKnow[i]; 245 | for (int j = 0; j < Num.unKnowH; j++) 246 | { 247 | PointUnKnowH pointUnKnowH_read = (PointUnKnowH)pointlistUnKnow[j]; 248 | if (pointKnowH_read.name == pointUnKnowH_read.startPoint) 249 | { 250 | double Hresult = pointKnowH_read.h + pointUnKnowH_read.dh; 251 | PointResultH pointResultH; 252 | pointResultH.name = pointUnKnowH_read.endPoint; 253 | pointResultH.h = Hresult; 254 | pointlistResultH.Add(pointResultH); //推算待定点的近似高程值是不是要考虑 去重呢? 尝试使用平均值来达到去重效果 255 | Num.resultH++; 256 | } 257 | if (pointKnowH_read.name == pointUnKnowH_read.endPoint) 258 | { 259 | double Hresult = pointKnowH_read.h - pointUnKnowH_read.dh; 260 | PointResultH pointResultH; 261 | pointResultH.name = pointUnKnowH_read.startPoint; 262 | pointResultH.h = Hresult; 263 | pointlistResultH.Add(pointResultH); 264 | Num.resultH++; 265 | } 266 | } 267 | } 268 | 269 | 270 | //与已知点进行计算具有唯一性,再进行pointResult与pointUnKnowH比对时,可能会出现一次遍历不能达到求出所有待定高程点的近似高程值情况,需要判断 pointResult数量与pointUnKnownH的数量关系,数量相等才能结束循环 271 | while(Num.unKnowH!=Num.resultH){ 272 | 273 | int resultHshort = 0; //临时存储pointResultH增加的数量,循环结束后再添加到Num.resultH中 274 | for (int i = 0; i < Num.unKnowH; i++) //循环条件确定,关键是遍历PointUnKnowH,再匹配PointResultH结果 275 | { 276 | PointUnKnowH pointUnKnowH_read = (PointUnKnowH)pointlistUnKnow[i]; 277 | 278 | for (int j = 0; j < Num.resultH; j++) 279 | { 280 | PointResultH pointResultH_read = (PointResultH)pointlistResultH[i]; 281 | if (pointResultH_read.name == pointUnKnowH_read.startPoint) 282 | { 283 | double Hresult = pointResultH_read.h + pointUnKnowH_read.dh; 284 | PointResultH pointResultH; 285 | pointResultH.name = pointUnKnowH_read.endPoint; 286 | pointResultH.h = Hresult; 287 | pointlistResultH.Add(pointResultH); 288 | resultHshort++; 289 | } 290 | if (pointResultH_read.name == pointUnKnowH_read.endPoint) 291 | { 292 | double Hresult = pointResultH_read.h - pointUnKnowH_read.dh; 293 | PointResultH pointResultH; 294 | pointResultH.name = pointUnKnowH_read.startPoint; 295 | pointResultH.h = Hresult; 296 | pointlistResultH.Add(pointResultH); 297 | resultHshort++; 298 | } 299 | } 300 | } 301 | Num.resultH += resultHshort; 302 | 303 | } 304 | 305 | //待定点近似高程值去重 306 | //存在多条路线得到同一个待定点的近似高程情况,需要处理重复的待定点近似高程 可以考虑 1.直接去重 和 2. 取重复点高程的平均值 307 | //如果直接去重,pointResult中有name和h两个字段,有些麻烦 308 | //采用平均值方式去重 309 | /* 310 | 实现: 311 | 遍历pointResult,与pointNameId中的点名比对,如果有重合,那么把值存到另一个pointNameIdH中,记录存储该点时存H的次数,取平均值 312 | 313 | 314 | */ 315 | //算了,研究了下去重算法,还是去重吧。。。 316 | for (int i = 0; i < pointlistResultH.Count; i++) 317 | { 318 | PointResultH pointResultH_read = (PointResultH)pointlistResultH[i]; 319 | for (int j = i + 1; j < pointlistResultH.Count; j++) 320 | { 321 | PointResultH pointResultH_read2 = (PointResultH)pointlistResultH[j]; 322 | if (pointResultH_read.name == pointResultH_read2.name) 323 | { 324 | pointlistResultH.RemoveAt(j); 325 | if (i > 0) 326 | { 327 | i--; 328 | } 329 | } 330 | } 331 | } //终于,待定点近似高程值得到了。 于是,要开始矩阵l的构造 332 | #endregion 333 | 334 | //构造l矩阵的数据 335 | double[,] arrayl = new double[Num.levelRoute, 1]; // l = dh - endPointH + startPointH; 336 | for (int i = 0; i < Num.levelRoute; i++) { // 在pointResult中或是在pointKnow中 337 | PointUnKnowH pointUnKnowH_read = (PointUnKnowH)pointlistUnKnow[i]; 338 | for(int j =0;j 0) 515 | { 516 | i--; 517 | } 518 | } 519 | } 520 | } //得到高程平差值 521 | #endregion 522 | 523 | 524 | 525 | //输出结果 526 | rTextBox_output.Text = "点名 " + "调整后H (m) " + System.Environment.NewLine; 527 | //输出调整后未知点的高程 528 | for (int i = 0; i < pointlistFinallyH.Count; i++) 529 | { 530 | PointResultH pointResultH_read = (PointResultH)pointlistFinallyH[i]; 531 | rTextBox_output.AppendText(pointResultH_read.name + " " + pointResultH_read.h + System.Environment.NewLine); 532 | } 533 | 534 | 535 | 536 | 537 | /* 538 | rTextBox_output.Text = "闭合差:" + dFh*1000 + System.Environment.NewLine + 539 | "水准路线总长度:" + dSumD + System.Environment.NewLine + 540 | "每公里高差改正数:" + dFh / dSumD * 1000 + System.Environment.NewLine + 541 | "序号 " + "调整后H (m) " + System.Environment.NewLine; 542 | 543 | //输出调整后未知点的高程 544 | for(int i=0;i 0) 245 | { 246 | i--; 247 | } 248 | } 249 | } 250 | } 251 | NumGps.unKnowCoor = pointlistDaiDing.Count; //去重后的待定点数量即为 实际的 待定点数量,也就是 B矩阵的列数 = 待定点数量 * 3 252 | 253 | double[,] arrayB = new double[NumGps.gpsRoute * 3, NumGps.unKnowCoor * 3]; 254 | for(int i =0;i arrayB[3 * i + 0, 3*(待定点id) + 0 ] 271 | h1 -> arrayB[3 * i + 1, 3*(待定点id) + 1 ] 272 | h1 -> arrayB[3 * i + 2, 3*(待定点id) + 2 ] 273 | */ 274 | //判断 x^ y^ z^ 系数 275 | for (int i = 0; i < NumGps.gpsRoute; i++) //基线数量的循环 276 | { 277 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[i]; 278 | 279 | //如果起点和终点都是已知点,那么,不执行操作,因为arrayB在一开始已经赋值为0;只需改变参数位置的1和-1即可 280 | for(int j=0;j 0) 431 | { 432 | i--; 433 | } 434 | } 435 | } 436 | } //得到了待定点近似坐标 于是,要开始矩阵l的构造 437 | #endregion 438 | 439 | //构造l矩阵的数据 440 | double[,] arrayl = new double[NumGps.gpsRoute*3, 1]; // l = dXij - ( Xj^0 - Xi^0 ) 441 | // 在pointlistKnow中 pointlistResult中 终点近似坐标 - 起点近似坐标 442 | for (int i = 0; i < NumGps.gpsRoute; i++) //先确定基线是哪条 443 | { // 在pointResult中或是在pointKnow中 444 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[i]; 445 | for (int j = 0; j < NumGps.knowCoor; j++) 446 | { 447 | PointKnowCoor pointKnowCoor_read = (PointKnowCoor)pointlistKnow[j]; 448 | for (int k = 0; k < pointlistResultCoor.Count; k++) 449 | { 450 | PointResultCoor pointResultCoor_read = (PointResultCoor)pointlistResultCoor[k]; 451 | if (pointUnKnowCoor_read.endPoint == pointKnowCoor_read.name && pointUnKnowCoor_read.startPoint == pointResultCoor_read.name) { 452 | 453 | arrayl[i * 3 + 0, 0] = pointUnKnowCoor_read.dx - (pointKnowCoor_read.x - pointResultCoor_read.dx); //对应着三行一列的分块矩阵 454 | arrayl[i * 3 + 1, 0] = pointUnKnowCoor_read.dy - (pointKnowCoor_read.y - pointResultCoor_read.dy); 455 | arrayl[i * 3 + 2, 0] = pointUnKnowCoor_read.dz - (pointKnowCoor_read.z - pointResultCoor_read.dz); 456 | } 457 | if (pointUnKnowCoor_read.startPoint == pointKnowCoor_read.name && pointUnKnowCoor_read.endPoint == pointResultCoor_read.name) 458 | { 459 | arrayl[i * 3 + 0, 0] = pointUnKnowCoor_read.dx - (pointResultCoor_read.dx - pointKnowCoor_read.x); //对应着三行一列的分块矩阵 460 | arrayl[i * 3 + 1, 0] = pointUnKnowCoor_read.dy - (pointResultCoor_read.dy - pointKnowCoor_read.y); 461 | arrayl[i * 3 + 2, 0] = pointUnKnowCoor_read.dz - (pointResultCoor_read.dz - pointKnowCoor_read.z); 462 | } 463 | for (int l = 0; l < pointlistResultCoor.Count; l++) 464 | { 465 | PointResultCoor pointResultCoor_read2 = (PointResultCoor)pointlistResultCoor[l]; 466 | if (pointUnKnowCoor_read.endPoint == pointResultCoor_read.name && pointUnKnowCoor_read.startPoint == pointResultCoor_read2.name) 467 | { 468 | arrayl[i * 3 + 0, 0] = pointUnKnowCoor_read.dx - (pointResultCoor_read.dx - pointResultCoor_read2.dx);//对应着三行一列的分块矩阵 469 | arrayl[i * 3 + 1, 0] = pointUnKnowCoor_read.dy - (pointResultCoor_read.dy - pointResultCoor_read2.dy); 470 | arrayl[i * 3 + 2, 0] = pointUnKnowCoor_read.dz - (pointResultCoor_read.dz - pointResultCoor_read2.dz); 471 | } 472 | } 473 | } 474 | } 475 | } 476 | 477 | //构造P矩阵的数据 478 | double[,] arrayP = new double[NumGps.gpsRoute*3, NumGps.unKnowCoor*3]; // P = 1 / sigma^2 479 | //先把P矩阵赋初值为0 480 | for (int i = 0; i < NumGps.gpsRoute * 3; i++) { 481 | for (int j = 0; j < NumGps.unKnowCoor * 3;j++ ) { 482 | arrayP[i,j] = 0 ; 483 | } 484 | } 485 | //把基线方差阵构造出来, 486 | //从pointUnKnow中取出数据,转换为Matrix类型,因为在计算P矩阵时,用的是基线方差阵的逆矩阵,所以在存到pointlistSigma2中时,使用Matrix类的Inverse()方法进行转换 487 | for (int i = 0; i < NumGps.gpsRoute; i++) 488 | { 489 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[i]; 490 | double[,] sigma2 = new double[3, 3]; 491 | 492 | sigma2[0, 0] = pointUnKnowCoor_read.row1_col1; 493 | sigma2[0, 1] = pointUnKnowCoor_read.row1_col2; 494 | sigma2[0, 2] = pointUnKnowCoor_read.row1_col3; 495 | 496 | sigma2[1, 0] = pointUnKnowCoor_read.row2_col1; 497 | sigma2[1, 1] = pointUnKnowCoor_read.row2_col2; 498 | sigma2[1, 2] = pointUnKnowCoor_read.row2_col3; 499 | 500 | sigma2[2, 0] = pointUnKnowCoor_read.row3_col1; 501 | sigma2[2, 1] = pointUnKnowCoor_read.row3_col2; 502 | sigma2[2, 2] = pointUnKnowCoor_read.row3_col3; 503 | 504 | Matrix mtxSigma2 = new Matrix(sigma2); 505 | pointlistSigma2.Add(mtxSigma2.Inverse()); 506 | 507 | } 508 | for (int i = 0; i < NumGps.gpsRoute;i++ ) { 509 | Matrix mtxSigma2 = (Matrix)pointlistSigma2[i]; //一条基线对应一个基线方差阵 510 | 511 | arrayP[i * 3 + 0, i * 3 + 0] = mtxSigma2[0, 0]; //P矩阵的第一行 512 | arrayP[i * 3 + 0, i * 3 + 1] = mtxSigma2[0, 1]; 513 | arrayP[i * 3 + 0, i * 3 + 2] = mtxSigma2[0, 2]; 514 | 515 | arrayP[i * 3 + 1, i * 3 + 0] = mtxSigma2[1, 0]; //P矩阵的第二行 516 | arrayP[i * 3 + 1, i * 3 + 1] = mtxSigma2[1, 1]; 517 | arrayP[i * 3 + 1, i * 3 + 2] = mtxSigma2[1, 2]; 518 | 519 | arrayP[i * 3 + 2, i * 3 + 0] = mtxSigma2[2, 0]; //P矩阵的第三行 520 | arrayP[i * 3 + 2, i * 3 + 1] = mtxSigma2[2, 1]; 521 | arrayP[i * 3 + 2, i * 3 + 2] = mtxSigma2[2, 2]; 522 | 523 | } 524 | 525 | 526 | 527 | 528 | 529 | 530 | //列观测值误差方程 531 | /* 532 | * @原理: 533 | * 每个待定高程点对应着一个误差方程 534 | * 在间接平差中,待定高程点的数量对应着误差方程的数量 535 | * 536 | * 537 | * @实现: 538 | * 思路为: 539 | * 540 | * Num.resultH 记录了待定高程点高程近似值 的数量, 541 | * 这个,也就是误差方程的个数了 542 | * 543 | * PointResultH 记录了计算后得到的 待定高程点高程近似值信息, 544 | * 包括:点名(name)、高程(h) 545 | * 546 | * @ Matrix B: 记录误差方程系数阵 547 | * 如果有参数,也就是有待定点,有两种情况: 548 | * 在起点,那么其系数为 -1 549 | * 在终点,那么其系数为 1 550 | * 如果没有参数,那么其系数为 0 551 | * 552 | * @ Matrix l: 记录自由项阵l,其值全部为常数 553 | * 公式为:v1 = x^ - ( h1 - X1^0 +Ha) 554 | * l = hi - Xi^0 + H0 555 | * l = 两站间高差 - 终点高程 + 起点高程 556 | * 557 | * debug:思路有问题, 558 | * 按陶老师讲的, 559 | * 观测值个数,对应着B矩阵的行数 560 | * 待定点的个数,对应着B矩阵的列数 561 | * 562 | */ 563 | Matrix matrixB = new Matrix(arrayB); 564 | Matrix matrixP = new Matrix(arrayP); 565 | Matrix matrixl = new Matrix(arrayl); 566 | 567 | //Indirect indirect = new Indirect(matrixB,matrixl,matrixP); 568 | 569 | Matrix Nbb = matrixB.Transpose() * matrixP * matrixB; 570 | Matrix W = matrixB.Transpose() * matrixP * matrixl; 571 | Matrix x = Nbb.Inverse() * W; 572 | Matrix V = matrixB * x - matrixl; 573 | 574 | // pointlistResultCoor 存储了待定点的近似坐标值 575 | 576 | //坐标增量观测值数组 577 | double [,] coorObservation = new double[NumGps.gpsRoute,3]; 578 | for (int i = 0; i < NumGps.gpsRoute; i++) 579 | { 580 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[i]; 581 | coorObservation[i, 0] = pointUnKnowCoor_read.dx; 582 | coorObservation[i, 1] = pointUnKnowCoor_read.dy; 583 | coorObservation[i, 2] = pointUnKnowCoor_read.dz; 584 | } 585 | 586 | //平差后的坐标增量数组 587 | double[,] coorLastPing = new double[NumGps.gpsRoute, 3]; 588 | for (int i = 0; i < NumGps.gpsRoute; i++) 589 | { 590 | for (int j = 0; j < 3;j++ ) { 591 | coorLastPing[i, j] = 0; //先为平差后的坐标增量数组赋初值为0 592 | } 593 | } 594 | 595 | Matrix matCoorObservation = new Matrix(coorObservation); 596 | Matrix matCoorLastPing = new Matrix(coorLastPing); 597 | 598 | 599 | //V矩阵需要处理下,由原来的{ xi, yi, zi, xj, yj, zj, xk, yk, zk}变为 { {xi,yi,zi}, {xj,yj,zj}, {xk,yk,zk} } 600 | double[,] arrayV = new double[NumGps.gpsRoute,3]; 601 | for (int i = 0; i < NumGps.gpsRoute;i++ ) { 602 | arrayV[i, 0] = V[i * 3 + 0, 0]; 603 | arrayV[i, 1] = V[i * 3 + 1, 0]; 604 | arrayV[i, 2] = V[i * 3 + 2, 0]; 605 | } 606 | 607 | //平差后的坐标增量 = 观测得到的坐标增量 + 间接平差得到的坐标增量改正数 608 | matCoorLastPing = matCoorObservation + V; 609 | 610 | //计算平差后的坐标 611 | #region 推算待定点平差后的坐标 612 | for (int i = 0; i < NumGps.knowCoor; i++) 613 | { 614 | PointKnowCoor pointKnowCoor_read = (PointKnowCoor)pointlistKnow[i]; 615 | for (int j = 0; j < NumGps.gpsRoute; j++) 616 | { 617 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[j]; 618 | if (pointKnowCoor_read.name == pointUnKnowCoor_read.startPoint) 619 | { 620 | PointResultCoor pointResultCoor; 621 | pointResultCoor.name = pointUnKnowCoor_read.endPoint; 622 | pointResultCoor.dx = pointKnowCoor_read.x + matCoorLastPing[j, 0]/*pointUnKnowCoor_read.dx*/; 623 | pointResultCoor.dy = pointKnowCoor_read.y + matCoorLastPing[j, 1]; 624 | pointResultCoor.dz = pointKnowCoor_read.z + matCoorLastPing[j, 2]; 625 | pointlistFinallyCoor.Add(pointResultCoor); 626 | NumGps.finallyCoor++; 627 | } 628 | if (pointKnowCoor_read.name == pointUnKnowCoor_read.endPoint) 629 | { 630 | PointResultCoor pointResultCoor; 631 | pointResultCoor.name = pointUnKnowCoor_read.startPoint; 632 | pointResultCoor.dx = pointKnowCoor_read.x - matCoorLastPing[j, 0]; 633 | pointResultCoor.dy = pointKnowCoor_read.y - matCoorLastPing[j, 1]; 634 | pointResultCoor.dz = pointKnowCoor_read.z - matCoorLastPing[j, 2]; 635 | pointlistFinallyCoor.Add(pointResultCoor); 636 | NumGps.finallyCoor++; 637 | } 638 | } 639 | } 640 | 641 | 642 | //与已知点进行计算具有唯一性,再进行pointFinally与pointUnKnowCoor比对时,可能会出现一次遍历不能达到求出所有待定点的坐标值情况,需要判断 pointFinally数量与pointUnKnownCoor的数量关系,数量相等才能结束循环 643 | while (NumGps.unKnowCoor != NumGps.finallyCoor) 644 | { 645 | 646 | int finallyCoorshort = 0; //临时存储pointFinallyH增加的数量,循环结束后再添加到NumGps.finallyCoor中 647 | for (int i = 0; i < NumGps.gpsRoute; i++) //循环条件确定,关键是遍历PointUnKnowH,再匹配PointResultH结果 648 | { 649 | PointUnKnowCoor pointUnKnowCoor_read = (PointUnKnowCoor)pointlistUnKnow[i]; 650 | 651 | for (int j = 0; j < NumGps.finallyCoor; j++) 652 | { 653 | PointResultCoor pointResultCoor_read = (PointResultCoor)pointlistFinallyCoor[i]; 654 | if (pointResultCoor_read.name == pointUnKnowCoor_read.startPoint) 655 | { 656 | PointResultCoor pointResultCoor; 657 | pointResultCoor.name = pointUnKnowCoor_read.endPoint; 658 | pointResultCoor.dx = pointResultCoor_read.dx + matCoorLastPing[i, 0]; 659 | pointResultCoor.dy = pointResultCoor_read.dy + matCoorLastPing[i, 1]; 660 | pointResultCoor.dz = pointResultCoor_read.dz + matCoorLastPing[i, 2]; 661 | pointlistResultCoor.Add(pointResultCoor); 662 | finallyCoorshort++; 663 | } 664 | if (pointResultCoor_read.name == pointUnKnowCoor_read.endPoint) 665 | { 666 | PointResultCoor pointResultCoor; 667 | pointResultCoor.name = pointUnKnowCoor_read.startPoint; 668 | pointResultCoor.dx = pointResultCoor_read.dx - matCoorLastPing[i, 0]; 669 | pointResultCoor.dy = pointResultCoor_read.dy - matCoorLastPing[i, 1]; 670 | pointResultCoor.dz = pointResultCoor_read.dz - matCoorLastPing[i, 2]; 671 | pointlistResultCoor.Add(pointResultCoor); 672 | finallyCoorshort++; 673 | } 674 | } 675 | } 676 | NumGps.finallyCoor += finallyCoorshort; 677 | } 678 | 679 | //待定点近似坐标去重 680 | //存在多条路线得到同一个待定点的近似坐标情况,需要处理重复的待定点近似坐标 可以考虑 1.直接去重 和 2. 取重复点高程的平均值 681 | //如果直接去重,pointResult中有name和h两个字段,有些麻烦 682 | //采用平均值方式去重 683 | /* 684 | 实现: 685 | 遍历pointResult,与pointNameId中的点名比对,如果有重合,那么把值存到另一个pointNameIdH中,记录存储该点时存H的次数,取平均值 686 | 687 | 688 | */ 689 | //算了,研究了下去重算法,还是去重吧。。。 690 | for (int i = 0; i < pointlistFinallyCoor.Count; i++) 691 | { 692 | PointResultCoor pointResultCoor_read = (PointResultCoor)pointlistFinallyCoor[i]; 693 | for (int j = i + 1; j < pointlistFinallyCoor.Count; j++) 694 | { 695 | PointResultCoor pointResultCoor_read2 = (PointResultCoor)pointlistFinallyCoor[j]; 696 | if (pointResultCoor_read.name == pointResultCoor_read2.name) 697 | { 698 | pointlistFinallyCoor.RemoveAt(j); 699 | if (i > 0) 700 | { 701 | i--; 702 | } 703 | } 704 | } 705 | } //得到平差后的待定点坐标值 706 | #endregion 707 | 708 | 709 | //输出结果 710 | rTBox_output.Text = "点名 " + "坐标 (m) " + System.Environment.NewLine; 711 | //输出调整后未知点的高程 712 | for (int i = 0; i < pointlistFinallyCoor.Count; i++) 713 | { 714 | PointResultCoor pointResultCoor_read = (PointResultCoor)pointlistFinallyCoor[i]; 715 | rTBox_output.AppendText(pointResultCoor_read.name + " " + pointResultCoor_read.dx + " " + pointResultCoor_read.dy + " " + pointResultCoor_read.dz + System.Environment.NewLine); 716 | } 717 | 718 | 719 | 720 | 721 | /* 722 | rTextBox_output.Text = "闭合差:" + dFh*1000 + System.Environment.NewLine + 723 | "水准路线总长度:" + dSumD + System.Environment.NewLine + 724 | "每公里高差改正数:" + dFh / dSumD * 1000 + System.Environment.NewLine + 725 | "序号 " + "调整后H (m) " + System.Environment.NewLine; 726 | 727 | //输出调整后未知点的高程 728 | for(int i=0;i