Closed BigBoulard closed 8 months ago
martin-cp
can take any source
as a parameter, which includes a combined comma-separated source as well. Do note that the default osm2pgsql output may not be what you want - take a look at the planetiler tool to generate your tiles directly from OSM dump in a much better schema and much faster.
Do note that the default osm2pgsql output may not be what you want - take a look at the planetiler tool to generate your tiles directly from OSM dump in a much better schema and much faster.
Trying to create a public repo to illustrate something I struggle to do, I wondered why martin-cp
needs postgres
to generate a mbtiles file
and if it's something mandatory. Because I understand martin
can serve mbtiles
files to render a map in a browser or another GIS client without postgres https://maplibre.org/martin/sources-files.html, hence this question. There is some context I'm missing about all these tools and their use cases, sorry if my question sounds stupid. I understand that martin-cp
is still under development and cannot be considered 100% ready for mbtiles
file generation, correct? But, still for serving tiles with Martin, I used to feed postgres
with a map file from osm2pgsql
and let Martin serve the tiles from postgres
, is it still the advised procedure? Thank you so much.
All depends on your usecase, as always. If you are building "base map" - use something like planetiler to pre-generate it into an mbtiles/pmtiles file. Generating tiles on the fly for the base map could be expensive (slow). Think of it as a tile cache. Martin can serve that file - no postgres needed.
If you are generating custom data on top of a base map, e.g. taxi info like in the demo, martin could get that data from a database, possibly even with custom parameters (like in the demo). If you are serving tiles and need some extras - like fonts or sprites - martin can handle that for you too.
Hi team,
I think there's something wrong with the
martin-cp
command description cause there's nomy_table
in the command line. After reading the other sections of the doc, I understand thatsource_name
can be a comma-separated list of tables frompostgres
, and probably a comma-separated list of.mbtiles
or (strict).pmtiles
files as well.source: https://maplibre.org/martin/martin-cp.html
I have 4 tables in postgres (created by
osm2pgsql
):martin-cp
seems to take a single table as a parameter. Does it mean I need to create a new table that combines data from the 4 existing ones and pass it tomartin-cp
to generate a valid tileset?