How to perform reverse clip?

19641
17
Jump to solution
02-15-2017 08:29 AM
GwanSeonKim
New Contributor II

Hi,

I would like to delete overlapped area and get not-overlapped raster image.

I tried to use clip tool, but clip tool only provided overlapped areas.

I have one base raster layer (brown pixels) and one polygon (pink color).

Do you have any idea how to deleted overlapped area?

Alternatively, I also have two raster layers. One for base raster (brown pixels) and the other one for overlapped raster (pink pixels) after use mask tool. 

I guess I may use raster calculation tool to get the not-overlapped pixels as an image, but I do not know how to do that.

 

In order to get not-overlapped image, I do not know which one will be better and faster between (one raster with polygon) and (two rasters).

Thank you,

Sun

0 Kudos
1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor

You should be able to use a raster calculator expression like:

Con(IsNull("PINK_RASTER"),"BROWN_RASTER")

View solution in original post

17 Replies
PetePedrazzini
New Contributor III

You have Advanced license and Spatial Analyst? I think you can use "Erase" tool to accomplish that

Erase Tool

0 Kudos
GwanSeonKim
New Contributor II

Thanks for your comments.

I already tried to use the Erase tool, but I cannot use the raster into either input features or Erase features.

I guess both input features and erase features allow to use polygon shapefile rather than raster.

0 Kudos
PetePedrazzini
New Contributor III

I'm sorry, I didn't noticed you talking about rasters

0 Kudos
GwanSeonKim
New Contributor II

Thanks for your response.

Maybe I did not explicitly explain my problem

0 Kudos
SamuelBortz
New Contributor III

As Ivan noted above, if you have SA enabled a couple of the "Extract by...." tools might be of use. It could be as easy as a selection/switch selection on your polygon layer and then feed that into the appropriate "Extract by...." tool.

0 Kudos
DarrenWiens2
MVP Honored Contributor

You should be able to use a raster calculator expression like:

Con(IsNull("PINK_RASTER"),"BROWN_RASTER")
SamuelBortz
New Contributor III

assuming spatial reference, cell size etc are the same between data sets, correct?

0 Kudos
GwanSeonKim
New Contributor II

Yes, cell sizes are the same between data sets. For the spatial reference, if it means projection, yes, they are same.

0 Kudos
DarrenWiens2
MVP Honored Contributor

Sure, those are good rules of thumb for any project.

0 Kudos