<< Click to Display Table of Contents >>
FeatureClassProp
FeatureClass描述資料,內有featureClass相關補充說明
FeatureClassProp物件屬性
參數 |
說明 |
參數類型 |
extension (唯讀) |
檔案副檔名 |
字串 |
file (唯讀) |
檔案名稱 |
字串 |
path (唯讀) |
檔案路徑 |
字串 |
hasM(唯讀) |
是否有M值 |
布林 |
hasZ(唯讀) |
是否有Z值 |
布林 |
shpType(唯讀) |
Feature Class幾何類型, 為下列任一種 Point PointZ (有Z值) MulitPoint MulitPointZ (有Z值) PolyLine PolyLineZ (有Z值) Polygon PolygonZ (有Z值) |
字串 |
FeatureClassProp使用範例
import sgpy #讀取shp檔案描述屬性 fc =sgpy.Describe("D:/temp/Line2.shp") #取得”副檔名”,”幾何類型”等屬性 shptype=fc.shapeType extension =fc.extension del fc #列印屬性 print str(shptype) print str(extension) |
©2015 Supergeo Technologies Inc. All rights reserved.