Skip to content

Commit

Permalink
Add temporary SQL fix for mapnik-german-l10n giggls/mapnik-german-l10…
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Aug 28, 2020
1 parent ededa4a commit 65f7645
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions layers/transportation_name/mapnik-german-l10n_fix_perf2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE or REPLACE FUNCTION osml10n_geo_translit(name text, place geometry DEFAULT NULL) RETURNS TEXT AS $$
BEGIN
-- RAISE LOG 'going to transliterate %', name;
IF (place IS NULL) THEN
return osml10n_cc_transscript(name,'aq');
ELSE
/*
Look up the country where the geometry is located
*/
return(osml10n_cc_transscript(name,NULL));

END IF;
END;
$$ LANGUAGE plpgsql STABLE;
1 change: 1 addition & 0 deletions layers/transportation_name/transportation_name.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ layer:
srid: 900913
query: (SELECT geometry, name, name_en, name_de, {name_languages}, ref, ref_length, network::text, class::text, subclass, layer, level, indoor FROM layer_transportation_name(!bbox!, z(!scale_denominator!))) AS t
schema:
- ./mapnik-german-l10n_fix_perf2.sql
- ./network_type.sql
- ./update_route_member.sql
- ./update_transportation_name.sql
Expand Down

0 comments on commit 65f7645

Please sign in to comment.