Using python in ArcCatalog 10.6 I am trying to apply symbology to a line density layer. I sliced the density map into 9 segments and that is how I want to apply symbology from a predefined layer. It also is classified into 9 segments. Both using numbers 1-9. The trouble is for some reason I can't get the density map to be recognized by the "apply symbology" tool. Specifically the error message is "ERROR 000732: Input Features: Dataset this file does not exist or is not supported Failed to execute (MakeFeatureLayer)." I have tried calling it using "make raster layer, save to layer file, copy raster, and out of desperation I tried make feature layer. ArcGIS definitely recognizes it as a raster but wouldn't apply the new symbology. It creates the density map for sure. I have even manually applied the symbology in arcmap. What work arounds am I not thinking of?

# Process: Points To Line
if arcpy.Exists(Phase3+"_lnDens"):
    arcpy.AddMessage("It does exist! They do exist!")
    # Process: Delete
    arcpy.AddMessage("Deleted old copy successfully.")
    arcpy.AddMessage("File likely does not exist")
arcpy.AddMessage("Process Create Table")

# Process: Slice
arcpy.gp.Slice_sa(Phase3+"_lnDensity",Phase3+"_lnDens", "9", "NATURAL_BREAKS", "1")

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(Phase3+"_lnDens", Phase3+"_lnDenso", "", "", "")

# Process: Apply Symbology From Layer
arcpy.ApplySymbologyFromLayer_management(Phase3+"_lnDenso", Template_symbology)
  • Please try to reduce your whole code to a code snippet that illustrates where you are stuck. To answer your question as it stands would require answering multiple questions along the way. – PolyGeo Jun 7 at 21:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.