This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Rendering a Russian-language map

0

I would like to render a map of Ukraine and Moldova that uses [name:ru] instead of the local name where ever name:ru is available and, only when it is not available, use the local name instead. Besides that it should look exactly like the default rendering on openstreetmap.org.

Assuming I have properly installed mapnik and PostgreSQL/PostGIS on my Linux environment and downloaded the map data, how would I proceed?

Can I just import the map data using osm2pgsql or is this not going to work in my case?

asked 01 Oct '14, 16:35

Maturi0n's gravatar image

Maturi0n
446610
accept rate: 0%


3 Answers:

2

I'd load it with osm2pgsql, but use a lua tag transformation to move whatever's in "name:ru" to "name", if there is a "name:ru".

I've done that, not for names, but for certain other map features. Some brief notes are here.

answered 01 Oct '14, 17:27

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

1

Starting hints should be found in the OSM wiki about Map_internationalization

answered 01 Oct '14, 16:56

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

1

answered 18 Feb '15, 13:43

freeExec's gravatar image

freeExec
1163
accept rate: 0%

Source code available on GitHub .