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 polygon shapefile of origin zones. I also have a polygon shapefile of destination zones. I also have a table that lists origin-destination pairs.

I would like to create a multi-part shapefile where each row represents an origin-destination pair. So when you select a single row, two separate polygons would be highlighted (one polygon representing the origin zone, the other representing the destination zone).

I don't know how to go about creating the multi-part shapefile. Does anyone have any suggestions?

share|improve this question
Which software are you using ? – simo Jul 26 '11 at 10:36
How many features are there in the original zones shapefiles? – jonatr Jul 27 '11 at 7:22

You need to look into how to create Multi-Polygons in what ever software you are using. If you are planning to do this programatically I can recommend GeoTools which will provide you with the classes you need to read in the two shapefiles, combine the two polygons into a multipolygon and write the shapefile back out.

share|improve this answer
This is true for desktop GIS but I guess/hope it is possible to do it without multi-polygon for webmapping. – simo Jul 26 '11 at 11:51
the question asked for a way to write out a multi poly shapefile – iant Jul 26 '11 at 15:47
sure, but I was thinking maybe avoiding it (according to his needs)! – simo Jul 26 '11 at 17:05
Sure, I'd use a postgis view my self – iant Jul 26 '11 at 17:18

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.