Skip to main content
Question

Merging Raster and Vector with Transparency


pratap
Contributor
Forum|alt.badge.img+11

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+49

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+11
  • Author
  • Contributor
  • February 7, 2023
redgeographics wrote:

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+38
  • Influencer
  • February 7, 2023

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings