Question

Change Raster Band Value based on polygon intersection

  • 26 September 2018
  • 1 reply
  • 1 view

Badge +1

I have a SHP file with a polygon that partially overlaps a Raster image from a GeoTIFF. I would like to apply the changes I am implementing in the RasterExpressionEvaluator to only the pixels that fall outside of the polygon.

I had thought to clip the raster, perform the RasterExpressionEvaluator on the outside result, and then mosaic the inside and outside together again. But wondered if there is another option.

Thanks in advance.


1 reply

Badge +7

Hi @rclarkenz,

 

I think your method would work just fine. You might also try rasterizing the polygon and evaluating an expression based on this new raster and the original, since they will overlap.

Hope this helps,

Nathan

Reply