0

I have two layers: a layer with a raster and a layer with a polygon, I need to cut a polygon from a layer with a raster, how to do it?

It is necessary to make a straight hole, and not to create a new layer not true:

enter image description here

just like this:

enter image description here

enter image description here

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
user140079
  • 41
  • 8

1 Answers1

2

If you are using ArcGIS, an option is the Erase tool

enter image description here

There are steps you can follow that I found clip hole in raster

Here are the steps... (Just swap out your layers accordingly.)

  1. Create a vector polygon of the entire US (including Texas).

  2. Use the "Erase" tool to clip out (erase) Texas from the US shapefile. Now you will have a polygon of the US with Texas removed.

  3. Use the Extract By Mask tool and have the DEM as your input raster and the new vector shapefile of the US (with Texas erased) as the other input.

  4. You will now have a DEM with everything but Texas.

whyzar
  • 12,053
  • 23
  • 38
  • 72
  • And unless the erase is not used for a vector layer? – user140079 Apr 15 '19 at 19:04
  • @user140079, since you already have the vector layer, you can then start from step 3 by using the Extract By Mask tool which will allow you to "cut a hole" in the raster using the polygon feature you have which would need to have the same hole. – whyzar Apr 15 '19 at 19:23
  • I added a picture that I displays when using the tool – user140079 Apr 15 '19 at 19:30