[GIS] Splitting shapefile into separate files for each feature using QGIS or SAGA

qgissagashapefilesplit-by-attribute

I have a polyline shapefile with about 20 kinds of roads.

I would like to know how can I create automatically a vector file for each one.

I am aware of how to do it using ArcGIS Desktop – see Exporting feature class into multiple feature classes based on field values using ArcGIS Desktop?

How do I do it using QGIS or SAGA?

Best Answer

In QGIS 2.8.1 there's a tool in the Vector menu that can split a dataset based on an attribute.

Look in Vector > Data Management Tools > Split Vector Layer...

split vector layer tool in QGIS 2.8.1

It's a basic tool that should work if you don't want to resort to plugins or tools in Processing; unless they offer additional functionality you need.