On Wed, Dec 1, 2010 at 2:56 AM, Peter Körner <[email protected]> wrote: > Am 01.12.2010 05:36, schrieb Anthony: >> >> Is this the right list for a newbie osmosis installation question, or >> should I use a different list? > > Just ask your question, you'll be served.
Okay. This is going to be really stupid... How do I install it in order to convert osm files to pbf files? O downloaded http://dev.openstreetmap.org/~bretth/osmosis-build/osmosis-latest.tgz and unpacked it, went to bin, ran ./osmosis. It complained that I didn't have java installed. So I ran "sudo aptitude install gcj-4.4-jre-headless". Then I created a file star.osm: --- <osm version="0.6"> <relation id="1" version="9" timestamp="2010-06-25T11:33:43Z" changeset="1" /> </osm> --- I then ran the command "./osmosis --rx star.osm --sort --write-bin star.osm.pbf" and I get: --- a...@ubuntu:~/osmosis-0.38/bin$ ./osmosis --rx star.osm --write-bin star.osm.pbf Dec 1, 2010 7:19:12 a.m. org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.38 Dec 1, 2010 7:19:13 a.m. org.java.plugin.registry.xml.ManifestParser <init> INFO: got SAX parser factory - org.apache.xerces.jaxp.saxparserfactoryi...@f446bd5 Dec 1, 2010 7:19:13 a.m. org.java.plugin.registry.xml.PluginRegistryImpl configure INFO: configured, stopOnError=false, isValidating=true Dec 1, 2010 7:19:13 a.m. org.java.plugin.registry.xml.PluginRegistryImpl register INFO: plug-in and fragment descriptors registered - 1 Dec 1, 2010 7:19:13 a.m. org.java.plugin.standard.StandardPluginManager activatePlugin INFO: plug-in started - [email protected] Dec 1, 2010 7:19:13 a.m. org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Dec 1, 2010 7:19:13 a.m. org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. Dec 1, 2010 7:19:13 a.m. org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. Dec 1, 2010 7:19:13 a.m. org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 1-rx failed java.lang.AssertionError at crosby.binary.osmosis.OsmosisSerializer.switchTypes(OsmosisSerializer.java:397) at crosby.binary.osmosis.OsmosisSerializer.access$900(OsmosisSerializer.java:36) at crosby.binary.osmosis.OsmosisSerializer$Processor.process(OsmosisSerializer.java:374) at org.openstreetmap.osmosis.core.container.v0_6.RelationContainer.process(RelationContainer.java:60) at crosby.binary.osmosis.OsmosisSerializer.process(OsmosisSerializer.java:432) at org.openstreetmap.osmosis.xml.v0_6.impl.RelationElementProcessor.end(RelationElementProcessor.java:116) at org.openstreetmap.osmosis.xml.v0_6.impl.OsmHandler.endElement(OsmHandler.java:107) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(libgcj.so.10) at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:108) at java.lang.Thread.run(libgcj.so.10) Dec 1, 2010 7:19:13 a.m. org.openstreetmap.osmosis.core.Osmosis main SEVERE: Execution aborted. org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed. at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146) at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92) at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37) at java.lang.reflect.Method.invoke(libgcj.so.10) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) at org.codehaus.classworlds.Launcher.main(Launcher.java:31) --- I'm thinking either 1) I installed the wrong jre; or 2) I need to somehow install pbf support separately; though there's a good possibility that it's actually 3) I'm just doing something completely wrong and stupid. _______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
