摘要: 参考了一下文章,先记录下: http://www.mamicode.com/info-detail-1973690.html https://wenku.baidu.com/view/140c488049649b6648d747df.html http://downloads.esri.com/Su 阅读全文
posted @ 2019-01-03 16:25 僻邪剑谱 阅读(251) 评论(0) 推荐(0) 编辑
摘要: def cal(s,m): if s==u"废弃" or s==u"拆除": return 4 elif s==u"竣工": return 3 elif s==u"投运" and m==u"PE塑料管": return 2 else: return 1 cal(!STATUS!, !MATERIAL 阅读全文
posted @ 2019-01-03 15:36 僻邪剑谱 阅读(219) 评论(0) 推荐(0) 编辑
摘要: import arcpy mxd = arcpy.mapping.MapDocument("current") for lyr in arcpy.mapping.ListLayers(mxd): if arcpy.Describe(lyr).dataType=='FeatureLayer': pri 阅读全文
posted @ 2019-01-03 15:35 僻邪剑谱 阅读(477) 评论(0) 推荐(0) 编辑