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

  • Can you provide some info regarding your license? Do you have advanced license or spatial analyst? – kowalski Apr 15 '19 at 18:30
  • @kowalski I don't know where to look, the cheapest – user140079 Apr 15 '19 at 18:57
1

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.

| improve this answer | |
  • 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

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