資源簡介
本程序使用如下六種方法計算坡度: ①簡單差分,②二階差分,③三階反距離平方權差分,④三階反距離權差分,⑤三階不帶權差分,⑥邊框差分
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
namespace?slope
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????public?OpenFileDialog?fd?=?new?OpenFileDialog();
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????FileStream?fs?=?new?FileStream(“G:\\slopetest.txt“?FileMode.Open?FileAccess.Read);
????????????StreamReader?sr?=?new?StreamReader(fs);
????????????sr.baseStream.Seek(0?SeekOrigin.Begin);?string?str?=?sr.ReadToEnd();?textBox1.Text?=?str;
???????????
???????????
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)//簡單差分
????????{
????????????FileStream?fs?=?new?FileStream(“G:\\slopetest.txt“?FileMode.Open?FileAccess.Read);
????????????StreamReader
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????15360??2016-12-12?16:39??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\bin\Debug\slope.exe
?????文件??????34304??2016-12-12?16:39??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\bin\Debug\slope.pdb
?????文件??????11600??2016-12-12?16:42??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\bin\Debug\slope.vshost.exe
?????文件????????490??2016-07-16?19:44??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\bin\Debug\slope.vshost.exe.manifest
?????文件??????11006??2016-12-12?15:50??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Form1.cs
?????文件???????9407??2016-12-12?15:25??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Form1.Designer.cs
?????文件???????6020??2016-12-12?15:25??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Form1.resx
?????文件???????5420??2016-12-11?22:00??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6395??2016-12-12?16:39??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????842??2016-12-12?16:42??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.csproj.FileListAbsolute.txt
?????文件????????975??2016-12-12?15:25??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.csproj.GenerateResource.Cache
?????文件???????9174??2016-12-11?22:03??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.csprojResolveAssemblyReference.cache
?????文件??????15360??2016-12-12?16:39??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.exe
?????文件????????180??2016-12-12?15:25??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.Form1.resources
?????文件??????34304??2016-12-12?16:39??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.pdb
?????文件????????180??2016-12-11?16:42??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\slope.Properties.Resources.resources
?????文件????????489??2016-12-11?20:07??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Program.cs
?????文件???????1342??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Properties\AssemblyInfo.cs
?????文件???????2862??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Properties\Resources.Designer.cs
?????文件???????5612??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Properties\Resources.resx
?????文件???????1092??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Properties\Settings.Designer.cs
?????文件????????249??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\Properties\Settings.settings
?????文件???????3669??2016-12-11?16:42??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\slope.csproj
?????文件????????857??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope.sln
????..A..H.?????20480??2016-12-12?16:46??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope.suo
?????文件???????1459??2016-12-11?17:09??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slopetest.txt
?????文件??????10933??2016-12-12?16:53??109092014184?顏麗玲?數字高程模型?實驗五編程文件\坡度計算程序代碼文件.txt
?????目錄??????????0??2016-12-11?16:32??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug\TempPE
?????目錄??????????0??2016-12-12?16:49??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\obj\x86\Debug
?????目錄??????????0??2016-12-12?16:49??109092014184?顏麗玲?數字高程模型?實驗五編程文件\slope\bin\Debug
............此處省略9個文件信息
- 上一篇:c#面向對象的ATM銀行自助存取款機程序
- 下一篇:c#游戲設計
評論
共有 條評論