ArcGIS三大檔案格式解析
Shape資料 Shapefile是ArcView GIS 3.x的原生資料格式,屬於簡單要素類,用點、線、多邊形儲存要素的形狀,卻不能儲存拓撲關係,具有簡單、快速顯示的優點。一個shapefile是由若干個檔案組成的,空間資訊和屬性資訊分離儲存,所以稱之為“基於檔案”。 每個shapefile,都至少有這三個檔案組成,其中: *.shp 儲存的是幾何要素的的空間資訊,也就是XY座標 *.shx 儲存的是有關*.shp儲存的索引資訊。它記錄了在*.shp中,空間資料是如何儲存的,XY座標的輸入焦點在哪裡,有多少XY座標組等資訊 *.dbf 儲存地理資料的屬性資訊的dBase表 這三個檔案是一個shapefile的基本檔案,shapefile還可以有其他一些檔案,但所有這些檔案都與該shapefile同名,並且儲存在同一路徑下。 其它較為常見的檔案: *.prj 如果shapefile定義了座標系統,那麼它的空間參考資訊將會儲存在*.prj檔案中 *.shp.xml 這是對shapefile進行中繼資料瀏覽後產生的xml中繼資料檔案 *.sbn和*.sbx 這兩個儲存的是shapefile的空間索引,它能加速空間資料的讀取。這兩個檔案是在對資料進行操作、瀏覽或串連後才產生的,也可以通過ArcToolbox >Data Management Tools >Indexes >Add spatial Index工具產生。 當使用ArcCatalog對shapefile進行建立、移動、刪除或重新命名等操作,或使用ArcMap對shapefile進行編輯時,ArcCatalog將自動維護資料的完整性,將所有檔案同步改變。所以需要使用ArcCatalog管理shapefile。 雖然Shapefile無法儲存拓撲關係,但它並不是普通用於顯示的圖形檔案,作為地理資料,它自身有拓撲的。比如一個多邊形要素類,shapefile會按順時針方向為它的所有頂點排序,然後按頂點順序兩兩串連成的邊線向量,在向量右側的為多邊形的內部,在向量左側的是多邊形的外部。 由於1990年代地理資訊的迅速發展以及ArcView GIS 3.x軟體在世界範圍內的推廣,shapefile格式的資料使用非常廣泛,資料來源也較多。很多軟體都提供了向shapefile轉換的介面(eg:MapInfo、MapGIS等)。ArcGIS支援對shapefile的編輯操作,也支援shapefile向第三代資料模型geodatabase的轉換。 |
1. shp儲存幾何要素的空間資訊,即XY座標
shx儲存了有關.shp儲存的索引資訊,即shp中空間資料的儲存方式,XY座標的輸入焦點在哪裡,有多少XY座標組等資訊
dbf儲存地理資料的屬性資訊的dBase表
prj儲存了檔案的空間參考資訊,如座標系統等
shp.xml對中繼資料瀏覽後產生的xml中繼資料檔案
sbn和sbx儲存對shapefile的空間索引,加速空間資料的讀取
Coverage資料
Coverage是ArcInfo workstation的原生資料格式。之所以稱之為“基於檔案夾的儲存”,是因為在windows資源管理員下,它的空間資訊和屬性資訊是分別存放在兩個檔案夾裡。例如,在我的電腦E:\MyTest\example檔案夾中,有3個coverage,它們在windows資源管理員下的狀態1所示,所有資訊都以檔案夾的形式來儲存。空間資訊以二進位檔案的形式儲存在獨立的檔案夾中,檔案夾名稱即為該coverage名稱,屬性資訊和拓撲資料則以INFO表的形式儲存。Coverage將空間資訊與屬性資訊結合起來,並儲存要素間的拓撲關係。
coverage是一個非常成功的早期地理資料模型,二十多年來深受使用者歡迎,很多早期的資料都是coverage格式的。ESRI不公開coverage的資料格式,但是提供了coverage格式轉換的一個分頁檔(interchange file,即E00),並公開資料格式,這樣就方便了coverage資料與其他格式的資料之間的轉換。
但是ESRI為推廣其第三代資料模型geodatabase,從ArcGIS 8.3版本開始,屏蔽了對coverage的編輯功能。如果需要使用coverage格式的資料,可以安裝ArcInfo workstation,或者將coverage資料轉換為其他可編輯的資料格式。
Coverage是一個集合,它可以包含一個或多個要素類
aat弧段屬性工作表,記錄弧段的起點和終點座標資訊
adf為coverage格式,包括lab.adf、arc.adf、sec.adf、pal.adf、cnt.adf、tic.adf、lnk.adf、bnd.adf都記錄了座標資訊,arx.adf、pax.adf為索引檔案和pat.adf、aat.adf為屬性檔案
pat點屬性工作表,記錄lable點的座標資訊
tic控制點,用於配准地圖的點
aux儲存柵格檔案自身不能儲存的輔助資訊,包括彩色地圖資訊,長條圖或表格,座標系統,變換資訊,投影資訊
rrd儲存影像金字塔資訊索引,加速顯示和漫遊
dat屬性資訊
nit屬性工作表定義檔案
dir屬性工作表路徑管理檔案,用於關聯dat和nit
Geodatabase資料
Geodatabase作為ArcGIS的原生資料格式,體現了很多第三代地理資料模型的優勢。隨著IT技術的發展,普通的事務型資料的管理員模式,早已從傳統的基於檔案的管理轉向利用基於工業標準建立的關係型資料庫進行管理,這種基於資料庫的管理方式的優點是不言而喻的。那麼帶有空間資訊的地理資料是否也可以利用這種非常成熟的資料庫技術進行管理呢?於是ESRI推出了geodatabase資料模型,利用資料庫技術高效安全地管理我們的地理資料。
Geodatabase可以分為兩種,一種是基於Microsoft Access的personal geodatabase,另一種是基於oracle、SQL Server、Informix或者DB2的enterprise geodatabase,由於它需要中介軟體ArcSDE進行串連,所以enterprise geodatabase又稱為ArcSDE geodatabase。由於Microsoft Access自身容量的限制,personal
geodatabase的容量上限為2GB,這顯然不能滿足企業級的海量地理資料的儲存需求。於是可以將geodatabase擴充為ArcSDE geodatabase,底層資料庫可以使用oracle這樣的大型關聯式資料庫,能夠儲存近乎“無限”的海量資料(僅受硬碟大小的限制)。雖然底層使用的資料庫各不相同,但是geodatabase給使用者提供的是一個一致的作業環境。
在geodatabase中,不僅可以儲存類似shapefile的簡單要素類,還可以儲存類似coverage的要素集,並且支援一系列的行為規則對其空間資訊和屬性資訊進行驗證。表格、關聯類別、柵格、註記和尺寸都可以作為geodatabaseObject Storage Service。這些在perasonal geodatabase和ArcSDE geodatabase中都是一樣的(柵格的儲存有點小差異,但對使用者來說都是一樣的)。,是一個personal geodatabase。
對Personal geodatabase進行編輯,使用ArcView的license即可。不需要額外的軟體就能直接連接。但是Personal geodatabase不支援多使用者編輯,僅能滿足小項目的要求。
而通過ArcSDE串連的ArcSDE geodatabase,則需要至少ArcEditor的license才能對其進行編輯。ArcSDE geodatabase通過版本的機制,可支援多使用者、長事務編輯。
在ArcToolbox >Conversion Tools > To Geodatabase中,有多種轉換工具支援coverage、shapefile、CAD等向量資料向geodatabase的轉換。在personal geodatabase和ArcSDE geodatabase間只要複製、粘貼即可,無須轉換。
adf - ARC/INFO coverage data file
agf - Atlas GIS native binary geodataset file
ain - attribute index file
aih - attribute index file
alg - ER Mapper algorithm
apr - ArcView Project File (ODB format)
avl - legend template file (ODB format)
avp - palette file (ODB format)
ave - Avenue script
avx - ArcView extension file (ODB format)
ai - Adobe Illlustrator picture file
bat - DOS batch file
bil - image file (band interleaved by line)
bip - image file (band interleaved by pixel)
blw - world file for bil image
bmp - Windows bitmap image file
bpw - world file for bip or bmp images
bsq - image file (band sequential)
bqw - world file for bsq image
c - C programming language source code filename
cat - UNIX hyperhelp supporting file
cgm - Computer Graphics Metafile
cls - geocoding classification file
cnt - help file contents
dat - generic data file extension dat - INFO attribute file
db - Object Database File (also ODB)
dbf - dBASE tabular data file
dbf - Shapefile attribute table file
dbg - problem debug log file
dcp - default codepage file
dct - geocoding dictionary file
dec - UNIX hyperhelp supporting file
def - defaults file (North Arrows, Layout Templates, etc) (ODB format)
dem - Digital Elevation Model file
dgn - Design drawing file (Intergraph)
dir - INFO directory manager file
dlg - Digital Line Graph file
dll - Windows Dynamic Link Library file
doc - MS-Word, MS-Wordpad document file
dtd - UNIX hyperhelp supporting file
dwg - Drawing file (AutoCAD)
dxf - Drawing exchange file
e00 - ARC/INFO export file
ecw - ER Mapper Enhanced Compressed Wavelet
eps - Encapsulated PostScript
ers - ER Mapper raster file format
exe - DOS/Windows executable file
fbn - spatial index file for read-only datasets
fbx - spatial index file for read-only datasets
fls - Windows help supporting file
ftg - UNIX help supporting file
fts - UNIX help supporting file
gen - ARC/INFO UnGenerate format
gfw - world file for gif image
gif - image file (CompuServe)
hdr - header file (for ArcView extensions or TIF images)
hlp - Windows help file
htm - WWW file (hypertext markup, 3-character DOS version)
html- WWW file (hypertext markup language, UNIX version)
ico - Icon file
idx - geocoding index for read-only datasets
img - ERDAS Imagine image file
ini - initialization file
ixc - geocoding index for read-write coverages
ixs - geocoding index for read-write shapefiles
jpg - image file (Joint Photographic Experts Group)
key - geocoding matching keys (ODB format)
lin - ARC/INFO lineset symbol file
lnk - Windows shortcut icon link file
mat - geocoding matching parameters file
mcp - image file (MacPaint)
mid - MapInfo interchange format (always paired with "mif")
mif - MapInfo interchange format (always paired with "mid")
mrk - ARC/INFO markerset symbol file (not compatible w/ArcView)
mxc - geocoding index for read-write coverages (ODB format)
mxs - geocoding index for read-write shapefiles (ODB format)
nit - INFO table definitions file
ndx - fonts index file (UNIX only)
nls - Codepage language files
odb - Object Database ASCII file (ODB format)
pat - geocoding pattern recognition file
pdf - preferences definition file
pif - Windows program information file (for DOS programs)
pps - processing set codes
prj - projections definition file
ps - PostScript. file
rlc - image file (run-length coding)
rs - image file (raster snapshot | Sun rasterfile)
sbn - spatial index for read-write shapefiles
sbx - spatial index for read-write shapefiles
shd - ARC/INFO shadeset symbol file
shp - Shapefile (stores feature geometry)
shx - Shapefile (stores file lookup index)
stn - geocoding standardization file
tab - lookup file
tbl - geocoding support table
tif - image file (Tag Image Format file)
tfw - world file for tif image
tmp - temporary file
ttf - TrueType font file
txt - text file (usually ASCII)
xbm - image file (X Bitmap)
wmf - image file (Windows Metafile)
wld - world file for CAD datasets
wri - Windows Write.exe file