<br><br><div class="gmail_quote">2009/9/14 Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ian,<br>
<div class="im"><br>
> This feature could be added, but could you draw a couple pictures to<br>
> explain what you mean? What happens with the graph edges inside the<br>
> multipolygon? Since they aren't really polygons, do they belong in a<br>
> multipolygon relation? Maybe I'm not correctly interpreting what you meant.<br>
<br>
</div>The typical case is a shapefile with a mesh of, say, post code<br>
boundaries or county boundaries or so for a larger area. You will<br>
typically have lots of individual polygons, but running them through<br>
shp2osm as-is will duplicate nodes along the borders. The goal is to<br>
split up the polygons into their border lines, and then create OSM<br>
multipolygon relations where the border consists of several of those<br>
lines, and every line is used by two adjacent polygons (rather than<br>
importing the line twice just because it was present twice in the shape).<br>
<div class="im"><br></div></blockquote></div><br>I had a basic prototype for this behavior based on SQL code; the limitation was that I didn't write the code to create the relation and that it was working only on lines which had the same OSM nodes.<br>
The first pass would merge nodes and then it would do a check on lines. But there is more work to get it work properly. This was done using Osmosis postgresql schema.<br><br>Emilie Laffray<br>