On Wed, Dec 1, 2010 at 6:23 AM, Anthony <[email protected]> wrote: > 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" > > SEVERE: Thread for task 1-rx failed > java.lang.AssertionError > at > crosby.binary.osmosis.OsmosisSerializer.switchTypes(OsmosisSerializer.java:397)
This assertion was to aid in debugging. But it also mis-fires if you try to serialize something that contains no data. I'll push the fix into SVN at some point. Scott _______________________________________________ osmosis-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/osmosis-dev
