資源簡(jiǎn)介
C#+ArcEngine:Visual Studio 2010 加載打開(kāi)Las點(diǎn)云數(shù)據(jù)(窗體+代碼)

代碼片段和文件信息
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?ESRI.ArcGIS.GeoDatabaseExtensions;
using?ESRI.ArcGIS.Geodatabase;
using?ESRI.ArcGIS.Carto;
namespace?加載Las點(diǎn)云數(shù)據(jù)
{
????public?partial?class?MainForm?:?Form
????{
????????public?MainForm()
????????{
????????????InitializeComponent();
????????}
????????//創(chuàng)建Lasd
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????OpenFileDialog?LasFile?=?new?OpenFileDialog();
????????????LasFile.Filter?+=?“點(diǎn)云數(shù)據(jù)(*.las)|*.las“;
????????????if?(LasFile.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????string?LasFilePath?=?LasFile.FileName;
????????????????string?FileFolder?=?System.IO.Path.GetDirectoryName(LasFilePath);
????????????????string?FileName?=?System.IO.Path.GetFileName(LasFilePath);
????????????????ILasDataset?pLasDataset?=?new?LasDatasetClass();
????????????????pLasDataset.SaveAs(LasFilePath?+?“d“?true);
????????????????ILasDatasetEdit?pLasDatasetEdit?=?(ILasDatasetEdit)pLasDataset;
????????????????pLasDatasetEdit.AddFile(LasFilePath);
????????????????pLasDatasetEdit.Save();
????????????}
????????}
????????//打開(kāi)Lasd數(shù)據(jù)集
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????OpenFileDialog?openFile?=?new?OpenFileDialog();
????????????openFile.Filter?+=?“點(diǎn)云數(shù)據(jù)(*.lasd)|*.lasd“;
????????????if?(openFile.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????string?LasdFilePath?=?openFile.FileName;
????????????????string?FileFolder?=?System.IO.Path.GetDirectoryName(LasdFilePath);
????????????????string?FileName?=?System.IO.Path.GetFileName(LasdFilePath);
????????????????IWorkspaceFactory?pwsf?=?new?LasDatasetWorkspaceFactoryClass();
????????????????IWorkspace?pws?=?pwsf.OpenFromFile(FileFolder?0);
????????????????ILasDatasetWorkspace?ppws?=?(ILasDatasetWorkspace)pws;
????????????????ILasDataset?ppds?=?ppws.OpenLasDataset(FileName);
????????????????ILasDatasetlayer?ppdsl?=?new?LasDatasetlayerClass();
????????????????ppdsl.Dataset?=?ppds;
????????????????axMapControl1.Addlayer(ppdsl);
????????????????axMapControl1.ActiveView.Refresh();
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????16384??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Debug\加載Las點(diǎn)云數(shù)據(jù).exe
?????文件??????26112??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Debug\加載Las點(diǎn)云數(shù)據(jù).pdb
?????文件??????11600??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Debug\加載Las點(diǎn)云數(shù)據(jù).vshost.exe
?????文件????????490??2016-07-16?19:44??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Debug\加載Las點(diǎn)云數(shù)據(jù).vshost.exe.manifest
?????文件???????2378??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\MainForm.cs
?????文件???????7021??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\MainForm.Designer.cs
?????文件??????10607??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\MainForm.resx
?????文件???????2867??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7285??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????753??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).csproj.FileListAbsolute.txt
?????文件????????978??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).csproj.GenerateResource.Cache
?????文件??????16384??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).exe
?????文件???????3392??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).MainForm.resources
?????文件??????26112??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).pdb
?????文件????????180??2017-03-10?16:27??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\加載Las點(diǎn)云數(shù)據(jù).Properties.Resources.resources
?????文件????????592??2017-03-10?16:30??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Program.cs
?????文件???????1374??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Properties\AssemblyInfo.cs
?????文件???????2894??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Properties\Resources.Designer.cs
?????文件???????5612??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Properties\Resources.resx
?????文件???????1108??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Properties\Settings.Designer.cs
?????文件????????249??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\Properties\Settings.settings
?????文件???????6257??2017-03-10?16:27??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù).csproj
?????文件????????905??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù).sln
????..A..H.?????25600??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù).suo
?????文件???????9407??2017-03-10?16:12??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\點(diǎn)云.las
?????目錄??????????0??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug\TempPE
?????目錄??????????0??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86\Debug
?????目錄??????????0??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Debug
?????目錄??????????0??2017-02-28?10:25??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\bin\Release
?????目錄??????????0??2017-03-10?16:34??C#+ArcEngine:加載Las點(diǎn)云數(shù)據(jù)\加載Las點(diǎn)云數(shù)據(jù)\obj\x86
............此處省略8個(gè)文件信息
評(píng)論
共有 條評(píng)論