[OSM-dev] Osmosis - Extract Bounding Box

Tareq Ismail hellotheretareq at gmail.com
Tue Feb 16 22:01:49 GMT 2010


Hello all,

I'm trying to run the following command shown on the wiki (see
here<http://wiki.openstreetmap.org/wiki/Osmosis>
):

bzcat ../wa.osm.bz2 | java osmosis --read-xml enableDateParsing=no
file=/dev/stdin\ --bounding-box top=47.85187 left=122.44881 bottom=47.40671
right=121.80199 --write-xml file=-\ | bzip2 > extracted.osm.bz2

And I'm getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: osmosis
Caused by: java.lang.ClassNotFoundException: osmosis
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
Could not find the main class: osmosis.  Program will exit.

I'm making my call from the bin folder from the binary for Osmosis given on
the wiki.
Any suggestions as to what I'm doing wrong?
Thanks!

---
Tareq Ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100216/f783aed1/attachment.html>


More information about the dev mailing list