2

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?

2
  • 3
    Which software are you using ?
    – simo
    Commented Jul 26, 2011 at 10:36
  • How many features are there in the original zones shapefiles?
    – jonatr
    Commented Jul 27, 2011 at 7:22

1 Answer 1

3

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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