You are not logged in.

Announcement

*** NOTICE: By 30th of September 2022 the forum.openstreetmap.org will be retired, please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators. We expect the migration of data will be finished by that date, you can follow its progress here.***

#1 2022-05-26 01:33:36

david299792
Member
Registered: 2022-05-26
Posts: 2

Easiest way to render tiles

Hello,

I intend to render tiles of a region in advance and serve them statically from a file system. According to http://tools.geofabrik.de/calc/ approximately 30 GB of disk space are required. Does anyone have experience how this would perform?

Regarding the main question: What is the most straightforwarded way to render tiles with default settings of a predefined region? The data split up in regions seems to be available at http://download.geofabrik.de/.

Thanks in advance!

Last edited by david299792 (2022-05-28 18:57:17)

Offline

#2 2022-05-26 14:29:48

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,601

Re: Easiest way to render tiles

david299792 wrote:

Does anyone have experience how this would perform?

At the risk of stating the obvious, the time to render and how efficient the system would be at serving tiles depends entirely on the system you're running it on.

Offline

#3 2022-05-28 18:56:57

david299792
Member
Registered: 2022-05-26
Posts: 2

Re: Easiest way to render tiles

Thank you for your reply!

I was indeed aware that the performance would depend on the hardware. However, I lack knowledge whether a file system is suited for a task like this. In the meantime, I have thought of storing the tiles in a database.

I would like to highlight my main question: What is the most straightforwarded way to render tiles with default settings of a predefined region? What software is required and how is it configured? Tiles styled similiar to the ones on https://www.openstreetmap.org/ would be perfectly fine.

Offline

#4 2022-05-28 21:03:09

kocio
Administrator
From: Warszawa
Registered: 2013-09-04
Posts: 3,566
Website

Re: Easiest way to render tiles

I don't get what do you mean by "default settings" - objects have just tags, not settings, it's up to style designers to make some settings how to render it and there are multiple styles, both from a visual and technical point of view.

The easiest is always to use some that are ready and are served by someone (usually some carto company), but sometimes it means paying for it when you want to use it on a wider scale than just personal needs.

Offline

#5 2022-05-28 22:05:14

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,601

Re: Easiest way to render tiles

I you follow one of the guides at https://switch2osm.org/serving-tiles/ you'll be able to render map tiles that look like the "standard" ones at https://openstreetmap.org .

Offline

#6 2022-05-28 22:51:06

Jan Olieslagers
Member
From: B-3150
Registered: 2019-09-15
Posts: 312

Re: Easiest way to render tiles

However, I lack knowledge whether a file system is suited for a task like this. In the meantime, I have thought of storing the tiles in a database.

Hah, store the images in a database? Yes, and where is the database going to store them? You guess it: in a filesystem (unless you are running oracle database on ASM storage). So I see only complication in adding the extra database layer, and no advantage.

Offline

#7 2022-05-30 08:08:39

Marcos Dione
Member
Registered: 2018-12-28
Posts: 3

Re: Easiest way to render tiles

For pre-rendering tiles I use

generate-tiles.py

from https://github.com/StyXman/osm-tile-tools, which is a heavily modified version of the original one from them old mapnik-stylesheets. It requires a rendering DB as imported with osm2pgsql (which is standard) and the XML Mapnik file. This one you can generate from osm-carto + carto.

It supports various ways to specify the region to render and various output formats, including individual tiles, renderd metatiles and MBT, which are basically SQLite files. If you have more questions about it you can find me in the #osm IRC channel as StyXman.

Jan Olieslagers wrote:

However, I lack knowledge whether a file system is suited for a task like this. In the meantime, I have thought of storing the tiles in a database.

It is true that a db involves an extra layer, but this format can indeed provide extra performance:

* Only one file to open and not one open/close pair of ops per tile.
* Reduces internal fragmentation.
* If it has some kind of Hillbert-like index and storage, it could retrieve close-by tiles faster on spinny disks.

Offline

Board footer

Powered by FluxBB