<< Click to Display Table of Contents >>
TableProp
屬性表格物件描述資料
TableProp物件屬性
參數 |
說明 |
參數類型 |
extension (唯讀) |
檔案副檔名 |
字串 |
file (唯讀) |
檔案名稱 |
字串 |
path (唯讀) |
檔案路徑 |
字串 |
spatialReference (唯讀) |
坐標系統 |
spatialReference |
extent (唯讀) |
範圍 |
extent |
fields (唯讀) |
Table的所有屬性欄位 |
Field物件集合 |
TableProp使用範例
import sgpy #讀取slr檔案描述屬性 (只有圖層檔,副檔名為slr者,才能取得LayerProp) fc =sgpy.Describe("D:/temp/Line2.slr") #取得LayerProp的table tableprop=fc.table #取得”副檔名”,”檔案路徑”等屬性,並列印 path = tableprop.path extension = tableprop.extension del fc print str(path) print str(extension) |
©2015 Supergeo Technologies Inc. All rights reserved.