I'm new in QGIS and I have a question. I am sampling an onion crop from a geottif:
I need to export each single rectangle/polygon into a single tiff file. Is there a plug-in for doing so?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
The quickest way without opening the python console would be to do the following:
run 'split vector layer' which creates a separate file for each of your vector features. Make sure to select an output directory. Then open all the vector files in qgis.
now run 'clip raster by mask layer' and click on 'Run as Batch Process...' button in the bottom left hand corner.
click on 'autofill..' in the Mask layer column and then press 'select from open layers...'. You can then select all the vector layers you want to use to cut the raster layer with.
now click on 'autofill..' in the Input layer column and press 'select from open layers' and select the raster file you want to cut.
now click on 'autofill...' in the Input layer column and press 'fill down'
Lastly, using the bar at the bottom of the window scroll right until you see the Clipped (mask) column then press the first '...' button and select the folder where you want to save the rasters. Call the file output_ or what ever you want then press save.
a autofill settings window will pop up select 'Fill with numbers' from the Autofill mode and press ok.
make sure to turn on 'Load layers on completion' in the bottom left hand corner and press Run.
Hope that helps.