arcpy更改图层属性

import arcpy.mapping as mapping
mxd = mapping.MapDocument(“CURRENT”)
df = mapping.ListDataFrames(mxd, “Crime”)[0]
updateLayer = mapping.ListLayers(mxd,”Crimes2009″,df)[0]
sourceLayer = mapping.Layer(r”C:\ArcpyBook\data\BurglariesNoForcedEntry.lyr”)
mapping.UpdateLayer(df,updateLayer,sourceLayer,False)

转载自:https://blog.csdn.net/A873054267/article/details/85871154

You may also like...