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 <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">await</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>SelectedRasterLayer<SPAN class="punctuation token">.</SPAN><SPAN class="token function">CreateColorizerAsync</SPAN><SPAN class="punctuation token">(</SPAN>classifyColorizerDef<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> CIMRasterClassifyColorizer<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> numberFormat <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">CIMNumericFormat</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
numberFormat<SPAN class="punctuation token">.</SPAN>RoundingOption <SPAN class="operator token">=</SPAN> esriRoundingOptionEnum<SPAN class="punctuation token">.</SPAN>esriRoundNumberOfDecimals<SPAN class="punctuation token">;</SPAN>
numberFormat<SPAN class="punctuation token">.</SPAN>RoundingValue <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>DecimalPlaces<SPAN class="punctuation token">;</SPAN> <SPAN class="comment token">//int 1 or above</SPAN>
newColorizer<SPAN class="punctuation token">.</SPAN>NumberFormat <SPAN class="operator token">=</SPAN> numberFormat<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">this</SPAN><SPAN class="punctuation token">.</SPAN>SelectedRasterLayer<SPAN class="punctuation token">.</SPAN><SPAN class="token function">SetColorizer</SPAN><SPAN class="punctuation token">(</SPAN>newColorizer<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>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.
