该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
ssdo.output2NewFC(outputFC, candidateFields, fieldOrder=fieldOrder)
#### Set Default Symbology ####
params = ARCPY.gp.GetParameterInfo()
try:
renderType = UTILS.renderType[ssdo.shapeType.upper()]
if renderType == 0:
renderLayerFile = "StdResidPoints.lyr"
elif renderType == 1:
renderLayerFile = "StdResidPolylines.lyr"
else:
renderLayerFile = "StdResidPolygons.lyr"
templateDir = OS.path.dirname(OS.path.dirname(SYS.argv[0]))
fullRLF = OS.path.join(templateDir, "Templates", "Layers", renderLayerFile)
ind1 = outputFCNames.index(u'residual' in outputFCNames)
params[ind1].Symbology = fullRLF
except:
ARCPY.AddIDMessage("WARNING", 973)
对照AGCGIS自带的工具里的代码写的,但是报
WARNING 000973: Could not render output based on default layer file.
求助啊!!!!!!!!!!!!!!