91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 32KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-16
  • 語言: 其他
  • 標簽: DEM??

資源簡介

世界地圖DEM數據,數據內容完整,能夠幫助你進行很好的地圖開發!

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?System.Collections;

namespace?DEM
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????readTXT();
????????????maxMin();
????????????numofrowcol();
??????????//??pointBelong();
????????????//cordinateofpoint();
????????????altitudeofponts();
???????

???????????
????????}
????????private?double[]?txt=new?double?[8974];//如何實現動態二維數組?
????????private?double[]?xymaxmin?=?new?double[4]?{10000010000000?};//x小,y小,x大,y大
????????private?int[]?rowcol?=?new?int[2];
????????//讀文本到二維數組
????????public?void??readTXT()
????????{
????????????char?delimiterchar?=?‘‘;
????????????try
????????????{
????????????????using?(StreamReader?sr?=?new?StreamReader(“f:\\DEM\\dem.txt“))
????????????????{
????????????????????string?line;
????????????????????int?row?=?1?col?=?0;
????????????????????while?((line?=?sr.ReadLine())?!=?null)
????????????????????{
????????????????????????string[]?lineOftxt?=?line.Split(delimiterchar);
????????????????????????foreach?(string?num?in?lineOftxt)
????????????????????????{
????????????????????????????txt[row?col]?=?double.Parse(num);
????????????????????????????col++;
????????????????????????}
????????????????????????row++;?col?=?0;


????????????????????}
????????????????}

????????????}
????????????catch?(Exception?e)
????????????{
????????????????Console.WriteLine(“the?file?could?not?be?read“);
????????????????Console.WriteLine(e.Message);
????????????
????????????}
???????????????
????
????????}
????????//格網間距為20計算m*n
????????public?void??numofrowcol()
????????{
????????????rowcol[0]?=?(int)((xymaxmin[2]?-?xymaxmin[0])?/?20)?+?1;//列
????????????rowcol?[1]=(int?)((xymaxmin?[3]-xymaxmin?[1])/20)+1;//行
??????????
?????????}
//計算機坐標范圍
????????public?void??maxMin()
????????{
???????????for?(int?row?=?1;?row?<=?896;?row++)
????????????{
????????????????if?(xymaxmin[0]?>?txt[row?1])
????????????????????xymaxmin[0]?=?txt[row?1];
????????????????if?(xymaxmin[2]?????????????????????xymaxmin[2]?=?txt[row?1];
????????????????if?(xymaxmin[1]?>?txt[row?2])
????????????????????xymaxmin[1]?=?txt[row?2];
????????????????if?(xymaxmin[3]?????????????????????xymaxmin[3]?=?txt[row?2];
????????????
????????????}

???
????????}
???//計算每個點歸屬
????????public?string[]?pointBelong(int?numofrowint?numofcol?)
????????{
??????????
????????????int?row=0;
????????????int?col=0;
????????????string?[]?pointbelong=new?string?[numofrow?numofcol?];
????????????for?(int?i?=?1;?i?<=?896;?i++)
????????????{
????????????????col?=?(int)((txt[i?1]?-?xymaxmin[0])?/?20);
????????????????row?=?(int)(

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5612??2009-03-16?19:05??DEM\DEM\Properties\Resources.resx

?????文件????????249??2009-03-16?19:05??DEM\DEM\Properties\Settings.settings

?????文件???????1178??2009-03-16?19:05??DEM\DEM\Properties\AssemblyInfo.cs

?????文件???????2860??2009-03-16?19:05??DEM\DEM\Properties\Resources.Designer.cs

?????文件???????1086??2009-03-16?19:05??DEM\DEM\Properties\Settings.Designer.cs

?????文件???????4417??2009-03-17?18:08??DEM\DEM\Form1.cs

?????文件???????3213??2009-03-16?19:16??DEM\DEM\DEM.csproj

?????文件???????5632??2005-11-11?22:25??DEM\DEM\bin\Debug\DEM.vshost.exe

?????文件??????20480??2009-03-17?16:41??DEM\DEM\bin\Debug\DEM.exe

?????文件??????26112??2009-03-17?16:41??DEM\DEM\bin\Debug\DEM.pdb

?????文件????????180??2009-03-16?19:16??DEM\DEM\obj\Debug\DEM.Form1.resources

?????文件????????180??2009-03-16?19:16??DEM\DEM\obj\Debug\DEM.Properties.Resources.resources

?????文件????????842??2009-03-16?19:16??DEM\DEM\obj\Debug\DEM.csproj.GenerateResource.Cache

?????文件??????20480??2009-03-17?16:41??DEM\DEM\obj\Debug\DEM.exe

?????文件??????26112??2009-03-17?16:41??DEM\DEM\obj\Debug\DEM.pdb

?????文件????????240??2009-03-17?16:48??DEM\DEM\obj\DEM.csproj.FileList.txt

?????文件????????462??2009-03-16?19:05??DEM\DEM\Program.cs

?????文件???????1458??2009-03-16?19:15??DEM\DEM\Form1.Designer.cs

?????文件???????5814??2009-03-16?19:15??DEM\DEM\Form1.resx

?????文件????????898??2009-03-16?19:05??DEM\DEM.sln

????..A..H.?????12288??2009-03-17?14:27??DEM\DEM.suo

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\obj\Debug\TempPE

?????目錄??????????0??2009-03-16?19:44??DEM\DEM\obj\Debug\Refactor

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\bin\Debug

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\obj\Debug

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\Properties

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\bin

?????目錄??????????0??2009-03-16?19:05??DEM\DEM\obj

?????目錄??????????0??2009-03-16?19:05??DEM\DEM

?????目錄??????????0??2009-03-16?19:05??DEM

............此處省略3個文件信息

評論

共有 條評論