Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
3  
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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.