Colors not displaying in image service

2566
3
05-25-2016 08:14 AM
DanielSchatt
New Contributor III

hi all, I want to display a set of integer rasters (1 band, 32 bit) in an image service using a color map.  So I added them to a mosaic dataset (also 1 band, 32 bit) and then applied my colormap file to that mosaic dataset using the Colormap function.  The colors display properly in ArcCatalog when I preview the mosaic dataset. 

But then I generated an image service from the mosaic dataset and I just see gray in the preview of the image service.  Anybody know what the problem is and what I need to do to make this work?

Thanks!

Dan

0 Kudos
3 Replies
PeterBecker
Esri Regular Contributor

There is a known issue with CLR files with negative values (not being used), but this does not look like the issue you are having. Can you provide some more details on the version of ArcGIS you are using. Also can you provide a sample of the CLR file you are using.

DanielSchatt
New Contributor III

Thanks Peter.  Actually, the colors did display properly when I previewed the image service in the Javascript viewer from the REST page.   It also displayed properly when I used it in the sandbox in the Image Service sample .  So this just appears to be an ArcCatalog (and ArcMap) display issue.  I would still like to know  why it's happening as those previews can be useful.   Here's a sample of the color map file, thanks again:

0 204 255 255

1 204 255 255

2 204 255 255

3 204 255 255

4 204 255 255

5 204 255 255

6 204 255 255

7 204 255 255

8 204 255 255

9 204 255 255

10 204 255 255

11 191 239 245

12 191 239 245

13 191 239 245

14 191 239 245

15 191 239 245

16 191 239 245

17 191 239 245

18 191 239 245

19 191 239 245

20 191 239 245

21 178 223 235

22 178 223 235

23 178 223 235

24 178 223 235

25 178 223 235

26 178 223 235

27 178 223 235

28 178 223 235

29 178 223 235

30 178 223 235

0 Kudos
PeterBecker
Esri Regular Contributor

Also check out the following Blog post about Colormaps

Can I create a customized colormap file in ArcGIS? | ArcGIS Blog

0 Kudos