Converting Shape file into OSMAND obf format.

2,269 views
Skip to first unread message

binoy

unread,
Aug 6, 2012, 7:29:38 AM8/6/12
to osm...@googlegroups.com
I need to convert a shape file to obf format for using it in osmand application. The method I followed was first converting the shape file into OSM and then the OSM to obf format. The first part was done in Merkaartor. It converted the shape file into OSM. I opened the osm file in Qgis and Arcgis and checked it. The problem is with the second part. Normally osmand map creator converts a osm file to obf format. I have done this previousily many times. Now when i give the osm file generated using merkaartor to osmand map creator, it shows the error "exception during operation". I am attaching the screenshot of the error. Can anyone please tell me an option to rectify the error. Is there any other alternative way to convert a shape file into osmand obf format.
Untitled.jpg

Sanderd17

unread,
Aug 6, 2012, 9:41:55 AM8/6/12
to osm...@googlegroups.com
Can you open the OSM file with a text editor? The second line should be

<osm version='0.6' generator='xxx'>

If this is not the case, please add it.

Reading this wiki page might also help: http://wiki.openstreetmap.org/wiki/Osm_format

If this didn't help, can you give us an extract of the osm file? some lines at the beginning and some lines at the end will probably be enough.

binoy

unread,
Aug 7, 2012, 12:16:58 AM8/7/12
to osm...@googlegroups.com
Thank you for replying. Actualy it worked when i tried with merkaartor.

binoy

unread,
Aug 8, 2012, 7:46:07 AM8/8/12
to osm...@googlegroups.com
There is one new problem. I created the obf file using osmand map creator. The obf file when oppened in android device shows nothing. What are the possible problems. Why it is showing blank.

binoy

unread,
Aug 8, 2012, 7:46:34 AM8/8/12
to osm...@googlegroups.com

There is one new problem. I created the obf file using osmand map creator. The obf file when oppened in android device shows nothing. What are the possible problems. Why it is showing blank.

Victor Shcherb

unread,
Aug 8, 2012, 12:18:55 PM8/8/12
to osm...@googlegroups.com
Try to use binaryInspector.bat tool from OsmAndMapCreator to print all information from obf file. (Use -vmap option).

Best Regards,
Victor

среда, 8 августа 2012 г. пользователь binoy писал:

binoy

unread,
Aug 10, 2012, 12:56:59 AM8/10/12
to osm...@googlegroups.com
How to run binaryinspector.bat. When i double click on the file a command window opens and closes.

Stephan75

unread,
Aug 10, 2012, 11:50:47 AM8/10/12
to osm...@googlegroups.com
You have to run it via the commandline interface of Windows.

Choose the Windows start menu, choose "execute" or similar and type "cmd" to start that window.
Reply all
Reply to author
Forward
0 new messages