Question

Merging Raster and Vector with Transparency

  • 7 February 2023
  • 3 replies
  • 4 views

Badge +2

Hi All,

 

I have kml and image as input files. The requirement is to generate another image by merging both. I have merged both and able get the raster, but I'm not getting transparency in the area within the polygon.

I have attached pdf file of requirements and workbench for better understanding...

 

Thank you

Pratap


3 replies

Userlevel 5
Badge +25

You can put the raster in the MapnikRasterizer as well. Alternatively, the VectorOnRasterOverlayer gives you a simpler option to do the same thing (but has less options to control how the action is performed)

Badge +2

You can put the raster in the MapnikRasterizer as well. Alternatively, the VectorOnRasterOverlayer gives you a simpler option to do the same thing (but has less options to control how the action is performed)

Hi @Hans van der Maarel​ 

I have already used MapnikRasterizer transformer but the result is not as required. I have attached workbench to this thread for reference.

Userlevel 1
Badge +10

If you just want an outline, i would coerce your polygon to a line with a GeometryCoercer and use that linegeometry

Reply