Frederik,<br><br>full agreement to all this arguments. but one of the problems is none of this is documented. the import page in the wiki is old has no best practice like you recommend here. and we have no tools which makes it easier to deal with such data.<br>
If others agree the wiki should be updated.<br><br>We will need also more cleanup tools if such data is already uploaded. You mentioned in the other thread that you have used Postgis to manage such a task. Can you share that tools, scripts, commands? Only a minority are Postgis experts but many are technical enough to use the tools if there is a good manual. again should be in the wiki too. I plan such an import and delayed it because didn't want to do all the manual work. If I can manage to use this I volonteer to include it in the wiki<br>
<br>--<br>Apollinaris<br><br><br><br><div class="gmail_quote">On Sun, Sep 20, 2009 at 7:30 AM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John,<br>
<div class="im"><br>
John Smith wrote:<br>
> The majority of Australian postcodes have been converted from shape<br>
> files to osm files, however there is a couple of complex/big areas<br>
> that I'm having trouble dealing with in JOSM as a result, is there a<br>
> simple way to simplify these files from a command line util?<br>
<br>
</div>Let me speak bluntly: Have you been in touch with *anyone* who knows<br>
something about OSM before you attempted this import?<br>
<br>
One of the files you are trying to import has a node with more than<br>
40.000 ways. Even if JOSM would handle it, the API would not accept it.<br>
Even if teh API would accept it, you would basically sabotage any<br>
attempt at mapping anything touching the boundary of that post code area<br>
because they would be forced to download 4 MB of postcode area data even<br>
if they just wanted a little stretch of road that happened to cross it.<br>
<br>
Your ways are not tagged with anything. Did you plan to add the tags<br>
manually in JOSM before uploading?<br>
<br>
I have not checked this but given the ignorance that speaks from the<br>
above, I very much assume that you have not undertaken any effort to<br>
re-use nodes and ways; my guess is that where there is a boundary<br>
between two post code areas, you will import every node twice, once as<br>
part of post code area 1 and once as part of post code area 2... right?<br>
This is an awful waste of space and not how we do things in OSM.<br>
<br>
Please stop this import, take a deep breath, find out how to do it<br>
right, and then do it properly.<br>
<br>
Could the author(s) of shp2osm also please make sure that users of the<br>
tool are educated about multipolygons and the maximum sizes of ways.<br>
<br>
John, the following thread should have some information about how to<br>
properly import a mesh of boundaries (which I believe is what you are<br>
planning to do):<br>
<br>
<a href="http://lists.openstreetmap.org/pipermail/dev/2009-September/016995.html" target="_blank">http://lists.openstreetmap.org/pipermail/dev/2009-September/016995.html</a><br>
<br>
In short, you need to create "multipolygon" relations consisting of ways<br>
with no more thane 2,000 members each, and where you have shared<br>
boundaries these should be ONE way with ONE set of nodes, with the way<br>
referenced by the two post code area multipolygon.<br>
<br>
The thread also mentions the newly setup "imports support" working group<br>
which you can contact for help if you want.<br>
<br>
Please, folks, be more careful with imports. I'd rather *not* have post<br>
code data than botched imports. Well-meaning as they are, they can<br>
easily do more damage than any vandalism we have seen until now.<br>
<br>
Bye<br>
<font color="#888888">Frederik<br>
</font><div><div></div><div class="h5"><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" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</div></div></blockquote></div><br>