在arcpy中判断要素的类型

想要在脚本中判断输入要素的类型以便后续操作,比如判断是点、线、面,一直没有找到相关的介绍。
已邀请:

turtle

赞同来自: 江宝骅 仲卜 刀光剑影

arcpy.Describe(featureclass).shapeType
The Describe function returns a Describe object, with multiple properties, such as data type, fields, indexes, and many others. Its properties are dynamic, meaning that depending on what data type is described, different describe properties will be available for use.

arcpy describe介绍
shapeType属性可返回Polygon,Polyline,Point,MultiPoint,MultiPatch值



 

要回复问题请先登录注册