Hello,
I am trying to clip a Raster file to fit within the boundaries of a shapefile but I do not have editing rights to the source of the Raster file. I cannot create a personal gdb because others throughout the company will need to access the map. I have tried setting the extent of the Raster file to fit within the specified layer but the only option I can choose with the boundary layer provides the option with "the rectangular extent of". When I choose this option the top of the Raster file gets cut but the layer continues to bleed over the boundary layer. is there an alternative option that will in a sense "cookie cut" the Raster file to fit within the boundary layer?
Thank you
Solved! Go to Solution.
If you don't have the spatial analyst extension, then you could could make a mask to hide the portion you want. Just make a rectangle, and use remove overlap or union
If you have a basic license then you can remove the bits you don't want. If you have an advance license there are more tools that simplify the process
This is for Pro, but Map uses the same tools
An overview of the Overlay toolset—ArcGIS Pro | Documentation
If you need the raster itself, then without an advanced license your options are limited, but there are methods using arcpy and NumPy and their functions to do the work (eg. NumPyArrayToRaster etc). If you are comfortable with python, I could walk you through it (it is quite simple in any event)
do you have an image of what you want to accomplish?
Rasters will always be rectangular. You can "clip" via several means and just show the data within an irregular bounded polygon using tools in the spatial analyst extension such as
Extract by Mask (Spatial Analyst)—ArcGIS Pro | Documentation
for instance
I would like to remove the area surrounding the white Polygon and keep the area that would fall within it.
This method would be ideal but I am not licensed to use the extract by mask tool. Perhaps if there is a way to create a mask that would cover the surrounding area.
Clip (Data Management) should also work for you. You could save the output Raster as a TIFF file (*.tif) in a basic folder on your local machine.
In Environment settings, you could define the Snap Raster to your original Raster data.
If you don't have the spatial analyst extension, then you could could make a mask to hide the portion you want. Just make a rectangle, and use remove overlap or union
If you have a basic license then you can remove the bits you don't want. If you have an advance license there are more tools that simplify the process
This is for Pro, but Map uses the same tools
An overview of the Overlay toolset—ArcGIS Pro | Documentation
If you need the raster itself, then without an advanced license your options are limited, but there are methods using arcpy and NumPy and their functions to do the work (eg. NumPyArrayToRaster etc). If you are comfortable with python, I could walk you through it (it is quite simple in any event)
Another way is to use Clip Function (Image Analysis).
Windows > Image Analysis
Ensuring the Raster layer is selected, click "Add Function" icon.
Right-click the Raster layer under Function Chain > Insert Function > Clip Function.