[OSM-talk] New to osmosis and it won't work for me

scottn at omnitechsolutions.co.uk scottn at omnitechsolutions.co.uk
Fri Feb 29 16:28:33 GMT 2008


Hi,

I am trying to get osmosis to work for me for the first time.  I'm not sure I have it installed properly because I try this :

java -mx1024m -jar osmosis.jar --read-xml
file=uk-080227.osm --bounding-polygon file="MyArea.txt" --write-xml
file="MyArea.osm"

And I get: 
esys at esys-desktop:~/osmosis-0.24$ sh do_it
Exception in thread "main" java.lang.ClassFormatError: com.bretth.osmosis.core.Osmosis (unrecognized class file version)
   at java.lang.VMClassLoader.defineClass(libgcj.so.70)
   at java.lang.ClassLoader.defineClass(libgcj.so.70)
   at java.security.SecureClassLoader.defineClass(libgcj.so.70)
   at java.net.URLClassLoader.findClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at gnu.java.lang.MainThread.run(libgcj.so.70)
do_it: 2: --bounding-polygon: not found
esys at esys-desktop:~/osmosis-0.24$

My file MyArea.txt is as follows:
North_Bristol
1
	51.6304	-2.5619
	51.6304	-2.4925
	51.4865	-2.4925
	51.4865	-2.5619
END
END

Has any one got any ideas?

Thanks and Regards,

Nathan.




More information about the talk mailing list