Which tool do I use in ArcGIS 10.1 for Desktop to exclude areas covered by vector polygon layers from a raster layer?
I want to keep portions of the raster layers that exclude the portions covered by the vector layer.
Solution for single band raster. Convert polygons to raster. Use raster calculator
Con(IsNull( pgonRaster), sourceRaster)
As far as I know there is no direct way of doing this but alternative to this is given in Erasing polygon from raster. Basically it suggests to create a polygon with a hole which will be used as a mask (to use by Extract by Mask tool). More specifically it says:
If you're not doing any analysis with the raster after erasing or clipping out the section covered coincident with the polygons you can just cover/hide it by layering it all correctly in your table of contents.
I assume the background color of your dataframe is white (if not, just check what it is in the data frame properties).
Make your polygons white (or whatever other color your dataframe background is) with no border.
Place that white polygon layer above the raster in the table of contents and that portion will appear to be hidden in your map layout.
This does not delete the data as the title of your post request, but the wording of the actual question suggests to me that this still might be a workable solution for your needs. This has the benefit of of visually achieving your goal in teh layout without creating a new dataset to take up room on your drive.
You can use the tool Clip (Data Management) to create a new raster of only the areas that you want. For this to work you need a mask (polygon) of the areas that you want to keep.
In image 1, I have the image that I want to crop and the polygon of the areas that I want to keep.
Image 2 shows the setting of the tool Clip (data management). In order for the tool to use the polygon as a clipping feature, ensure that the check-box "Use Input Features for Clipping Geometry" is checked.
Image 3 shows the new clipped image.