Reverse Clip (donut) With Raster Data

1829
5
Jump to solution
11-15-2021 03:29 PM
ParkGIS307
New Contributor

Hello all,

 

I have a DEM file I am working with. I want to take a polygon of a water body and remove those elevations from the elevation dataset.  What I want to do would be similar to the erase tool but instead of vector data I am working with raster. The DEM file would look something similar to a donut after this. So far I have come up empty-handed as I try to figure this out. 

Does anyone know how to do this or know of a work-around? 

 

Thanks,

 

0 Kudos
2 Solutions

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

convert the polygon to a raster using the same extent, cell size and alignment etc.

You can use the Con tool in arctoolbox to remove the elevations in the water body

Con (Spatial Analyst)—ArcGIS Pro | Documentation

Con("Lake", "Elev", 0)  # if you want to set the value to 0

or

Setting values to NoData with Set Null—ArcGIS Pro | Documentation

SetNull("Lake", "Elev")


... sort of retired...

View solution in original post

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Please ensure you are using Clip function (not Clip Geoprocessing tool).

JayantaPoddar_0-1637079233568.png

 

JayantaPoddar_1-1637079279955.png

 

JayantaPoddar_2-1637079424905.png

 



Think Location

View solution in original post

0 Kudos
5 Replies
DanPatterson
MVP Esteemed Contributor

convert the polygon to a raster using the same extent, cell size and alignment etc.

You can use the Con tool in arctoolbox to remove the elevations in the water body

Con (Spatial Analyst)—ArcGIS Pro | Documentation

Con("Lake", "Elev", 0)  # if you want to set the value to 0

or

Setting values to NoData with Set Null—ArcGIS Pro | Documentation

SetNull("Lake", "Elev")


... sort of retired...
0 Kudos
JayantaPoddar
MVP Esteemed Contributor

You could use Clip function—ArcGIS Pro | Documentation

 

Clip Type: Inside



Think Location
0 Kudos
ParkGIS307
New Contributor

Where are you using the clip type options for inside or outside? This is the raster clip function but I do not see that option for outside/inside. 

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Please ensure you are using Clip function (not Clip Geoprocessing tool).

JayantaPoddar_0-1637079233568.png

 

JayantaPoddar_1-1637079279955.png

 

JayantaPoddar_2-1637079424905.png

 



Think Location
0 Kudos
ParkGIS307
New Contributor

That worked great. Thank you. 

0 Kudos