Paul - <div>Thanks for this - we'll take a look at it / test it with the Seattle Import data & report back with lessons learned!</div><div>Thanks, Jeff</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Dec 9, 2012 at 1:36 AM, Paul Norman <span dir="ltr"><<a href="mailto:penorman@mac.com" target="_blank">penorman@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For the last couple of weeks I've been working on addressmerge, a tool to<br>
post-process address data by comparing it with existing OSM data. I have<br>
pushed release 0.1 to <a href="https://github.com/pnorman/addressmerge" target="_blank">https://github.com/pnorman/addressmerge</a><br>
<br>
Currently it will take a file in importable .osm format, compare it with<br>
existing OSM data in an imposm database and create a resulting importable<br>
.osm file with address nodes that duplicate existing data removed.<br>
<br>
It will correctly handle addresses on building ways, multipolygons and<br>
anything else in the OSM data. It does not currently handle addresses on<br>
objects other than nodes in the import data.<br>
<br>
Requirements:<br>
<br>
An imposm database<br>
imposm.parser<br>
python-lxml<br>
psycopg2<br>
<br>
Limitations:<br>
It relies on imposm.parser which breaks on some XML files. To fix this try<br>
running xmllint --format original.osm > reformatted.osm<br>
<br>
It omits any ways or relations in the input file, relevant or not.<br>
<br>
The documentation is currently very minimal.<br>
<br>
I intend to make it handle other common address formats aside from addresses<br>
is a decent amount more complicated.<br>
<br>
<br>
_______________________________________________<br>
Imports mailing list<br>
<a href="mailto:Imports@openstreetmap.org">Imports@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/imports" target="_blank">http://lists.openstreetmap.org/listinfo/imports</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font size="1">Jeff Meyer<br>Global World History Atlas<br><a href="http://www.gwhat.org" target="_blank">www.gwhat.org</a><br><a href="mailto:jeff@gwhat.org" target="_blank">jeff@gwhat.org</a><br>
206-676-2347<br></font><br><br>
</div>