<< Click to Display Table of Contents >>
FileProp
檔案描述資料
FileProp物件屬性
參數 |
說明 |
參數類型 |
extension (唯讀) |
檔案副檔名 |
字串 |
file (唯讀) |
檔案名稱 |
字串 |
path (唯讀) |
檔案路徑 |
字串 |
FileProp使用範例
import sgpy #讀取shp檔案描述屬性 fc =sgpy.Describe("D:/temp/Line2.shp") #取得”副檔名”,”檔案路徑”等屬性,並列印 path=fc.path extension =fc.extension del fc print str(path) print str(extension) |
©2015 Supergeo Technologies Inc. All rights reserved.