Giter VIP home page Giter VIP logo

Comments (2)

Istador avatar Istador commented on May 21, 2024

What do you mean by

and... nothing happened

Did you get an image with the old style or did you get no image at all?


Exchanging the XML file and restarting the container does work in my experience.

But if the server already existed and worked before, then it still holds the tiles (image files) generated with the old style. The tiles cache needs to either be deleted (e.g. with rm -rf . in the tiles directory), (force) re-rendered, or expired (aka. re-render after the next client access) to use the new style.


Which renderd / mod_tile script did you run exactly and with which arguments?
render_expired?
render_list?
(render_list_geo.pl?)


Did you manually edited the mapnik.xml or did you compiled it with carto or another tool?

Before I knew about carto I started manually editing the default XML file, to create my own style. I changed it a few times because of changing requirements / wishes from the product owner(s).

Sometimes I made mistakes editing it, so it's important to monitor the logs at startup of the container (e.g. for invalid XML syntax or invalid semantic) and while rendering (e.g. invalid database queries), because there might be errors preventing it from re-rendering tiles, resulting in serving old cached tiles or an http error code.

(Tip: it's a good idea not to deploy new styles directly to the productive tile server, but to test them out on a little test tile server serving only a small region).

[Edit: I also tried out other Mapnik XML styles than openstreetmap-carto at some point, but often had errors with them because they might have different runtime requirements (e.g. fonts) and might need other data inside the postgres database].

from openstreetmap-tile-server.

singhyadvendra avatar singhyadvendra commented on May 21, 2024

@MichalPopieluch you can run "docker logs container_id" or "sudo docker logs container_id" to see the errors in rendering

from openstreetmap-tile-server.

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.