Select to view content in your preferred language

How to create class breaks renderer for raster layer

618
1
Jump to solution
08-22-2022 03:47 AM
BarbaraSchneider2
Occasional Contributor III

I want to create a class breaks renderer (with manual intervals) for a raster layer:

Classify.png

I have found a sample here: https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Authoring/Renderer/ClassBre... (internal static Task CBGraduatedColorsManualBreaks()).

This is exactly what I want, but for a feature layer. How can I achieve this for a raster layer? I haven't found anything.

Thank you for your help in advance!

 

 

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

RasterLayer has method SetColorizer which is analog of FeatureLayer SetRenderer. One difference that Raster colorizer has only color without symbol. Common idea is the same.

How to change raster colorizer look at ArcGIS Pro sample :

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Raster/ChangeColorizerForRaster... 

View solution in original post

1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

RasterLayer has method SetColorizer which is analog of FeatureLayer SetRenderer. One difference that Raster colorizer has only color without symbol. Common idea is the same.

How to change raster colorizer look at ArcGIS Pro sample :

https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Raster/ChangeColorizerForRaster...