1. Data Model
A. Level of Abstraction
GIS是現實世界的電腦模型
Data Models for Object-Component Technology
由電腦觀點來看 level of abstration
http://en.wikipedia.org/wiki/Abstraction_(computer_science)
http://en.wikipedia.org/wiki/Abstraction_layer
B. 電腦中的資料表示法
電腦中儲存資料基本單元為 0,1 開關。
資料類型:
1. text 文字 -對照表
2. binary - 整數,實數。
應用意義:
1. 必須知道資料類型。
2. 資料量有固定大小。
[B 8.1, 8.2]
Computer number format - Wikipedia, the free encyclopedia
Computer numbering formats - Wikipedia/
IEEE-754 Floating-Point Conversion from Floating-Point to Hexadecimal
編碼查詢
(source: http://www.gisdevelopment.net/proceedings/gita/2001/system/images/sa002a.gif)
(source:http://www.gisdevelopment.net/proceedings/gita/2001/system/images/sa002b.gif)
資料庫入門書籍
C. 向量/網格
<要點:GIS課本中所敘述的是LOGICAL 層次的資料模式>
What is raster data?-ArcGIS Desktop Help 9.2
D. 檔案格式
<要點:同一種LOGICAL DATA MODEL,,可實做成各種檔案格式>
網格資料模式
ESRI GRID
ESRI grid - Wikipedia, the free encyclopedia
About the ESRI grid format-ArcGIS Desktop Help 9.2
<要點:ARCGIS GRID分成整數及浮點數兩種,整數類型可連結屬性表>
<
要點:注意ARCGIS可讀取各種格式中,使用的資料型態>
向量資料模式
Shape File
Shapefile - Wikipedia, the free encyclopedia
dbase
DBF File structure (簡要說明)
Xbase File Format Description(詳述)
KML
<要點:KML使用XML記載空間資訊,並且將屬性以文字方式記錄>
DXF
AutoCAD DXF: Summary from the Encyclopedia of Graphics File Formats
<要點:AUTOCAD是屬於電腦輔助設計軟體,DXF是AUTOCAD用來交換資料的檔案格式>
<要點:ESRI各種資料類型演進的介紹>
E. 關聯式資料庫(Relational Database)
資料庫系統是一種軟體用來儲存與應用大量資料的電腦軟體。
資料庫特性:
- 多人同時使用
- 多應用
- 高效能(快速存取)
- 資料完整與安全(使用者控管、備份、意外回復)
資料庫是利用資料庫系統所建立一些相關關連的資料。
最基本的查詢功能:
- 橫向擷取(selection)─擷取表格中部分記錄
- 縱向擷取(projection)─擷取表格中部份欄位
- 結合(join)─將兩個表格合併。
大型
個人
- ACCESS
- SQLite
SQL
Access 2010 說明及使用方法 - Access - Office.com
Microsoft Access SQL Reference
PostgreSQL: PostgreSQL 9.1.14 Documentation
Building an SQL expression in ArcGIS- Desktop Help 9.3
ARCGIS SQL Reference- ArcGIS Desktop Help 9.3
GIS與資料庫
GIS 包含地理位置資料與屬性資料。根據和資料庫關係,GIS資料儲存的方式幾種。
- 不使用資料庫:如KML
- 位置資料使用專屬檔案格式,屬性使用資料庫:如Shape file, Mapinfo table
- 位置資料及屬性均使用資料庫:ESRI Geodatabase, Oracle Spatial
GIS使用關連式資料庫的好處
- 用現有的關連式資料庫功能
- 利用的關連式資料
F. Spatial Data in Relational Database
G. ArcGIS Geodata
Geodatabase ARCGIS
ArcGIS Desktop Help 9.3 - An overview of the geodatabase
ArcGIS Help 10.2 - What is geodata?
H. Data Model Design
UML速成
Holub Associates: UML Reference Card
ESRI 各種Data Model