-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more rigorous countries labels per ISO and point-of-view (#2069)
This adds sql to alter the tlc table to edit the featurecla column to mark certain geounits as country or unrecognized. OSM labels that match with unrecognized countries or are a non match will return as kind=unrecognized at min zoom 8. Countries updated as unrecognized Akrotiri Sovereign Base Area Ashmore and Cartier Islands Clipperton Island Coral Sea Islands Dhekelia Cantonment Somaliland Turkish Republic of Northern Cyprus Palestine (see Gaza Strip and West Bank instead) Countries updated to Admin-0 dependency Gaza Strip Svalbard West Bank Newly rendering countries from data, lua, and sql improvements Aland American Samoa Bermuda Bouvet Island Christmas Island Cocos (Keeling) Islands French Polynesia French Southern and Antarctic Lands Guam Heard Island and McDonald Islands Hong Kong Macau New Caledonia Norfolk Island Northern Mariana Islands Puerto Rico Réunion Saint Helena, Ascension and Tristan da Cunha Saint Barthélemy Saint Martin (France) Saint Pierre and Miquelon Sāmoa São Tomé and Príncipe Svalbard United States Minor Outlying Islands
- Loading branch information
1 parent
81e3407
commit afcf5c9
Showing
8 changed files
with
143 additions
and
11 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,44 @@ | ||
-- Recasts a few rows in the ne_10m_admin_0_countries_iso and ne_10m_admin_0_countries_tlc | ||
-- tables to either show or hide certain labels. | ||
-- The TLC table yields around 10 country and dependency features over ISO (including Kosovo and Taiwan), | ||
-- which Tilezen sometimes has opinions about. | ||
|
||
|
||
-- sets featurcla to equal fclass_tlc values. We can then further modify the values while keeping the fclass intact. | ||
-- featurecla column has a shorter varchar length and needs altering first. | ||
alter table ne_10m_admin_0_countries_tlc alter column featurecla type varchar; | ||
update ne_10m_admin_0_countries_tlc set featurecla = fclass_tlc; | ||
|
||
-- Akrotiri Sovereign Base Area | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320741; | ||
|
||
-- Ashmore and Cartier Islands | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320353; | ||
|
||
-- Clipperton Island | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320635; | ||
|
||
-- Coral Sea Islands | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320359; | ||
|
||
-- Dhekelia Cantonment | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320709; | ||
|
||
-- Gaza Strip | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'Admin-0 dependency' where ne_id = 1159320901; | ||
|
||
-- Somaliland | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159321259; | ||
|
||
-- Svalbard | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'Admin-0 dependency' where ne_id = 1159321119; | ||
|
||
-- Turkish Republic of Northern Cyprus | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'unrecognized' where ne_id = 1159320531; | ||
|
||
-- West Bank | ||
update ne_10m_admin_0_countries_tlc set featurecla = 'Admin-0 dependency' where ne_id = 1159320903; | ||
|
||
|
||
-- Fix Saint Helena wikidata id for this build. Remove once NE is updated | ||
update ne_10m_admin_0_countries_iso set wikidataid = 'Q192184' where ne_id = 1159320733; |
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
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
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
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
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
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
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