在服务发布中遇到样式调整问题,又不想重新发服务于是直接mxd转msd然后替;
转换方法:
import arcpy
mxd = arcpy.mapping.MapDocument(r'd:/data/test.mxd')
df = arcpy.mapping.ListDataFrames(mxd,'Layers')[0]
msd = 'd:/data/out_test.msd'
arcpy.mapping.ConvertToMSD(mxd,msd,df,'NORMAL','NORMAL')