5

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.

  • I am having the same issue!!! Please any body ??? – Prabesh Shrestha May 13 at 11:34
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review – BERA May 13 at 12:10
  • are you trying to do some sort of analysis on this or do you just want to visually hide parts of the raster in your mapping? – Zipper1365 Jun 7 at 19:03
9

Solution for single band raster. Convert polygons to raster. Use raster calculator

Con(IsNull( pgonRaster), sourceRaster)

  • Also make sure that extent of rasterized polygon layer is equal than single band raster – aldo_tapia Aug 9 '17 at 15:12
  • @aldo_tapia, you can also just set the processing extent within raster calculator tool to be equal to that of the source raster. – Zipper1365 Jun 7 at 20:32
3

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:

  • By using Draw toolbar, create two polygon graphics, one for the overall coverage and the other showing exclusion zone (i.e., hole);
  • The use Graphic Operations from Drawing menu of Draw toolbar to "Remove Overlap"-ping parts;
  • Then convert them to feature(s) by using Convert Graphics to Features from aforementioned menu;
  • Finally apply Spatial Analyst extension's Extract by Mask tool.
0

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.

-2

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.

Image 1 enter image description here

Image 2 enter image description here

Image 3 enter image description here

  • 4
    In fact the question asks the invert version of what you suggest. – fatih_dur Jun 17 '15 at 2:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.