This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is there a simple way to turn .osm file to tile.png ?

0

I am a totally newbie for open street map, map drawing etc. I'm trying to do indoor map for a building. I've draw the map of the building with josm and have .osm file. I have to implement the map to the flutter and found a plugin called flutter_map which is leaflet implementation for flutter. Than I've realized that i have to use tile.png. I googled it and found that i should build my own tile server. Since there is only one little building in my map, isn't there a simpler way to turn .osm in tile.png instead of using server ?

asked 20 Nov '21, 13:44

baranacikgoz's gravatar image

baranacikgoz
76447
accept rate: 100%


2 Answers:

1

Docker was easier than i thought. Solved with docker tile server.

answered 22 Nov '21, 16:17

baranacikgoz's gravatar image

baranacikgoz
76447
accept rate: 100%

(22 Nov '21, 16:40) SomeoneElse ♦

Yep, switch2osm's docker tile server

(23 Nov '21, 18:27) baranacikgoz

0

I don't think there is such solution. Probably the most simple way is to learn tool like QGIS, import the data and define how do you want to see all the things, then export the image. This way you avoid server, but still I'm not aware of the solution that would be much simpler than that.

answered 20 Nov '21, 14:08

kocio's gravatar image

kocio
2.1k12341
accept rate: 20%

1

The QMetaTiles plugin can export a set of tiles from QGIS.

While QGIS does support the .osm file format via GDAL the default configuration does not split out the indoor tags for easy rendering, you will probably want to use a custom config file for the indoor tags. You will almost certainly need to create your own style for rendering this. Unfortunately, in my experience QGIS's learning curve is at least as steep as JOSM.

(20 Nov '21, 16:11) InsertUser

Source code available on GitHub .