.osm to .map (mapsforge)

Good day! I have a task of processing .osm to .map (for using in MapView of mapsforge package). This is done with osmosis (and plugin mapfilewriter). But as result osmosis outputs unreadable files with strange sizes (f.e., osmosis.bat --rx file=…/data/dahlem.osm --mw file=/tmp/dahlem-high.map bbox=52.4477300,13.2756600,52.4588200,13.2986600 gives 2kb output file while input file is 14 mb). Can someone tell where’s the problem?

is there any output from osmosis on the console?

Have you ever had success with this converting process wit another osm source file, or is this the first time that you try to produce map file, and it fails right from the start?

stephan75
It’s the first time. I tried several files. Output differed, from 2 to 300 kb but anyway not the right size. I used notation osmosis.bat --rx file=…/data/dahlem.osm --mw file=/tmp/dahlem-high.map bbox=52.4477300,13.2756600,52.4588200,13.2986600 taked from Wiki, where bbox coordinates are these which are stated as bounds when I export osm from site. I tried different versions of osmosis and mapfilewriter, but the result is the same. I’m erroneous somewhere but cannot say where(

Output is here

C:\Osmosis\osmosis-0.37\bin>osmosis --rx file=map.osm --mw file=map.map bbox=59.91639,30.23665,59.93594,30.31029 map-start-position=59.92,30.30
фхъ 06, 2011 9:32:53 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.37
фхъ 06, 2011 9:32:53 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
фхъ 06, 2011 9:32:53 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask
INFO: mapfile-writer version 0.2.4
фхъ 06, 2011 9:32:53 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
фхъ 06, 2011 9:32:53 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
фхъ 06, 2011 9:32:54 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask complete
INFO: completing read…
фхъ 06, 2011 9:32:54 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask complete
INFO: start writing file…
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 10.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 20.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 30.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 40.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 50.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeSubfile
INFO: written 60.0% of file
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriter writeFile
INFO: Finished writing file.
фхъ 06, 2011 9:32:56 PM org.mapsforge.preprocessing.map.osmosis.MapFileWriterTask complete
INFO: finished…
фхъ 06, 2011 9:32:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
фхъ 06, 2011 9:32:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 2945 milliseconds.