Question

Watermarking rasters

  • 20 February 2015
  • 2 replies
  • 10 views

Badge

Hi All,

 

I have some thematic charts (1 band, paletted) that I'd like to try and add a fixed-image (created with MapnikRasterizer (4 band)) watermark to one of the corners of.

 

 

Does anyone have any suggestions for how to do this?

 

 

- RasterMosaicker is out because the two images have different numbers of bands.

 

 

- MapnikRasterizer almost certainly could, but I'm concerned it will alter the charts in some way beyond the watermarking (location, size, projection, paletting, imagery, etc) which is an absolute no-no.

 

 

Before I set about trying to use MR to do this, does anyone have any other suggestions? Or even suggestions for how to use MR to do it.

 

 

Thanks,

Jonathan


2 replies

Badge +3
Maybe use a rasterexpressioncalculator/evaluator on relevant bands?
Userlevel 2
Badge +17
Hi Jonathan,

 

 

I think you can do mosaic them after coercing interpretation of the chart to RGBA32. Have a look at these transformers.

 

RasterPaletteResolver

 

RasterInterpretationCoercer

 

 

Takashi

Reply