Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a shape file with UK districts and unitary authorities. In the past, using commuting patterns, I worked out a new geography which is close to travel to work areas. I now would like to create a new shape file where UK districts and Unitary authorities are merged to create my new map of travel to work areas. I know it is possible to merge features manually by clicking the "merge selected features" icon. Only it is taking me ages... Is there a way of programming this? Is there a way to write some syntax win order to merge features? That would help a lot, because I will be able to write the program and while I am running it doing something else. Also I would have the syntax saved somewhere.


Dr Chiara Rosazza Bondibene National Institute of Economic and Social Research

share|improve this question
What GIS Software are you using? – Mapperz Jul 5 '12 at 15:24
"... while I am running it doing something else..." is always good ;] – radek Jul 5 '12 at 15:54
Quantum GIS version 1.8.0 – Chiara Jul 5 '12 at 16:19
Is there an attribute you are using to select the districts and unitary authorities that they have in common (so all parts that you wish to join have the same attribute, then the next group do, etc)? – AlmaThom Aug 7 '12 at 15:31

I am assuming that you have pre-determined the combinations of admininstrative units that will generate each TTWA equivalent, and that this is in the form of a list like this:

Admin            TTWA
Southampton UA   1
Eastleigh        1
Test Valley      1
Gosport          2
Fareham          2
Portsmouth UA    2

In which case you need to transfer this list to the Admin boundary dataset using an attribute join (if it's not already part of that dataset). Then use the Vector > Geoprocessing Tools > Dissolve command on this dataset, specifying the TTWA attribute as the Dissolve field. This command will merge all admin polygons with the same TTWA value together across the whole dataset.

If you do not have such a pre-determined list of TTWA assignments, then you would need to use zone design techiques to generate TTWAs meeting a set of criteria. A couple of options to consider would be AZTool and PySAL

share|improve this answer
More options for zone design that might be helpful here are covered in What tools for regionalization/redistricting can you recommend? question – radek Aug 7 '12 at 17:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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