1

This question already has an answer here:

I have a large shapefile with one layer with several variables. The shapefile has US block groups that I'll use for analysis. However, as I want to use this for leaflet, I would like to create different layers/files for each state.

State Value1 Value2 Value3 ...
  NY    x      x      x
  CO    x      x      x 
  NY    x      x      x 

Is there a way of grouping per state and generate a layer from that, that I can later save as a shapefile?

I know that I can do it one by one, by using the SQL query tool, but as I have 50 something states, plus different files, that would take me quite of a long time.

marked as duplicate by Joseph qgis Mar 8 at 11:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    You can use the Split vector layer tool from the menubar (Vector > Data Management Tools) and select State as your unique field which would create separate layers for each state. – Joseph Mar 8 at 11:46
2

Joseph presented the solution to this question in a comment:

You can use the Split vector layer tool from the menubar (Vector > Data Management Tools) and select State as your unique field which would create separate layers for each state.

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