AnsweredAssumed Answered

Number format in colorizer

Question asked by taungesriaustralia-com-au-esridist Employee on Jul 16, 2020
Latest reply on Jul 31, 2020 by UHarano-esristaff

Hi Guys,


Would like to check how to set number format in CIMRasterClassifyColorizer object.

Below is the code I am using and it does not seem to be working. Uma Harano?

  CIMRasterClassifyColorizer newColorizer = await this.SelectedRasterLayer.CreateColorizerAsync(classifyColorizerDef) as CIMRasterClassifyColorizer;

            var numberFormat = new CIMNumericFormat();
            numberFormat.RoundingOption = esriRoundingOptionEnum.esriRoundNumberOfDecimals;
            numberFormat.RoundingValue = this.DecimalPlaces; //int 1 or above
            newColorizer.NumberFormat = numberFormat;


When I check in Advance symbol option, it seems to be effective. but the labelling does not follow at all.

ArcGIS pro version I am using is 2.5.0.