[OSM-dev] osmosis bz2 performance
Martijn van Oosterhout
kleptog at gmail.com
Thu Feb 7 13:38:58 GMT 2008
On Feb 7, 2008 2:01 PM, Stefan Baebler <stefan.baebler at gmail.com> wrote:
> > > Would "-" have a meaning somewhere else? read xml change, write xml
> > > ... all file operations perhaps?
> > Yep, ideally this should be done for all tasks with a file argument.
> It still won't be possible to use 2 input streams (eg planet.osm +
> planet.osc) on stdin, but at least one (probably bigger source) as it
> was now with /dev/stdin. Named pipes could solve that, but AFAIK they
> are not supported in Java. Sockets could work, but are not as
> convenient for scripting.
Actually, named pipes would work, since osmosis doesn't seek. Something like:
bzcat x.bz2 >/tmp/buffer &
osmosis .... --read /tmp/buffer
Should do fine.
Have a nice day,
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
More information about the dev