Wechat: yu389741| Email: gisdqy@163.com

Shop:https://www.giserdqy.com/shop

arcpy更换符号系统


#原理是基于一个图层的符号系统去替换目标图层中的符号系统

import arcpy.mapping as mapping
mxd = mapping.MapDocument(“CURRENT”)
df = mapping.ListDataFrames(mxd, “Crime”)[0]
updateLayer = mapping.ListLayers(mxd,”Crime Density by School District”,df)[0]
sourceLayer = mapping.Layer(r”C:\ArcpyBook\data\CrimeDensityGradSym.lyr”)
mapping.UpdateLayer(df,updateLayer,sourceLayer,True)

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