Comments (3)
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.
from martin.
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 <download.geofabrik.de> using osm2pgsql
and let Martin serve the tiles from postgres
, is it still the advised procedure? Thank you so much.
from martin.
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.
from martin.
Related Issues (20)
- Detect old postgresql versions and warn user HOT 2
- version `GLIBC_2.33' not found (required by mbtiles) HOT 6
- Improve mbtiles diff validation, add new metadata field, usability
- Reduce README, moving more things to the book
- Improve docs with recommended use cases for novice users
- ghcr.io/maplibre/martin:main not found HOT 3
- Fix broken docs links
- Add a tutorial for novice user
- Martin panics at start due to Postgres pool issue HOT 9
- RUSTSEC-2024-0320: yaml-rust is unmaintained. HOT 1
- automatic discovery of tables and functions have error HOT 3
- Issues starting the Docker version
- Font endpoint gives 404 but the font seems loaded HOT 2
- HowTo Provide Multiple PG Connections in Config HOT 5
- Tiles are not displayed HOT 1
- add property data to tile HOT 2
- use function with query parameters. How?!
- if it is possible to load postgre function source automatically HOT 2
- uploading tiles slows down extremely HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martin.