Creating new layer from selection in QGIS?
After making a selection in a layer, right click on it and choose save selection as.
Update for QGIS 3.2 Bonn as of 2018
As this is the accepted answer and the way of doing this has evolved somewhat, beginners might find this answer incomplete, so:
After making a selection in a layer, right click on it and choose "Export" > "Save Selected Feature As..."
which is actually just a nice redundancy, because it takes you to the same mask as clicking "Save Feature As...", but it already checks the box "Save only selected features"
A new feature just came up in QGIS 2.2 called "Paste as new vector layer":
It is a common activity in a GIS to create a sub-selection and then to create a new layer from the selection. In QGIS you can already do
save selection as
to save a layer from your selection, and now offers functionality that allows you to create a new file or memory layer from whatever is in your clipboard. Simply select some features, copy them to your clipboard and then doEdit -> Paste features as
and choose eitherNew vector layer
orNew memory layer
from the submenu. The best part of this new feature is that if you have some Well Known Text (WKT) features in your clipboard from another app, you can simply paste them into QGIS as a new layer now.
In QGIS 2.6.2 Brighton, you can do the following:
- Select features
- Right click on the layer
- Save as...
- Select the option "Save only selected objects"
- Save
That should do