Select to view content in your preferred language

Publish a single raster file as an image service with thematic symbology and a readable legend

4400
13
Jump to solution
02-16-2022 03:00 PM
Labels (1)
AaronKoelker
Frequent Contributor

I feel like I've done this in the past, but I'm stuck on how to make this work now with ArcGIS Pro and Server/Portal:

I have a single raster file (a .tif, but have also tried .crf and .cog). It is comprised of a single band containing thematic data. I would like to share this raster/thematic data as an image service via ArcGIS Server/Portal. Currently I have the symbology (colors and value labels) set up as needed via the layer symbology in a map, and have tried exporting that configuration as a raster function template -- but I can not get any of it to stick when sharing it to an image service. I need it so that when a user adds the image service into a new web map, the desired colors are drawn by default and the legend contains the value labels.

The closest I have gotten is to get the correct colors to show using three RGB bands, but then the value labels are gone. I've tried using a colormap as well but I can't get the datasets transparent NoData value to work correctly when doing that, and the value labels don't work with that either.

Can anyone point me in the right direction for how to make this work? It feels like it should be a simple process, but I'm having trouble finding much documentation on the issue. I haven't tried putting it into a mosaic dataset yet, since it's a just single image, but I suppose I'll try that next.

Desired legend when adding service to mapDesired legend when adding service to mapClosest I've gotten, correct colors, no legendClosest I've gotten, correct colors, no legend

-Aaron
0 Kudos
13 Replies
AaronKoelker
Frequent Contributor

@GBacon Yeah, I also have a fuzzy memory of the raster functions filling this need once upon a time. If the support ticket leads to any solutions, please share!

-Aaron
0 Kudos
GBacon
by
Frequent Contributor

Will do. On a related note, I wrote up the attached when I was having problems symbolizing a land cover image service. Maybe you'll find it useful.

LisaMcAleer
Regular Contributor

Yes, i have to do this again after not doing it for a while, and i believe the bit depth is the missing link. "Bit depth of source raster should be no more than 8-bit." If memory serves me, that's the key to publishing with a .rtf file.  👍

0 Kudos
PFreitasEsriPT
New Contributor

Any new recent updates on this? I am still having the same issue publishing a thematic raster through Image Server.

0 Kudos