I have a shapefile with several features and want to split the layer into separate shapefiles. I looked into similar questions recommending Split Vector Layer
. However, I could not find a way to specify the name of the output files depending on the value in a certain field.
For example, in the image below, I want to use the field name
as the output filenames (like tawitawi.shp
for Tawitawi
, igat.shp
for Igat
, etc.), and skip saving the files having blank/NULL values for the name
field:
Is there a way to do this, preferably using command line tools to speed up the processing?