Skip to content

Commit 6cc62f2

Browse files
committed
Update attributes for disputed territories
1 parent b9782e5 commit 6cc62f2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

topojson/bin/process_geodata.mjs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,15 @@ const commandsCountries50m = [
377377
// Subtract Caspian Sea from country polygons
378378
`-filter 'globalid === "{BBBEF27F-A6F4-4FBC-9729-77B3A8739409}"' target=all_features + name=caspian_sea`,
379379
'-erase source=caspian_sea target=all_features',
380-
// Update country codes for disputed territories at Egypt/Sudan border: https://en.wikipedia.org/wiki/Egypt%E2%80%93Sudan_border
381-
`-each 'if (globalid === "{CA12D116-7A19-41D1-9622-17C12CCC720D}") iso3cd = "XHT"'`, // Halaib Triangle
382-
`-each 'if (globalid === "{9FD54A50-0BFB-4385-B342-1C3BDEE5ED9B}") iso3cd = "XBT"'`, // Bir Tawil
380+
// Update country codes, names for disputed territories
381+
// https://en.wikipedia.org/wiki/Ilemi_Triangle
382+
`-each 'if (globalid === "{CAB4B11D-5D1D-495E-AC9C-8A18A5A4370B}") { iso3cd = "XIT"; nam_en = "Ilemi Triangle"; }'`,
383+
// https://en.wikipedia.org/wiki/Egypt%E2%80%93Sudan_border
384+
`-each 'if (globalid === "{CA12D116-7A19-41D1-9622-17C12CCC720D}") { iso3cd = "XHT"; nam_en = "Halaib Triangle"; }'`,
385+
`-each 'if (globalid === "{9FD54A50-0BFB-4385-B342-1C3BDEE5ED9B}") { iso3cd = "XBT"; nam_en = "Bir Tawil"; }'`,
386+
// https://en.wikipedia.org/wiki/Sino-Indian_border_dispute
387+
`-each 'if (globalid === "{9AB8E07B-A251-47AB-9B0C-F969DBE07558}") nam_en = "Aksai Chin"'`,
388+
`-each 'if (globalid === "{F180660F-073C-402E-AF75-1E448B4C30F1}") nam_en = "Arunachal Pradesh"'`,
383389
`-each 'if (iso3cd) iso3cd = iso3cd.toUpperCase()'`,
384390
`-filter '${filters.countries}'`,
385391
// Snap polygons to clean up land, coastlines layers

0 commit comments

Comments
 (0)