Select to view content in your preferred language

How to do Erase for Raster dataset?

5507
2
07-19-2016 05:54 AM
AnzhelikaKamza3
Deactivated User

Hello all,

Could you please advise tool for raster clipping by polygon. I need clip inside raster. Like Функция Вырезать (Clip)—Справка | ArcGIS for Desktop comand inside. But I can't find this instrument.

Thanks in advance,

Anzhelika

Tags (1)
0 Kudos
2 Replies
ChrisDonohue__GISP
MVP Alum

If you have access to the Spatial Analyst Extension, one option is to use Map Algebra:

A quick tour of using Map Algebra—ArcGIS Help | ArcGIS for Desktop

One workflow would use SetNull to Null out all the values of cells that match your "Erase" raster.  Note that you may have to do a processing step first to set up your Erase raster to give it distinct values so the SetNull can work as desired.  This can be done with Con or Reclassify.

Set Null—Help | ArcGIS for Desktop

Con—Help | ArcGIS for Desktop

Reclassify—Help | ArcGIS for Desktop

Chris Donohue, GISP

FC_Basson
MVP Regular Contributor

See this blog: Clipping an image or raster in ArcGIS | ArcGIS Blog

Convert the polygon area you want to clip from the raster to a graphic.  Then with the raster, right click and run Data -> Export Data.  The option for Selected Graphic (Clipping) will be available and you will have the option to clip inside or outside the polygon.