資源簡介
唐山旅游信息系統,可以做課程設計,畢業設計。
包含以下功能:地圖的編輯,右鍵屬性,瀏覽,制版,查看屬性表,修改符號。
查詢功能,緩沖區功能,路徑分析功能。
專題圖:餅狀圖,柱狀圖。
唐山旅游信息展示。
使用了第三方控件。
代碼片段和文件信息
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.Carto;
using?ESRI.ArcGIS.Controls;
using?ESRI.ArcGIS.esriSystem;
using?ESRI.ArcGIS.SystemUI;
using?ESRI.ArcGIS.Geometry;
using?ESRI.ArcGIS.Geodatabase;
namespace?城市旅游_唐山_
{
????public?partial?class?AttributeTableFrm?:Form
????{
????????public?AttributeTableFrm()
????????{
????????????InitializeComponent();
????????}
????????public?DataTable?attributeTable;
????????private?void?AttributeTableFrm_Load(object?sender?EventArgs?e)
????????{
????????}
????????private?static?DataTable?CreateDataTableBylayer(ilayer?player?string?tableName)
????????{
????????????//?創建一個DataTable表?
????????????DataTable?pDataTable?=?new?DataTable(tableName);
????????????//?取得ITable?接口?
????????????ITable?pTable?=?player?as?ITable;
????????????IField?pField?=?null;
????????????DataColumn?pDataColumn;
????????????//?根據每個字段的屬性建立?DataColumn對象?
????????????for?(int?i?=?0;?i?????????????{
????????????????pField?=?pTable.Fields.get_Field(i);
????????????????//?新建一個DataColumn并設置其屬性?
????????????????pDataColumn?=?new?DataColumn(pField.Name);
????????????????if?(pField.Name?==?pTable.OIDFieldName)
????????????????{
????????????????????pDataColumn.Unique?=?true;//?字段值是否唯一?
????????????????}
????????????????//?字段值是否允許為空?
????????????????pDataColumn.AllowDBNull?=?pField.IsNullable;
????????????????//?字段別名?
????????????????pDataColumn.Caption?=?pField.AliasName;
????????????????//?字段數據類型?
????????????????pDataColumn.DataType?=?System.Type.GetType(ParseFieldType(pField.Type));
????????????????//?字段默認值?
????????????????pDataColumn.DefaultValue?=?pField.DefaultValue;
????????????????//?當字段為String?類型是設置字段長度?
????????????????if?(pField.VarType?==?8)
????????????????{
????????????????????pDataColumn.MaxLength?=?pField.Length;
????????????????}
????????????????//?字段添加到表中?
????????????????pDataTable.Columns.Add(pDataColumn);
????????????????pField?=?null;
????????????????pDataColumn?=?null;
????????????}
????????????return?pDataTable;
????????}
????????public?static?string?ParseFieldType(esriFieldType?fieldType)
????????{
????????????switch?(fieldType)
????????????{
????????????????case?esriFieldType.esriFieldTypeBlob:
????????????????????return?“System.String“;
????????????????case?esriFieldType.esriFieldTypeDate:
????????????????????return?“System.DateTime“;
????????????????case?esriFieldType.esriFieldTypeDouble:
????????????????????return?“System.Double“;
????????????????case?esriFieldType.esriFieldTypeGeometry:
????????????????????return?“System.String“;
????????????????case?esriFieldType.esriFieldTypeGlobalID:
????????????????????return?“System.String“;
????????????????case?esriFieldType.esriFieldTypeGUID:
????????????????????return?“System.String“;
????????????????case?esriFi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\obj\
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\obj\x86\
?????目錄???????????0??2012-06-20?16:06??城市旅游(唐山)fff\obj\x86\Debug\
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\城市旅游(唐山)\
?????文件?????????914??2012-06-27?20:23??城市旅游(唐山)fff\城市旅游(唐山).sln
?????文件???????69632??2012-06-28?15:34??城市旅游(唐山)fff\城市旅游(唐山).suo
?????文件????????7399??2012-06-25?22:57??城市旅游(唐山)fff\城市旅游(唐山)\AttributeTableFrm.cs
?????文件????????2501??2012-06-25?22:57??城市旅游(唐山)fff\城市旅游(唐山)\AttributeTableFrm.Designer.cs
?????文件????????5817??2012-06-25?22:57??城市旅游(唐山)fff\城市旅游(唐山)\AttributeTableFrm.resx
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\城市旅游(唐山)\bin\
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\
?????目錄???????????0??2012-06-28?15:00??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\
?????文件??????????64??2012-06-28?10:26??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\BusNetwork.ldb
?????文件????76976128??2012-06-28?10:26??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\BusNetwork.MDB
?????文件?????????128??2012-06-28?15:34??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\唐山公交.ldb
?????文件????17469440??2012-06-25?16:39??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\唐山公交.mdb
?????文件??????878080??2012-06-28?11:09??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\唐山市區圖.mxd
?????文件??????????64??2012-06-28?15:34??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\唐山數據庫.ldb
?????文件????12824576??2012-06-28?11:43??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\Data\唐山數據庫.mdb
?????目錄???????????0??2012-06-28?11:15??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\
?????文件??????217712??2012-06-20?14:55??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\南湖.jpg
?????目錄???????????0??2012-06-28?09:53??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\
?????文件??????199733??2012-06-26?11:20??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\南湖.jpg
?????文件??????188516??2012-06-26?11:17??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\唐山港大廈.jpg
?????文件??????225070??2012-06-26?11:15??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\廣場.jpg
?????文件???????18944??2012-06-26?11:23??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\新建?Microsoft?Word?文檔.doc
?????文件??????105334??2012-06-26?11:19??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\百貨大樓.jpg
?????文件??????186765??2012-06-26?11:11??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\唐山\紀念館.jpg
?????文件???????96048??2012-06-20?15:28??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\大釗公園.jpg
?????文件??????209817??2012-06-20?15:25??城市旅游(唐山)fff\城市旅游(唐山)\bin\Debug\picture\惠豐湖.jpg
............此處省略76個文件信息
- 上一篇:Roboware使用手冊0.711
- 下一篇:2000年中國城市統計年鑒
評論
共有 條評論