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?

  • 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

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.

| 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 – Ian Turton 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 – Ian Turton Jul 26 '11 at 17:18

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.