1

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?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jul 14, 2014 at 18:03
1
  • 1
    I would agree with Jason I usually do all the symbology stuff in one fell swoop with ApplySymbologyFromLayer and include the "Dummy Layer(s)" in my tool package, you can also use Resample_management to resample rasters. Commented Jul 14, 2014 at 19:14

1 Answer 1

3

If you're writing a geoprocessing script, I'd recommend authoring a .lyr file you bundle with your toolbox and set the symbology in the script tool parameters to point to the .lyr file (see the "Symbology" part of the dialog).

answered Jul 14, 2014 at 18:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.