Question

Palette Name

  • 23 November 2012
  • 3 replies
  • 7 views

Badge +22
  • Contributor
  • 1961 replies
How do I change/or add a Palette Name of a raster?

3 replies

Badge +21
Have you seen the demo at http://fmepedia.safe.com/articles/Samples_and_Demos/Raster-Palette-Manipulations-Example ?

 

 

 

Badge +22
Yes,

 

 

I can manipulate the palette values easily enough, change the interpretation, but I can't find how to change the name of the palette.

 

 

Joanna
Badge +21
Not sure if you can change the name of the Palette to "anything", 

 

 

"Palette Properties Rasters contain a set of metadata that defines the properties for each palette. These properties include the palette name, key and value interpretation, key and value bitdepth, 'nodata' key and value. Interpretation on palettes works in much the same way as it does on bands. The interpretation of a palette key must match the interpretation of the related band. Valid palette key interpretations are UInt8, UInt16, and UInt32. The palette value interpretation may be a color model such as RGB or RGBA or string data. Valid palette value interpretations are RGB24, RGBA32, RGB48, RGBA64, Gray8, Gray16, and String. A palette does not directly store 'nodata' values however since the palette keys are intended to match the band values, which can store ‘nodata’, a single palette key can be interpreted as ‘nodata’ if it matched the band ‘nodata’ value. This nodata key also looks up to a palette value which is then considered the 'nodata' value. A nodata value may not exist without a nodata key."

 

 

From: http://docs.safe.com/fme/pdf/FMEReadersWriters.pdf

Reply