how to work with osmand map creator

1,251 views
Skip to first unread message

osmania

unread,
Oct 10, 2011, 2:00:49 AM10/10/11
to Osmand
hi, I'm trying to customize osmand application using eclipse..
I tried to run the osmand application but no avd showed up
instead the osmand map creator appeared
why is that so?

that time I connected to internet and it just download map tiles
automatically
well actually I already have .bz2 and obf file that I've downloaded
before
then on osmand map creator I go to file --> select osm file then I
open the .obf file
so after couples of minute the loading finish but no map showed up
the eclipse console said this :

java.lang.Exception: libname: jleveldb-win-x86.lib not found
at com.anvisics.jleveldb.LevelDBAccess.load(LevelDBAccess.java:51)
at
net.osmand.data.preparation.IndexCreator.generateIndexes(IndexCreator.java:
342)
at net.osmand.swing.OsmExtractionUI$11.run(OsmExtractionUI.java:447)
at net.osmand.swing.ProgressDialog
$WorkerThread.run(ProgressDialog.java:86)
10 Okt 11 12:39:27 net.osmand.data.preparation.IndexCreator
extractOsmToNodesDB
INFO: File parsed : 163171
10 Okt 11 12:39:27 net.osmand.data.preparation.IndexCreator
extractOsmToNodesDB
INFO: File indexed : 163187
10 Okt 11 12:39:30 net.osmand.osm.MapRenderingTypes init
INFO: Time to init 47
10 Okt 11 12:39:31 net.osmand.data.preparation.IndexVectorMapCreator
indexMultiPolygon
WARNING: Probably map bug: Multipoligon id=1558082 contains only inner
ways :
10 Okt 11 12:39:31 net.osmand.data.preparation.IndexVectorMapCreator
indexMultiPolygon
WARNING: Probably map bug: Multipoligon id=1559211 contains only inner
ways :
Pack.packTree : Size of elmts: 200063
Pack.packTree : Size of elmts: 176090
Pack.packTree : Size of elmts: 155017
Pack.packTree : Size of elmts: 123580
Pack.packTree : Size of elmts: 95998
Pack.packTree : Size of elmts: 10870
Pack.packTree : Size of elmts: 7155
Pack.packTree : Size of elmts: 4842
RENDERING SCHEMA takes 13210
MAP INDEX SIZE : 34096419
CITIES size 171093 false
CITIES size 2783877 true
POSTCODES size 796
ADDRESS INDEX SIZE : 2955792
TRANSPORT INDEX SIZE : 81
10 Okt 11 12:47:55 net.osmand.data.preparation.IndexCreator
generateIndexes
INFO: Finish writing binary file
10 Okt 11 12:48:33 net.osmand.swing.ExceptionHandler handle
SEVERE: Log file is not found

Pavol Zibrita

unread,
Oct 10, 2011, 4:23:36 AM10/10/11
to osm...@googlegroups.com
Hi there!

   You didn't run Osmand, you started the map creator. Note also, that if you would like
to run Osmand on emulator, you should have defined one, probably.

THe output you sent was ok. The map creator generated and obf file from the file you selected.
THis [map_name].obf file, you can copy to your phone on sdcard into osmand directory and
when running osmand, it will find it and use it.

You can however download most maps directly from osmand. Also in emulator. Don't forget to
give an sdcard to the emulator (maps are around 20-400M, depends on country)

Best regards,
Pavol

osmania

unread,
Oct 12, 2011, 9:26:13 AM10/12/11
to Osmand
thanx for the reply..
ok it seems like i didn't define the version before
now that i've choose one, the application works fine on the emulator

how to give sd card to the emulator?
I've add option SD card support to the avd..
but can the emulator browse file from my hardisk storage?
how to add the .obf file to the emulator?

Pavol Zibrita

unread,
Oct 12, 2011, 3:56:32 PM10/12/11
to osm...@googlegroups.com
Hi!

Hm, when you are defining the emulator, there is option on how big the sdcard should be.
About accessing sd-card:
In the eclipse, there is the DDMS perspective. There you should be able to find 'File explorer' view.
This File explorer view browses the sd-card of the emulator, or of the complete system where sd-card
is mounted if defined.
There is also button to send and get files from there.

Or you can use adb command, shell, to upload files.

Or you can install some app (file manager) on emulator that can connect to lan and copy files (es file manager?, astro..? etc..)

Or you can find somewhere the format of the sd-card that the emulator uses, try to mount it somehow with home made utilities,
or existing programs that probably might be find on google.

Or, you can search google for any other solution.

:-)

Best Regards,
Pavol

PS:
http://www.streamhead.com/android-tutorial-sd-card/
http://blog.jayway.com/2009/04/22/working-with-sd-cards-in-the-android-emulator/
http://deltafalcon.com/2010/04/mounting-an-android-emulator-sd-card-image-in-windows/
http://developer.android.com/guide/developing/tools/emulator.html
...

Google is your friend (probably :-) )
Reply all
Reply to author
Forward
0 new messages