9

I have several rasters in tiff format that have a colormap assigned to them:

enter image description here

I then create a Mosaic Dataset with specs matching the imagery and add all of my tiffs to it (you can ignore the warnings this is just to illustrate what i did):

enter image description here

Colormap does not show up and it does not let me import my Colormap from the tiffs:

enter image description here

Is there any way to add/import my Colormaps so that we can view the data according to those values?

  • 4
    Don't know if what I'm suggesting is a red herring or even possible but may be you could apply a colormap raster function to the mosaic dataset? – Hornbydd Feb 16 '18 at 10:21
  • 2
    Turns out you can apply a colormap to a mosaic dataset through the colormap raster function, be aware it will create a new layer. – Hornbydd Feb 16 '18 at 10:32
  • hmm yes i think you are right but i think this just creates a new raster that would need to be added to a mosaic dataset and would then lose it's color map... all of the raster referenced in my mosaic dataset have a color map assigned to them but i cannot display the mosaic dataset using that colormap. – gomapping Feb 16 '18 at 15:00
  • 1
    Can you "borrow" symbology from that new raster? – FelixIP Feb 22 '18 at 7:19
  • 1
    If you save a raster function as an xml then you can apply this function in your mosaic and it will use your colormap inside the mosaic, not in another layer. I don't know if this is what you want but If it is I can explain it better. – Albert Feb 22 '18 at 15:50
4
+100

You can apply a colormap to a mosaic using this workflow. Keep in mind that your data needs to be integer type.

First, you need to create and export a colormap from your styled raster.

enter image description here

Then you apply this colormap as a raster function, load your .clr file. This will create a new layer.

enter image description here

In the symbology tab of this new layer, export as a raster function template. It will create a file.rft.xml

enter image description here

Now you just need to apply this function in your mosaic by using the Edit Raster Function tool...

enter image description here

...and voilà.

It is not very intuitive but it can be done, you may need to calculate statistics of the mosaic but you can do it as an option when you add your rasters to the mosaic.

enter image description here

  • this is where i made it. the colormap colors are displayed but it is using rgb in the table of contents. i am wondering if there is a way to have it show the colormap values there. you are showing the colors the same as the color map but the renderer is still rgb if you check test1-->Image-->Symbology there is still no option for Colormap – gomapping Feb 23 '18 at 14:45
  • Maybe there is another approach but afaik, I think you can either have it in another layer with the full legend or inside the mosaic as an RGB. – Albert Feb 26 '18 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.