I am developing an ArcGIS Pro python tool. I am using "JSONToFeatures_conversiontool" to convert Esri GeoJson to feature class.
After adding a layer to map I am changing the symbology.
1. on the output layer (Point Layer ) -
scriptPath = sys.argv[0]
toolSharePath = os.path.dirname(os.path.dirname(scriptPath))
dataPath = os.path.join(toolSharePath, 'iGeolise')
pointLyrPath = os.path.join(dataPath, 'updateFilterSymbol.lyrx')
params = arcpy.GetParameterInfo() desc = arcpy.Describe(Output_layer)
params[symbology_index].symbology = pointLyrPath
2. Using custom renderer (Polyline layer)-
layerName = (arcpy.Describe(Output_layer)).baseName
p = arcpy.mp.ArcGISProject('CURRENT') m = p.listMaps('Map')[0] m.addDataFromPath(Output_layer)
lyr = m.listLayers(layerName)