Giter VIP home page Giter VIP logo

Comments (5)

Istador avatar Istador commented on May 17, 2024

One postgresql database and renderer, but with several different openstreetmap-carto map styles using it. Each style is individualized for the target language, e.g. as described in issue #24.

This docker image has only one map style active with the key ajt. But the software it uses (mod_tile / renderd) should support several different styles at once (defined in renderd.conf). So you might only need to exchange a (few) config file(s), and copy several styles into the container (referenced in the config file).

from openstreetmap-tile-server.

singhyadvendra avatar singhyadvendra commented on May 17, 2024

I have tried the changes but it seems to me that my changes in rendered.conf are not correct. somehow missing something there

from openstreetmap-tile-server.

singhyadvendra avatar singhyadvendra commented on May 17, 2024

Hi Istador
I am getting error for the following code
An error occurred while loading the map layer 'style_fr': Postgis Plugin: ERROR: column "tags" does not exist
LINE 3: COALESCE(tags->'name:fr', tags->'name:nl', name, '') as ...

from openstreetmap-tile-server.

Istador avatar Istador commented on May 17, 2024

Without the full query or your Mapnik XML it's hard to tel exactly where and why this is happening.

Keep in mind / be aware of that there are some multi-layered queries in the default style. You only have access to the tags on the table inside the innermost sub query that is working on the table directly.

Yes:

SELECT COALESCE(...) AS name, ...
FROM tablename

No:

SELECT COALESCE(...) AS name, ...
FROM (SELECT name, ... FROM tablename))

E.g. a situation like that:

SELECT name, ...
FROM (SELECT name, ... FROM tablename))

Becomes:

SELECT name, ...
FROM (SELECT COALESCE(...) AS name, ... FROM tablename))

Or alternatively:

SELECT COALESCE(...) AS name, ...
FROM (SELECT name, tags, ... FROM tablename))

from openstreetmap-tile-server.

singhyadvendra avatar singhyadvendra commented on May 17, 2024

Hi Istador,

My Tile Server is working correctly displaying names as required.
Thanks for the help.

I have work on two more things.

  1. automatic updates of tile for a BBOX PBF from EUROPE
  2. preloading tiles

if you have any suggestions

Thanks Again

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.