[OSM-talk] does one need to download the planet to use osmosis

Peter Körner osm-lists at mazdermind.de
Sun Nov 15 21:04:47 GMT 2009


> good idea - but can you confirm that it is impossible to extract it from the 
> remote file?

you could do it with good ol' shell pipes:

wget http://planet.openstreetmap.org/planet-latest.osm.bz2 -O - | bzcat
   osmosis --read-xml "/dev/stdin" --bounding-box top=49.5138
   left=10.9351 bottom=49.3866 right=11.201 --write-xml "extract.xml"

similar you can use /dev/stdout as output-file and pipe another command 
at the end, eg. bzip to comress the data again or a script that parses 
the data from stdin.

Peter




More information about the talk mailing list