NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I have a remote server tasked with regularly generating .osm files from Wikivoyage listings.

I would like that server to also convert from .osm to .obf
While this conversion is easy with the GUI of OsmAndMapCreator (screenshot below), I am not sure how to proceed by command-line (bash).

OsmAnd Map Creator - Create .obf from osm file...

asked 18 Dec '13, 09:12

Nicolas%20Raoul's gravatar image

Nicolas Raoul
645172533
accept rate: 20%


1) Create 2 folders, for instance /home/nico/osm2obf/input and /home/nico/osm2obf/output

2) Put your OSM file(s) in /home/nico/osm2obf/input.

3) Create this file in the folder where OsmAndMapCreator is installed:

<?xml version="1.0" encoding="utf-8"?>
<batch_process>
    <process_attributes
        mapZooms=""
        renderingTypesFile=""
        zoomWaySmoothness="" 
        osmDbDialect="sqlite"
        mapDbDialect="sqlite"/>
    <process
        directory_for_osm_files="/home/nico/osm2obf/input"
        directory_for_index_files="/home/nico/osm2obf/output"
        directory_for_generation="/home/nico/osm2obf/output"
        skipExistingIndexesAt=""
        indexPOI="true"
        indexRouting="false"
        indexMap="false"
        indexTransport="false"
        indexAddress="false">
    </process>
</batch_process>

4) Run this command:

java -Djava.util.logging.config.file=logging.properties -Xms256M -Xmx2560M -cp "./OsmAndMapCreator.jar:./lib/OsmAnd-core.jar:./lib/*.jar" net.osmand.data.index.IndexBatchCreator osm2obf.xml
permanent link

answered 18 Dec '13, 09:36

Nicolas%20Raoul's gravatar image

Nicolas Raoul
645172533
accept rate: 20%

edited 18 Dec '13, 09:38

I have two more questions about this topic :

1) Could you update this answer : It seems net.osmand.data.index.IndexBatchCreator no more exists in 2023 versions 2) I noticed that the software increased from 2014 to 2023 from a size of 24MB to 189MB. What are the reasons for such great growth when the software of 2014 made it possible to do everything that the software of 2023?

thanks a lot for any answer

permanent link

answered 27 Oct '23, 22:56

chris38's gravatar image

chris38
1
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×100
×2

question asked: 18 Dec '13, 09:12

question was seen: 7,636 times

last updated: 27 Oct '23, 22:56

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum