I am working with QGIS. I used raster-extract-contour to get contour lines from a raster image. Now I want to break up my single vector file into multiple layers based on elevation. How do I do this?

2 Answers 2


You can do that while generating the contour lines. When you define the interval between contour lines in the Contour menu, you can provide an attribute name, in which the elevation will be attached as an attribute.

enter image description here

See also the tutorial, step 14.

  • 1
    Please elaborate on how to achieve it in the answer. Links may be broken in the future.
    – dof1985
    Jul 11, 2016 at 13:25
  • Good point. Will do.
    – karpfen
    Jul 11, 2016 at 13:26

If you want to obtain one layer for every attribute in a specific field then you could to use "Split vector layer" in:

Processing Toolbox >> QGIS Geoalgorithms >> Vector general tools

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.