I have a large binary raster (1 band, values either 0 or 1) that I want to mask with a polygon shapefile (which contains 1 attribute column, id, with values 0). I was thinking of using Vector on Raster Overlayer for this. However the output file is the original raster, without changes. Am I using the VectorOnRasterOverlayer correctly?
Solved
Using vector to mask raster (VectorOnRasterOverlayer)
Best answer by takashi
Hi @wolters, no, the VectorOnRasterOverlayer would not transfer any attribute value from the vector feature to the raster. It just draws the shape of the vector geometry onto RGB raster using its color value (fme_color).
I think the Clipper could help you.Send the polygon to the Clipper port, send the raster to the clipee port of a Clipper. Then check the resulting raster output from the Outside port of the Clipper transformer.It might be necessary to set Yes to the Preserve Clippee Extents parameter if the polygon was relatively large.Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.