Hola a todos/as: No sé si esto puede ser de utilidad para la futura importación del catastro español. Por lo que parece, con este código se pueden eliminar direcciones que duplican a las ya existentes en la base de datos OSM.
Un saludo, Rafael Ávila Coya. -------- Original Message -------- Subject: [Imports] addressmerge 0.1 release Date: Sun, 09 Dec 2012 01:36:37 -0800 From: Paul Norman <penor...@mac.com> To: impo...@openstreetmap.org CC: d...@openstreetmap.org For the last couple of weeks I've been working on addressmerge, a tool to post-process address data by comparing it with existing OSM data. I have pushed release 0.1 to https://github.com/pnorman/addressmerge Currently it will take a file in importable .osm format, compare it with existing OSM data in an imposm database and create a resulting importable .osm file with address nodes that duplicate existing data removed. It will correctly handle addresses on building ways, multipolygons and anything else in the OSM data. It does not currently handle addresses on objects other than nodes in the import data. Requirements: An imposm database imposm.parser python-lxml psycopg2 Limitations: It relies on imposm.parser which breaks on some XML files. To fix this try running xmllint --format original.osm > reformatted.osm It omits any ways or relations in the input file, relevant or not. The documentation is currently very minimal. I intend to make it handle other common address formats aside from addresses is a decent amount more complicated. _______________________________________________ Imports mailing list impo...@openstreetmap.org http://lists.openstreetmap.org/listinfo/imports _______________________________________________ Talk-es mailing list Talk-es@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-es