-
-
Notifications
You must be signed in to change notification settings - Fork 192
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
martin-cp doc source param #1236
Comments
|
Trying to create a public repo to illustrate something I struggle to do, I wondered why |
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. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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?martin-cp --output-file tileset.mbtiles \ --mbtiles-type normalized \ "--bbox=-180,-90,180,90" \ --min-zoom 0 \ --max-zoom 10 \ --source source_name \ postgresql://postgres@localhost:5432/db
The text was updated successfully, but these errors were encountered: