[OSM-talk] Merging OSM files

Simon Wood simon at mungewell.org
Tue Jun 3 05:22:41 BST 2008


Hi all,
Does anyone have a quick/easy solution to merge a number of '.osm' files into a single file? (rather than opening them all in JOSM and merging the layers down)

I am playing with relations/route for a tourist map, and would like to overlay a series of relation/routes onto a skelleton map (consisting only of the major roads/town names etc). I can use the API/XAPI to download seperate files; one for each relation/route, one for the major roads, etc.

I am thinking that this is a better approach than downloading everything and then cutting stuff out. I don't think I can fake it with the render's features file as I would like the more detailed ways (say tertiary roads) to be rendered if they are part of a relation/route.

I suppose this would also be a valid technique for producing a simplified map for Garmin/GPS export.

Cheers,
Simon

PS. Should 'wget http://www.informationfreeway.org/api/0.5/way[...]' be returning relations as well as nodes/ways? It appears to... if it should, then the wiki (http://wiki.openstreetmap.org/index.php/Osmxapi) needs updating.




More information about the talk mailing list