Cutting an orthophoto into pieces with QGIS
In this tutorial, we are using QGIS version 3.24.3-Tisler. We will first create polygons into a new layer and then use those areas to clip the raster.
- Create a New GeoPackage Layer. Use the same parameters as in this example.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_49_27-_Untitled-Project-โ-QGIS.png)
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_50_17-_Untitled-Project-โ-QGIS.png)
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_51_09-_Untitled-Project-โ-QGIS.png)
2. To edit polygon features onto the map, click on the pen and green area. Draw the first area onto the map.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_57_57-_Untitled-Project-โ-QGIS.png)
Once you have clicked on all wanted edges points, right-click your mouse. You can click Enter when “Autogenerate” window pops up.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_58_30-_Untitled-Project-โ-QGIS.png)
3. Turn on Snap, so that the areas touch each other. This way the end result will not have holes in them.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_54_02-_Untitled-Project-โ-QGIS-1024x528.png)
5. Once you are done, save edits and toggle editing off (pen)
![](https://pointscene.com/wp-content/uploads/2022/08/2022-06-20-14_59_09-_Untitled-Project-โ-QGIS.png)
Next we will cut the raster into smaller pieces
6. In the next step we will use the “Clip raster by Mask Layer” tool.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-08-10-12_35_42-_BandG_emil-โ-QGIS-1024x479.png)
- Select one area (see screenshot above)
- Open tool: Raster > Extraction > Clip Raster by Mask Layer
- Insert raster,mask polygon layer and the following values.
- Mask Layer: select “Selected features only”.
- Assign a specified nodata value to output bands: For black: 0. For white 255
- Select “Create an output alpha band”,
- Select “Match the extent of the clipped raster to the extent of the mask layer
- Select “Keep resolution of input raster
- Advanced Parameters: Profile: High compression
- Clipped (mask) (output file): save as filename_clipped_part1.tif
- Run (do NOT close the window when done!)
- Rerun again with all areas:
- Select the next polygon area on the map
- Select “Change parameters”, and change the output name to “….part2”.
- Run again as many times as needed.
![](https://pointscene.com/wp-content/uploads/2022/08/2022-08-10-12_40_19-QGIS-558x1024.png)