I need to do a 2 stage split by attribute, using QGIS 2.0.1-Dufour. After the first split, I got 30 layers.

Is there any way to do the second split automatically? I don't really like the idea to make the split manually.

It would be great to select all the opened layers, and make the split by the - common - attribute with one click. The result would go in a separate directory for each layer.

  • 1
    Which GIS system are you using? – Hornbydd Nov 27 '13 at 23:01
  • Also, can you edit your question to include not just your GIS software, version and in this case license level (if it is ArcGIS for Desktop because on Split that makes a difference), but also more about what you mean by a "2 stage split", please? – PolyGeo Nov 27 '13 at 23:08
  • Thank you for your reply! I edited my question. 2 stage split: I start with one layer (file). I split it by an attribute which will result 30 new layers (files). And i need to do a second split on these new layers. I would like to avoid to open these new layers one by one and do the second split manually. It would take me too much time. – Mpk1 Nov 27 '13 at 23:16
  • So i'm looking for a solution where i can select all the 30 new layers and make the split with one click. – Mpk1 Nov 27 '13 at 23:18
  • I hope that you understand my question, my English is not so good :) – Mpk1 Nov 27 '13 at 23:20

If I understand your question properly, I suggest just concatenating your two 'split' fields into one, which would give all possible combinations, then just use that column for the split. You could remove the concatenated column when done to clean up the data if that matters.

  • The task i must done is the following: I have a map with territories on 4 levels: country, nuts1, nuts2, nuts3. First i must create seperate layers for countries. It's done with splitting by the country attribute. So i have 30 countries (with nuts1 nuts2 and nuts3 territories). – Mpk1 Nov 27 '13 at 23:47
  • The second split is for different nuts levels. At the end i need every country at every different nuts level, so 30 x 3 = 90 files. – Mpk1 Nov 27 '13 at 23:49
  • Again, assuming I understand the question, I think my solution will work. Concatenate your country, nuts1, nuts2 and nuts3 fields into a new field (call it "Split" or whatever you want.) Use this new field to split on. – Darren Cope Nov 28 '13 at 17:50

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.