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?


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.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • 1
    Please elaborate on how to achieve it in the answer. Links may be broken in the future. – dof1985 Jul 11 '16 at 13:25
  • Good point. Will do. – karpfen Jul 11 '16 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, privacy policy and cookie policy

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