<p>I wrote my java shp-to-osm specifically to deal with multipolygons. Give it a try ands see if it does shat you want.</p>
<div class="gmail_quote">On Jun 30, 2011 8:24 AM, "Anthony" <<a href="mailto:osm@inbox.org">osm@inbox.org</a>> wrote:<br type="attribution">> Does anyone have code to do shapefile to multipolygon (in<br>
> .osm/.pbf/.o5c format)? What I want is to take a shapefile with<br>> overlapping boundaries (e.g.<br>> <a href="http://wiki.sharedmap.org/wiki/File:Qgis.png">http://wiki.sharedmap.org/wiki/File:Qgis.png</a>) and convert it into a<br>
> bunch of multipolygons with shared ways.<br>> <br>> I used to have code to do this:<br>> <a href="http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/SQL">http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/SQL</a><br>
> and <a href="http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/Perl">http://wiki.openstreetmap.org/wiki/User:%E2%A0%A0%E2%A0%81%E2%A0%9D%E2%A0%9E%E2%A0%93%E2%A0%95%E2%A0%9D%E2%A0%BD/Perl</a><br>
> <br>> But I didn't document it well enough and I forget how it works :).<br>> And John is having a problem with it in that it only seems to work<br>> when interior ways are exactly two nodes.<br>> <br>
> My understanding is that, as of about a year ago, none of the shp2osm<br>> programs support multipolygons. Hopefully this has changed.<br>> <br>> _______________________________________________<br>> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a><br></div>