forked from openmaptiles/openmaptiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add temporary SQL fix for mapnik-german-l10n giggls/mapnik-german-l10…
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters