Skip to main content
Question

Change Raster Band Value based on polygon intersection

  • September 26, 2018
  • 1 reply
  • 42 views

rclarkenz
Contributor
Forum|alt.badge.img+2

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

nathanatsafe
Safer
Forum|alt.badge.img+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


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