Thanks Brett,

I downgraded to osmosis 0.39 and the osm to osmbin file worked.

But there are only attrnames, nodes.id2, nodes.idx, nodes.obm and 
osmbin.properties which are generated. The corresponding files of *.id2, *.idx 
and *.obm for ways and relations are not generated. I found osmbin.version=v1.1 
in the osmbin.properties.

Can someone give me some ideas on how to generate the corresponding files for 
ways and relations?

Thanks.

Kim



>________________________________
> From: Brett Henderson <[email protected]>
>To: KHOO KIM HWA <[email protected]> 
>Cc: "[email protected]" <[email protected]> 
>Sent: Sunday, October 14, 2012 4:47 AM
>Subject: Re: [osmosis-dev] java.lang.AbstractMethodError: 
>org.openstreetmap.osm.data.osmbin.v1_0.OsmBinV10Writer.initialize
> 
>
>Hi Kim,
>
>
>On 13 October 2012 00:36, KHOO KIM HWA <[email protected]> wrote:
>
>Hello,
>>
>>
>>
>>I got some errors when I try to convert .osm to osmbin file by executing: 
>>osmosis --read-xml file="idf_main_roads_new.osm" --write-osmbin-0.6 
>>dir="./osmbin-full-map-dir"
>>
>>
>>Thread for task 1-read-xml failed
>>java.lang.AbstractMethodError: 
>>org.openstreetmap.osm.data.osmbin.v1_0.OsmBinV10Writer.initialize(Ljava/util/Map;)V
>>        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:95)
>>        at java.lang.Thread.run(Unknown Source)  
>>
>>
>>Can someone give me some ideas to fix the problems?
>
>This error appears to be coming from an Osmosis plugin, not Osmosis itself.  
>The plugin will need to be updated to support the latest version of Osmosis.  
>If you can't get a newer version of the plugin you'll need to downgrade to 
>version 0.39 of Osmosis.  Recent versions of Osmosis require all tasks to 
>support a new "initialize" method.
>
>Brett
>
>
>
>
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to