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 authored and kukulich committed Apr 25, 2024
1 parent 9d55491 commit 993a33a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions layers/transportation/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/transportation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ layer:
srid: 900913
query: (SELECT geometry, class, subclass, network, oneway, ramp, brunnel, service, access, toll, expressway, layer, level, indoor, bicycle, foot, horse, mtb_scale, surface FROM layer_transportation(!bbox!, z(!scale_denominator!))) AS t
schema:
- ./mapnik-german-l10n_fix_perf2.sql
- ./network_type.sql
- ./class.sql
- ./highway_name.sql
Expand Down

0 comments on commit 993a33a

Please sign in to comment.