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.
(Credits Frederik Ramm) Can someone translate this? How do I import OSM data into PostGIS database. Reference: http://wiki.openstreetmap.org/wiki/Osm2pgsql
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 |
As Frederick / woodpeck points out this is not easy and contains multiple steps:
I'm not familar if Tilemill/Mapbox studio can handle both steps. But this platform runs completely online and without any CLI preprocessing. Usually you pick an desktop renderer as Maperitive (or the full OSM rendering stack) and convert the resulting tiles structure to MBtiles (no idea which tool to use). answered 30 Jul '15, 10:14 iii |
The best guide to setting up osm2pgsql etc. is probably the switch2osm guide. You can point TileMill at the database that you set up using those instructions. answered 30 Jul '15, 10:24 SomeoneElse ♦ @Someoneelse can you let me know how to point TileMill to this database?
(31 Jul '15, 02:56)
Chathu
Mapbox's "use TileMill with a database" instructions are here: https://www.mapbox.com/tilemill/docs/guides/postgis-work/ But that's probably only needed if you're setting up a TileMill project from scratch. If you're using an existing stylesheet and your database is called "gis" I'd imagine things will "just work" as far as database access is concerned
(03 Aug '15, 17:23)
SomeoneElse ♦
|