I have a TIFF file as shown below:

enter image description here

I have a shapefile as shown:

enter image description here

How can I separate the TIFF file into different blocks using the above shapefile?

  • Select a county, clip by the selection. Select the next county, clip by that selection, etc, pp. – Erik Oct 15 at 8:06
  • can I select all counties and clip at one shot? – G.S. J Oct 15 at 8:11
  • Then you will clip all counties at once - into one file. – Erik Oct 15 at 8:13

Use Clip Raster by Mask tool from the Toolbox and click on the green iterator to clip the raster image by each smaller boundary inside the shapefile:

enter image description here

Input Raster:

enter image description here

Using the above tool with iterator enabled, here is the result:

enter image description here

  • Thanks for responding. I tried this and an error pops up. ERROR 4: `C:/Users/User/AppData/Local/Temp/processing_e43b7fe9c62040ceb676af2e73b6b99c/29aa50107e1345f1a3df09cdeda4ca39/MASK.shp' not recognized as a supported file format. – G.S. J Oct 15 at 9:53
  • Got it working. Saved it as a permanent file rather than temporary! – G.S. J Oct 15 at 9:56
  • Can you tell me how to save these different files with their id? – G.S. J Oct 16 at 5:24
  • I want to save these different tiffs generated with the 'id's of block. Can I do that? – G.S. J Oct 16 at 6:00
  • Based on your newly posted question, I don't think it is possible without coding (programming). – ahmadhanb Oct 16 at 6:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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