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