Giter Site home page Giter Site logo

martin-cp doc source param about martin HOT 3 CLOSED

BigBoulard avatar BigBoulard commented on July 22, 2024
martin-cp doc source param

from martin.

Comments (3)

nyurik avatar nyurik commented on July 22, 2024

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.

BigBoulard avatar BigBoulard commented on July 22, 2024

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.

nyurik avatar nyurik commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.