Why not ask your question on the new OpenStreetMap Community Forum?


How do I convert .osm.pbf or .osm.bz2 http://download.geofabrik.de/africa-latest.osm.bz2. to Geo .tiff via commandline? I want is end results to convert files to .mbtiles. If I have Geo .tiff I can convert using Gdal to .mbtiles easily. This is the response I got from the guys at geofabrik.de.

 This is not so easy. You will want to have different zoom levels
 generated, so it is better to go osm->mbtiles directly without GDAL and
 GeoTiff. However, osm->mbtiles requires map rendering and style
 information. If it is for a small area, you can probably use Maperitive
 for this (unsure if it has a command line). Otherwise you will need to
 import OSM data into a PostGIS database, and then you can use e.g.
 Tilemill to batch-process

(Credits Frederik Ramm)

Can someone translate this? How do I import OSM data into PostGIS database. Reference: http://wiki.openstreetmap.org/wiki/Osm2pgsql

osm2pgsql -s -U postgres -d nameofdatabase /file/path/toosm/fileorpbf/name.osm

Will this work for .OSM.PBF?

How do I use a Tilemill to do a batch process? What is the commandline arguments?

asked 30 Jul '15, 03:43

Chathu's gravatar image

accept rate: 0%

closed 30 Jul '15, 09:40

Hendrikklaas's gravatar image


The question has been closed for the following reason "Duplicate Question with just 1 dot extra." by Hendrikklaas 30 Jul '15, 09:40

Follow this question

By Email:

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



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:


question asked: 30 Jul '15, 03:43

question was seen: 4,176 times

last updated: 30 Jul '15, 09:40

powered by OSQA