6

I am using QGIS and I created a vector grid on a crop field in order to cut it into plots. I want to save each grid cell into individual polygon shapefiles automatically.

Here is an example of a vector grid I would like to split into 117 shapefiles:

Example of a grid I would like to split into 117 shapefiles

Eventually, I did it manually with the selection tool and "Save as" but it is really time-consuming when there are more than 100 plots to save.

Is there any way to do it faster and more automatically?

Each plot as an attribute named "Plot" that can discriminate against them (basically being id + 1). It's the attribute used here to label them.

1 Answer 1

11

You need to use Split Vector Layer from processing toolbox. You can find the tool from Processing toolbox -> QGIS geoalgorithms -> Vector general tools -> Split Vector Layer

Select the input shapefile and use a unique ID field to save each grid block into separate file. You need to specify the output folder to save all the polygons in it.

enter image description here

3
  • it automatically exports the features as single gpkg files.. any way to change that to .shp ?
    – sn1ks
    Commented Oct 30, 2019 at 12:46
  • 1
    @sn1ks check the answer in this question: gis.stackexchange.com/questions/324220/…
    – ahmadhanb
    Commented Oct 30, 2019 at 13:12
  • great, thats what i needed!
    – sn1ks
    Commented Oct 30, 2019 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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