Select to view content in your preferred language

Accessing Advanced Symbology with Python - Sample Size for Graduated Symbols Renderer

1256
2
04-26-2021 12:40 PM
Yuhash
by
Frequent Contributor

Is it possible to set the 'sample size' property of  graduated symbology programmatically? The GraduatedSymbolsRenderer  does not have any advanced symbology parameters, but I need to increase the default sample size from 10,000 to 1M in a  Python script.

I would like to avoid having to calculate the 'Natural Breaks' but if need be can anyone recommend a reference?

Thank you in advance!

 

2 Replies
Kara_Shindle
Frequent Contributor

I read in that documentation that the advanced properties are not available unless you access via CIM.  Take a look at Python CIM access and see if you want to go that route?

WesleyCosta
Emerging Contributor

ldef = layer.getDefinition('V2')
ldef.renderer.sampleSize = 1000000000
layer = layer.setDefinition(ldef)