Skip to main content
edited tags
Link
PolyGeo
  • 65.5k
  • 29
  • 115
  • 352
edited tags
Link
PolyGeo
  • 65.5k
  • 29
  • 115
  • 352
Fix code markup
Source Link
Jason Scheirer
  • 18k
  • 2
  • 55
  • 72

I am writing an ArcPy script that creates a Point Density Raster file, and then changes the following properties in the resulting layer:

  1. Symbology

    Symbology

    Classified

    Classified

    Classes = 10

    Classes = 10

    Classification Method = Geometrical Interval

    Classification Method = Geometrical Interval

    Excluded Value = 0

    Excluded Value = 0

  2. Display

    Display

    Resample during display using: bilinear interpolation

    Resample during display using: bilinear interpolation

I know I can set lyr.symbology.numClasses = 10lyr.symbology.numClasses = 10. and lyr.symbology.excludedValues = 0lyr.symbology.excludedValues = 0, and even create a dummy layer with the above properties (symbologyLayer) and arcpy.ApplySymbologyFromLayer_management(lyr, symbologyLayer)arcpy.ApplySymbologyFromLayer_management(lyr, symbologyLayer). Is there a way to do this simply by setting attributes of lyr.symbologylyr.symbology, do I have to do it in one fell swoop with ApplySymbologyFromLayer_managementApplySymbologyFromLayer_management, or is there a better way?

I am writing an ArcPy script that creates a Point Density Raster file, and then changes the following properties in the resulting layer:

  1. Symbology Classified Classes = 10 Classification Method = Geometrical Interval Excluded Value = 0
  2. Display Resample during display using: bilinear interpolation

I know I can set lyr.symbology.numClasses = 10. and lyr.symbology.excludedValues = 0, and even create a dummy layer with the above properties (symbologyLayer) and arcpy.ApplySymbologyFromLayer_management(lyr, symbologyLayer). Is there a way to do this simply by setting attributes of lyr.symbology, do I have to do it in one fell swoop with ApplySymbologyFromLayer_management, or is there a better way?

I am writing an ArcPy script that creates a Point Density Raster file, and then changes the following properties in the resulting layer:

  1. Symbology

    Classified

    Classes = 10

    Classification Method = Geometrical Interval

    Excluded Value = 0

  2. Display

    Resample during display using: bilinear interpolation

I know I can set lyr.symbology.numClasses = 10. and lyr.symbology.excludedValues = 0, and even create a dummy layer with the above properties (symbologyLayer) and arcpy.ApplySymbologyFromLayer_management(lyr, symbologyLayer). Is there a way to do this simply by setting attributes of lyr.symbology, do I have to do it in one fell swoop with ApplySymbologyFromLayer_management, or is there a better way?

Source Link
user3429841
  • 43
  • 1
  • 2
  • 4
Loading