[Tagging] Names localization

John Smith deltafoxtrot256 at gmail.com
Mon Apr 26 14:57:50 BST 2010


If you update default.style for osm2pgsql to include:

node,way   name         text         linear
node,way   name:en      text         linear
node,way   name:ru      text         linear

Then you need to do a complete re-import, then you need to update all
the queries in your mapnik style sheet where name is referenced from:

(select way,name from planet_osm_polygon where
boundary='national_park') as boundary

to:

(select way,(CASE WHEN 'name:ru' IS NOT NULL THEN 'name:ru' WHEN
'name:en' IS NOT NULL THEN 'name:en' ELSE name END) AS name from
planet_osm_polygon where boundary='national_park') as boundary




More information about the Tagging mailing list