Skip to content

Commit 9711ef7

Browse files
committed
Update country codes for disputed territories at Egypt/Sudan border
1 parent f7cdc5f commit 9711ef7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/topojson/process_geodata.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ const commandsAllFeaturesCommon = [
229229
'-merge-layers target=1,antarctica force name=all_features',
230230
// Erase Caspian Sea
231231
`-filter 'globalid === "{BBBEF27F-A6F4-4FBC-9729-77B3A8739409}"' target=all_features + name=caspian_sea`,
232-
'-erase source=caspian_sea target=all_features'
232+
'-erase source=caspian_sea target=all_features',
233+
// Handle disputed territories at Egypt/Sudan border: https://en.wikipedia.org/wiki/Egypt%E2%80%93Sudan_border
234+
`-each 'if (globalid === "{CA12D116-7A19-41D1-9622-17C12CCC720D}") iso3cd = "XHT"'`, // Halaib Triangle
235+
`-each 'if (globalid === "{9FD54A50-0BFB-4385-B342-1C3BDEE5ED9B}") iso3cd = "XBT"'` // Bir Tawil
233236
]
234237

235238
// Process 50m UN geodata

0 commit comments

Comments
 (0)