This is the 18th day of my participation in the August Challenge

Arcmap is used for data clipping. There are many kinds of clipping in Arcgis, including vector clipping vector, vector clipping grid and grid clipping grid. Vector clipping grids are divided into two types: mask clipping and minimum enveloping rectangle clipping. This paper mainly introduces how to use split, clip, Extract by Mask and other tools for administrative division segmentation, grid data cutting function, and batch cutting function

So let’s get started

First, cut the segmentation vector

Take administrative division data as an example

1. Vector segmentation of administrative boundaries can be performed in batches in Acrtools-> Analysis Tools -> Extraction->Split.

The steps are as follows:

(1) Open Arcmap and load administrative division data. The following figure is used as an example

2) Open ArcToolbox, click Analysis Tools, find Extract under Analysis Tools, then find Split, double-click split, open the Split dialog box, and fill in the corresponding items. As shown in the figure below

The first and second boxes represent the original data to be segmented

The third box indicates which field to divide by, preferably a unique identifier

The fourth box represents the output position

(3) Click OK and wait for the system to process. When completed is displayed, click Close and the result is as follows

Such a complete piece of yulin administrative division data has been divided according to administrative division boundaries

Two, vector cutting grid

A small block of DEM data with elevation is taken as an example for clipping

1. Use rectangles to crop raster data

In Arctoolbox, select the clipped grid data from Datamanagement > Raster > Clip, InputRaster, and set four rectangular vertices

The steps are as follows:

(1) Open Arcmap and load DEM data. The following figure is used as an example

(2) Open ArcCatalog and create a new vector layer. I’ll call it Clipploygon

(3) Draw a graph in poly that looks like the grid data we need to cut, as shown below

(4) Open ArcToolbox, click Data Management Tools, find Raster under Data Management Tools, and then find Raster Processing. There is a clip below. Double-click the clip to open the clip dialog box. Fill in the corresponding items. As shown in the figure below

The first box represents the raw data to be clipped

By what range is represented in the second box

The third box represents the output position

(5) Click OK and wait for the system to process. When completed is displayed, click Close and the result is as follows



2. Extraction of raster data

In The Arctoolbox, SpatialAnalystTools >extraction includes value to point extraction, according to attribute extraction, with circle extraction, with polygon extraction, with mask extraction, with point extraction, Rectangle extraction, among which the mask extraction function allows us to obtain the required raster data through irregular boundaries.

Taking mask extraction as an example, the extraction results are consistent with the above final results, and the steps are as follows:

(1) Open Arcmap and load DEM data. Using the above data steps above

(2) Use clipploygon drawn above

(3) Open ArcToolbox, click SpatialAnalystTools, find Extract by Mask under Extraction, double-click, open the Extract by Mask dialog box, and fill in the corresponding item. As shown in the figure below

The first box represents the raw data to be clipped

By what range is represented in the second box

The third box represents the output position

(4) Click OK and wait for the system to process. When completed is displayed, click Close and the result is as follows

3 batch cutting processing

Find Extract by Mask under Extraction, right-click batch, click on it as shown below, input the source file and output the template file

Note:

1) Batch cropping can be used to crop multiple images in the same area (crop different types of images in the same area)

2) Batch cutting for different regions of the same image (cutting for a region according to the administrative boundary).

However, there are some caveats to this batch approach.

Enter the same image to automatically “Fill” the same layer name with the Fill option

For clipping the raster to administrative boundaries, the Input raster is the same layer and can be filled. For selecting multiple area masks, you cannot double-click directly (so that only one of the layers or files can be selected) but should right-click Browse to select multiple layers.

4. Minimum enveloping rectangle clipping

The procedure is basically the same as the mask clipping, only select the rectangle

Click “Extract with rectangle” to pop up the rectangle extract dialog box. Select the content as mask clipping, the last option is to select the extraction region as INSIDE.

\