Skip to content
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

Multi Language Tile Server #49

Closed
singhyadvendra opened this issue Jul 31, 2019 · 5 comments
Closed

Multi Language Tile Server #49

singhyadvendra opened this issue Jul 31, 2019 · 5 comments

Comments

@singhyadvendra
Copy link

I am currently trying to setup a multi language tile server. do you have any ideas to support that

@Istador
Copy link
Contributor

Istador commented Aug 1, 2019

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).

@singhyadvendra
Copy link
Author

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

@singhyadvendra
Copy link
Author

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 ...

@Istador
Copy link
Contributor

Istador commented Aug 8, 2019

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))

@singhyadvendra
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants