Skip to main content
Question

Change Raster Band Value based on polygon intersection

  • September 26, 2018
  • 1 reply
  • 58 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

nathanatsafe
Safer
Forum|alt.badge.img+9
  • Safer
  • 284 replies
  • September 27, 2018

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