Skip to main content
Question

Merging Raster and Vector with Transparency

  • February 7, 2023
  • 3 replies
  • 71 views

pratap
Contributor
Forum|alt.badge.img+12

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

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • February 7, 2023

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)


pratap
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • 605 replies
  • February 7, 2023

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.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • February 7, 2023

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