I need to cut out the shapes of some lakes in my raster layer, I have the lakes both as polygons and raster. This would really help! Thank you! Using ArcMap 10.3
This "extremely convoluted method" is not a bad way to try if you're new to Arc.
Basically you need to create a layer that is the inverse of your lakes polygons.
You can do this by drawing a polygon layer that covers entirely your raster - then use the Union tool to union this polygon with your lakes polygon - then delete the lakes from the resulting layer.
Next use the tool search and search for "clip raster" and choose Clip (Data Management). Use the result of the Union tool as the Output Extent and ensure the Maintain Clipping Extent option is ticked.
Thank you! So if my raster with the lakes that i want to remove are called "Lakes" and my other raster layer is called "Uganda". How would the "Set Null" function be written then, I am very new to GIS, so appreciate all the help!
Setting values to NoData with Set Null—Help | ArcGIS for Desktop
ahhh
Are you having issues with things that you would normally use because of nodata values or something? There seems to be more to this question. As Darren mentions, there are many obvious solutions but often considerations of nodata values, raster extents and/or snap rasters are forgotten or omitted.
Use Con.
Con(IsNull("LakesRaster"),"YourOtherRaster")
edit: ...or SetNull
edit: ...or this extremely convoluted method
Sorry, I might have been unclear, I would like to remove the areas of the lakes from my rater layer! So the opposite result from "extract mask". You don't happen to know?
There are many ways to do this:
1.) Extract by Mask using either raster or polygon
2.) Clip via Image Analysis Window using polygon
3.) Con using raster
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.